GenericLanguageConnectionFactory
public interface LanguageConnectionFactory
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.
LanguageFactory
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
MODULE |
Used to locate this factory by the Monitor basic service.
|
Modifier and Type | Method | Description |
---|---|---|
ClassFactory |
getClassFactory() |
Get the ClassFactory to use with this language connection
|
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.
|
ExecutionFactory |
getExecutionFactory() |
Get the ExecutionFactory to use with this language connection
|
JavaFactory |
getJavaFactory() |
Get the JavaFactory to use with this language connection
|
OptimizerFactory |
getOptimizerFactory() |
Get the OptimizerFactory to use with this language connection
|
PropertyFactory |
getPropertyFactory() |
Get the PropertyFactory to use with this language connection
|
Statement |
getStatement(SchemaDescriptor compilationSchema,
java.lang.String statementText,
boolean forReadOnly) |
Get a Statement
|
CacheManager |
getStatementCache() |
|
TypeCompilerFactory |
getTypeCompilerFactory() |
Get the TypeCompilerFactory to use with this language connection
|
UUIDFactory |
getUUIDFactory() |
Get the UUIDFactory to use with this language connection
|
LanguageConnectionContext |
newLanguageConnectionContext(ContextManager cm,
TransactionController tc,
LanguageFactory lf,
Database db,
java.lang.String userName,
java.lang.String drdaID,
java.lang.String dbname) |
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.
|
Parser |
newParser(CompilerContext cc) |
static final java.lang.String MODULE
Statement getStatement(SchemaDescriptor compilationSchema, java.lang.String statementText, boolean forReadOnly)
compilationSchema
- schemastatementText
- the text for the statementforReadOnly
- true if concurrency mode is CONCUR_READ_ONLYLanguageConnectionContext newLanguageConnectionContext(ContextManager cm, TransactionController tc, LanguageFactory lf, Database db, java.lang.String userName, java.lang.String drdaID, java.lang.String dbname) throws StandardException
The returned LanguageConnectionContext is intended for use only by the connection that requested it.
StandardException
- the usualUUIDFactory getUUIDFactory()
ClassFactory getClassFactory()
JavaFactory getJavaFactory()
ExecutionFactory getExecutionFactory()
PropertyFactory getPropertyFactory()
OptimizerFactory getOptimizerFactory()
TypeCompilerFactory getTypeCompilerFactory()
DataValueFactory getDataValueFactory()
CacheManager getStatementCache()
Parser newParser(CompilerContext cc)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.