Top Description Fields Methods
org.apache.derby.iapi.sql.conn

public Interface LanguageConnectionFactory

Known Direct Implementers
org.apache.derby.impl.sql.conn.GenericLanguageConnectionFactory
Imports
org.apache.derby.iapi.db.Database, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.cache.CacheManager, org.apache.derby.iapi.services.compiler.JavaFactory, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.iapi.services.loader.ClassFactory, org.apache.derby.iapi.services.property.PropertyFactory, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.iapi.sql.LanguageFactory, .Statement, org.apache.derby.iapi.sql.compile.CompilerContext, .OptimizerFactory, .Parser, .TypeCompilerFactory, org.apache.derby.iapi.sql.dictionary.SchemaDescriptor, org.apache.derby.iapi.sql.execute.ExecutionFactory, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.iapi.types.DataValueFactory

Factory interface for items specific to a connection in the language system. This is expected to be used internally, and so is not in Language.Interface.

This Factory provides pointers to other language factories; the LanguageConnectionContext holds more dynamic information, such as prepared statements and whether a commit has occurred or not.

This Factory is for internal items used throughout language during a connection. Things that users need for the Database API are in LanguageFactory in Language.Interface.

This factory returns (and thus starts) all the other per-database language factories. So there might someday be properties as to which ones to start (attributes, say, like level of optimization). If the request is relative to a specific connection, the connection is passed in. Otherwise, they are assumed to be database-wide services.

See Also
org.apache.derby.iapi.sql.LanguageFactory

Field Summary

Modifier and TypeField and Description
public static final String
MODULE

Used to locate this factory by the Monitor basic service.

Method Summary

Modifier and TypeMethod and Description
public ClassFactory
getClassFactory()

Get the ClassFactory to use with this language connection

public DataValueFactory
getDataValueFactory()

Get the DataValueFactory to use with this language connection This is expected to get stuffed into the language connection context and accessed from there.

public ExecutionFactory
getExecutionFactory()

Get the ExecutionFactory to use with this language connection

public JavaFactory
getJavaFactory()

Get the JavaFactory to use with this language connection

public OptimizerFactory
getOptimizerFactory()

Get the OptimizerFactory to use with this language connection

public PropertyFactory
getPropertyFactory()

Get the PropertyFactory to use with this language connection

public Statement

Returns:

The Statement
getStatement
(SchemaDescriptor
schema
compilationSchema
,
String
the text for the statement
statementText
,
boolean
true if concurrency mode is CONCUR_READ_ONLY
forReadOnly
)

Get a Statement

public CacheManager
public TypeCompilerFactory
getTypeCompilerFactory()

Get the TypeCompilerFactory to use with this language connection

public UUIDFactory
getUUIDFactory()

Get the UUIDFactory to use with this language connection

public LanguageConnectionContext

Returns:

a language connection context for the context stack.
newLanguageConnectionContext
(ContextManager cm, TransactionController tc, LanguageFactory lf, Database db, String userName, String drdaID, String dbname)

Get a new LanguageConnectionContext.

public Parser

Field Detail

MODULEback to summary
public static final String MODULE

Used to locate this factory by the Monitor basic service. There needs to be a language factory per database.

Method Detail

getClassFactoryback to summary
public ClassFactory getClassFactory()

Get the ClassFactory to use with this language connection

getDataValueFactoryback to summary
public DataValueFactory getDataValueFactory()

Get the DataValueFactory to use with this language connection This is expected to get stuffed into the language connection context and accessed from there.

getExecutionFactoryback to summary
public ExecutionFactory getExecutionFactory()

Get the ExecutionFactory to use with this language connection

getJavaFactoryback to summary
public JavaFactory getJavaFactory()

Get the JavaFactory to use with this language connection

getOptimizerFactoryback to summary
public OptimizerFactory getOptimizerFactory()

Get the OptimizerFactory to use with this language connection

getPropertyFactoryback to summary
public PropertyFactory getPropertyFactory()

Get the PropertyFactory to use with this language connection

getStatementback to summary
public Statement getStatement(SchemaDescriptor compilationSchema, String statementText, boolean forReadOnly)

Get a Statement

Parameters
compilationSchema:SchemaDescriptor

schema

statementText:String

the text for the statement

forReadOnly:boolean

true if concurrency mode is CONCUR_READ_ONLY

Returns:Statement

The Statement

getStatementCacheback to summary
public CacheManager getStatementCache()
getTypeCompilerFactoryback to summary
public TypeCompilerFactory getTypeCompilerFactory()

Get the TypeCompilerFactory to use with this language connection

getUUIDFactoryback to summary
public UUIDFactory getUUIDFactory()

Get the UUIDFactory to use with this language connection

newLanguageConnectionContextback to summary
public LanguageConnectionContext newLanguageConnectionContext(ContextManager cm, TransactionController tc, LanguageFactory lf, Database db, String userName, String drdaID, String dbname) throws StandardException

Get a new LanguageConnectionContext. this holds things we want to remember about activity in the language system, where this factory holds things that are pretty stable, like other factories.

The returned LanguageConnectionContext is intended for use only by the connection that requested it.

Returns:LanguageConnectionContext

a language connection context for the context stack.

Exceptions
StandardException:
the usual
newParserback to summary
public Parser newParser(CompilerContext cc)