public interface ClientJDBCObjectFactory
Modifier and Type | Method and Description |
---|---|
java.sql.BatchUpdateException |
newBatchUpdateException(LogWriter logWriter,
ClientMessageId msgid,
java.lang.Object[] args,
long[] updateCounts,
SqlException cause)
Creates a BatchUpdateException depending on the JVM level.
|
LogicalConnection |
newCachingLogicalConnection(Connection physicalConnection,
ClientPooledConnection pooledConnection,
JDBCStatementCache stmtCache)
Returns an instance of a
CachingLogicalConnection , which
provides caching of prepared statements. |
CallableStatement |
newCallableStatement(Agent agent,
Connection connection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
ClientPooledConnection cpc)
Returns an instance of org.apache.derby.client.am.CallableStatement.
|
ClientPooledConnection |
newClientPooledConnection(ClientBaseDataSourceRoot ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password)
This method is used to return an instance of
ClientPooledConnection (or ClientPooledConnection40) class which
implements javax.sql.PooledConnection
|
ClientPooledConnection |
newClientPooledConnection(ClientBaseDataSourceRoot ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password,
int rmId)
This method is used to return an instance of
ClientPooledConnection(or ClientPooledConnection40) class which
implements javax.sql.PooledConnection
|
ClientXAConnection |
newClientXAConnection(ClientBaseDataSourceRoot ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password)
This method is used to return an instance of
ClientXAConnection (or ClientXAConnection40) class which
implements javax.sql.XAConnection
|
ColumnMetaData |
newColumnMetaData(LogWriter logWriter)
Returns an instanceof ColumnMetaData or ColumnMetaData40 depending
on the jdk version under use
|
ColumnMetaData |
newColumnMetaData(LogWriter logWriter,
int upperBound)
Returns an instanceof ColumnMetaData or ColumnMetaData40 depending
on the jdk version under use
|
LogicalCallableStatement |
newLogicalCallableStatement(java.sql.CallableStatement cs,
StatementKey stmtKey,
StatementCacheInteractor cacheInteractor)
Returns a new logical callable statement object.
|
LogicalConnection |
newLogicalConnection(Connection physicalConnection,
ClientPooledConnection pooledConnection)
Returns an instance of LogicalConnection.
|
LogicalPreparedStatement |
newLogicalPreparedStatement(java.sql.PreparedStatement ps,
StatementKey stmtKey,
StatementCacheInteractor cacheInteractor)
Returns a new logcial prepared statement object.
|
Connection |
newNetConnection(LogWriter netLogWriter,
ClientBaseDataSourceRoot clientDataSource,
java.lang.String user,
java.lang.String password)
This method returns an instance of NetConnection (or NetConnection40) class
which extends from org.apache.derby.client.am.Connection
this implements the java.sql.Connection interface
|
Connection |
newNetConnection(LogWriter netLogWriter,
int driverManagerLoginTimeout,
java.lang.String serverName,
int portNumber,
java.lang.String databaseName,
java.util.Properties properties)
This method returns an instance of NetConnection (or NetConnection40)
class which extends from org.apache.derby.client.am.Connection
this implements the java.sql.Connection interface
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String ipaddr,
int portNumber,
ClientBaseDataSourceRoot dataSource,
boolean isXAConn)
This methos returns an instance of NetConnection
(or NetConnection40) class which extends from
org.apache.derby.client.am.Connection this implements the
java.sql.Connection interface
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String databaseName,
java.util.Properties properties)
This method returns an instance of NetConnection (or NetConnection40) class
which extends from org.apache.derby.client.am.Connection
this implements the java.sql.Connection interface
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String user,
java.lang.String password,
ClientBaseDataSourceRoot dataSource,
int rmId,
boolean isXAConn)
This method returns an instance of NetConnection (or NetConnection40)
class which extends from org.apache.derby.client.am.Connection
this implements the java.sql.Connection interface
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String user,
java.lang.String password,
ClientBaseDataSourceRoot dataSource,
int rmId,
boolean isXAConn,
ClientPooledConnection cpc)
This method returns an instance of NetConnection (or NetConnection40)
class which extends from org.apache.derby.client.am.Connection
this implements the java.sql.Connection interface
This method is used to pass the ClientPooledConnection
object to the NetConnection object which can then be used to pass the
statement events back to the user
|
DatabaseMetaData |
newNetDatabaseMetaData(Agent netAgent,
Connection netConnection)
This method provides an instance of NetDatabaseMetaData
(or NetDatabaseMetaData40) which extends from
org.apache.derby.client.am.DatabaseMetaData which implements
java.sql.DatabaseMetaData
|
ResultSet |
newNetResultSet(Agent netAgent,
MaterialStatement netStatement,
Cursor cursor,
int qryprctyp,
int sqlcsrhld,
int qryattscr,
int qryattsns,
int qryattset,
long qryinsid,
int actualResultSetType,
int actualResultSetConcurrency,
int actualResultSetHoldability)
This method returns an instance of NetResultSet(or NetResultSet40)
which extends from org.apache.derby.client.am.ResultSet
which implements java.sql.ResultSet
|
ParameterMetaData |
newParameterMetaData(ColumnMetaData columnMetaData)
returns an instance of ParameterMetaData or ParameterMetaData40 depending
on the jdk version under use
|
PreparedStatement |
newPreparedStatement(Agent agent,
Connection connection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes,
ClientPooledConnection cpc)
Returns an instance of PreparedStatement
(or PreparedStatement40) which implements java.sql.PreparedStatement
It has the ClientPooledConnection as one of its parameters
this is used to raise the Statement Events when the prepared
statement is closed
|
PreparedStatement |
newPreparedStatement(Agent agent,
Connection connection,
java.lang.String sql,
Section section,
ClientPooledConnection cpc)
This method returns an instance of PreparedStatement
(or PreparedStatement40) which implements java.sql.PreparedStatement
It has the ClientPooledConnection as one of its parameters
this is used to raise the Statement Events when the prepared
statement is closed
|
Statement |
newStatement(Agent agent,
Connection connection)
This method provides an instance of Statement or Statement40
depending on the jdk version under use
|
Statement |
newStatement(Agent agent,
Connection connection,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes)
This method provides an instance of Statement or Statement40
depending on the jdk version under use
|
ClientPooledConnection newClientPooledConnection(ClientBaseDataSourceRoot ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
ClientPooledConnection newClientPooledConnection(ClientBaseDataSourceRoot ds, LogWriter logWriter, java.lang.String user, java.lang.String password, int rmId) throws java.sql.SQLException
java.sql.SQLException
ClientXAConnection newClientXAConnection(ClientBaseDataSourceRoot ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
CallableStatement newCallableStatement(Agent agent, Connection connection, java.lang.String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) throws SqlException
agent
- The instance of NetAgent associated with this
CallableStatement object.connection
- The connection object associated with this
PreparedStatement Object.sql
- A String object that is the SQL statement to be sent
to the database.type
- One of the ResultSet type constantsconcurrency
- One of the ResultSet concurrency constantsholdability
- One of the ResultSet holdability constantscpc
- The PooledConnection object that will be used to
notify the PooledConnection reference of the Error
Occurred and the Close events.SqlException
LogicalConnection newLogicalConnection(Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException
SqlException
LogicalConnection newCachingLogicalConnection(Connection physicalConnection, ClientPooledConnection pooledConnection, JDBCStatementCache stmtCache) throws SqlException
CachingLogicalConnection
, which
provides caching of prepared statements.physicalConnection
- the underlying physical connectionpooledConnection
- the pooled connectionstmtCache
- statement cacheSqlException
- if creation of the logical connection failsPreparedStatement newPreparedStatement(Agent agent, Connection connection, java.lang.String sql, Section section, ClientPooledConnection cpc) throws SqlException
agent
- The instance of NetAgent associated with this
CallableStatement object.connection
- The connection object associated with this
PreparedStatement Object.sql
- A String object that is the SQL statement to be sent
to the database.section
- Sectioncpc
- The ClientPooledConnection wraps the underlying physical
connection associated with this prepared statement.
It is used to pass the Statement closed and the Statement
error occurred events that occur back to the
ClientPooledConnection.SqlException
PreparedStatement newPreparedStatement(Agent agent, Connection connection, java.lang.String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, java.lang.String[] columnNames, int[] columnIndexes, ClientPooledConnection cpc) throws SqlException
agent
- The instance of NetAgent associated with this
CallableStatement object.connection
- The connection object associated with this
PreparedStatement Object.sql
- A String object that is the SQL statement
to be sent to the database.type
- One of the ResultSet type constants.concurrency
- One of the ResultSet concurrency constants.holdability
- One of the ResultSet holdability constants.autoGeneratedKeys
- a flag indicating whether auto-generated
keys should be returned.columnNames
- an array of column names indicating the columns that
should be returned from the inserted row or rows.columnIndexes
- an array of column indexes indicating the columns
that should be returned form the inserted row.cpc
- The ClientPooledConnection wraps the underlying physical
connection associated with this prepared statement
it is used to pass the Statement closed and the Statement
error occurred events that occur back to the
ClientPooledConnection.SqlException
LogicalPreparedStatement newLogicalPreparedStatement(java.sql.PreparedStatement ps, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
ps
- underlying physical prepared statementstmtKey
- key for the underlying physical prepared statementcacheInteractor
- the statement cache interactorLogicalCallableStatement newLogicalCallableStatement(java.sql.CallableStatement cs, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
cs
- underlying physical callable statementstmtKey
- key for the underlying physical callable statementcacheInteractor
- the statement cache interactorConnection newNetConnection(LogWriter netLogWriter, java.lang.String databaseName, java.util.Properties properties) throws SqlException
SqlException
Connection newNetConnection(LogWriter netLogWriter, ClientBaseDataSourceRoot clientDataSource, java.lang.String user, java.lang.String password) throws SqlException
SqlException
Connection newNetConnection(LogWriter netLogWriter, int driverManagerLoginTimeout, java.lang.String serverName, int portNumber, java.lang.String databaseName, java.util.Properties properties) throws SqlException
SqlException
Connection newNetConnection(LogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSourceRoot dataSource, int rmId, boolean isXAConn) throws SqlException
SqlException
Connection newNetConnection(LogWriter netLogWriter, java.lang.String ipaddr, int portNumber, ClientBaseDataSourceRoot dataSource, boolean isXAConn) throws SqlException
SqlException
Connection newNetConnection(LogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSourceRoot dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
netLogWriter
- placeholder for NetLogWriter object associated with this connectionuser
- user id for this connectionpassword
- password for this connectiondataSource
- The DataSource object passed from the PooledConnection
object from which this constructor was calledrmId
- The Resource Manager ID for XA ConnectionsisXAConn
- true if this is a XA connectioncpc
- The ClientPooledConnection object from which this
NetConnection constructor was called. This is used
to pass StatementEvents back to the pooledConnection
objectSqlException
ResultSet newNetResultSet(Agent netAgent, MaterialStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability) throws SqlException
SqlException
DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, Connection netConnection)
Statement newStatement(Agent agent, Connection connection) throws SqlException
agent
- Agentconnection
- ConnectionSqlException
Statement newStatement(Agent agent, Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, java.lang.String[] columnNames, int[] columnIndexes) throws SqlException
agent
- Agentconnection
- Connectiontype
- intconcurrency
- intholdability
- intautoGeneratedKeys
- intcolumnNames
- String[]columnIndexes
- int[]SqlException
ColumnMetaData newColumnMetaData(LogWriter logWriter)
logWriter
- LogWriterColumnMetaData newColumnMetaData(LogWriter logWriter, int upperBound)
logWriter
- LogWriterupperBound
- intParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)
columnMetaData
- ColumnMetaDatajava.sql.BatchUpdateException newBatchUpdateException(LogWriter logWriter, ClientMessageId msgid, java.lang.Object[] args, long[] updateCounts, SqlException cause)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.