Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.sql.conn
Interface LanguageConnectionFactory  view LanguageConnectionFactory download LanguageConnectionFactory.java


public interface LanguageConnectionFactory

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.


Field Summary
static java.lang.String MODULE
          Used to locate this factory by the Monitor basic service.
 
Method Summary
 org.apache.derby.iapi.store.access.AccessFactory getAccessFactory()
          Get the AccessFactory to use with this language connection
 org.apache.derby.iapi.services.loader.ClassFactory getClassFactory()
          Get the ClassFactory to use with this language connection
 org.apache.derby.iapi.types.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.
 org.apache.derby.iapi.sql.execute.ExecutionFactory getExecutionFactory()
          Get the ExecutionFactory to use with this language connection
 org.apache.derby.iapi.services.compiler.JavaFactory getJavaFactory()
          Get the JavaFactory to use with this language connection
 org.apache.derby.iapi.sql.compile.NodeFactory getNodeFactory()
          Get the NodeFactory to use with this language connection
 org.apache.derby.iapi.sql.compile.OptimizerFactory getOptimizerFactory()
          Get the OptimizerFactory to use with this language connection
 org.apache.derby.iapi.services.property.PropertyFactory getPropertyFactory()
          Get the PropertyFactory to use with this language connection
 org.apache.derby.iapi.sql.Statement getStatement(org.apache.derby.iapi.sql.dictionary.SchemaDescriptor compilationSchema, java.lang.String statementText)
          Get a Statement.
 org.apache.derby.iapi.services.cache.CacheManager getStatementCache()
           
 org.apache.derby.iapi.sql.compile.TypeCompilerFactory getTypeCompilerFactory()
          Get the TypeCompilerFactory to use with this language connection
 org.apache.derby.iapi.services.uuid.UUIDFactory getUUIDFactory()
          Get the UUIDFactory to use with this language connection
 LanguageConnectionContext newLanguageConnectionContext(org.apache.derby.iapi.services.context.ContextManager cm, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.LanguageFactory lf, org.apache.derby.iapi.db.Database db, java.lang.String userName, java.lang.String drdaID, java.lang.String dbname)
          Get a new LanguageConnectionContext.
 org.apache.derby.iapi.sql.compile.Parser newParser(org.apache.derby.iapi.sql.compile.CompilerContext cc)
           
 

Field Detail

MODULE

public static final java.lang.String MODULE
Used to locate this factory by the Monitor basic service. There needs to be a language factory per database.

See Also:
Constant Field Values
Method Detail

getStatement

public org.apache.derby.iapi.sql.Statement getStatement(org.apache.derby.iapi.sql.dictionary.SchemaDescriptor compilationSchema,
                                                        java.lang.String statementText)
Get a Statement.


newLanguageConnectionContext

public LanguageConnectionContext newLanguageConnectionContext(org.apache.derby.iapi.services.context.ContextManager cm,
                                                              org.apache.derby.iapi.store.access.TransactionController tc,
                                                              org.apache.derby.iapi.sql.LanguageFactory lf,
                                                              org.apache.derby.iapi.db.Database db,
                                                              java.lang.String userName,
                                                              java.lang.String drdaID,
                                                              java.lang.String dbname)
                                                       throws org.apache.derby.iapi.error.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.


getUUIDFactory

public org.apache.derby.iapi.services.uuid.UUIDFactory getUUIDFactory()
Get the UUIDFactory to use with this language connection


getClassFactory

public org.apache.derby.iapi.services.loader.ClassFactory getClassFactory()
Get the ClassFactory to use with this language connection


getJavaFactory

public org.apache.derby.iapi.services.compiler.JavaFactory getJavaFactory()
Get the JavaFactory to use with this language connection


getNodeFactory

public org.apache.derby.iapi.sql.compile.NodeFactory getNodeFactory()
Get the NodeFactory to use with this language connection


getExecutionFactory

public org.apache.derby.iapi.sql.execute.ExecutionFactory getExecutionFactory()
Get the ExecutionFactory to use with this language connection


getPropertyFactory

public org.apache.derby.iapi.services.property.PropertyFactory getPropertyFactory()
Get the PropertyFactory to use with this language connection


getAccessFactory

public org.apache.derby.iapi.store.access.AccessFactory getAccessFactory()
Get the AccessFactory to use with this language connection


getOptimizerFactory

public org.apache.derby.iapi.sql.compile.OptimizerFactory getOptimizerFactory()
Get the OptimizerFactory to use with this language connection


getTypeCompilerFactory

public org.apache.derby.iapi.sql.compile.TypeCompilerFactory getTypeCompilerFactory()
Get the TypeCompilerFactory to use with this language connection


getDataValueFactory

public org.apache.derby.iapi.types.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.


getStatementCache

public org.apache.derby.iapi.services.cache.CacheManager getStatementCache()

newParser

public org.apache.derby.iapi.sql.compile.Parser newParser(org.apache.derby.iapi.sql.compile.CompilerContext cc)