ClientJDBCObjectFactoryClientJDBCObjectFactoryImpl42public class ClientJDBCObjectFactoryImpl extends java.lang.Object implements ClientJDBCObjectFactory
| Modifier and Type | Field | Description |
|---|---|---|
private static MessageUtil |
msgutil_ |
The message utility instance we use to find messages
It's primed with the name of the client message bundle so that
it knows to look there if the message isn't found in the
shared message bundle.
|
| Constructor | Description |
|---|---|
ClientJDBCObjectFactoryImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.sql.BatchUpdateException |
newBatchUpdateException(java.lang.String message,
java.lang.String sqlState,
int errorCode,
long[] updateCounts,
SqlException cause) |
This method is overridden on JVM 8
|
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(ClientConnection physicalConnection,
ClientPooledConnection pooledConnection,
JDBCStatementCache stmtCache) |
Returns an instance of a
CachingLogicalConnection, which provides
caching of prepared statements. |
ClientCallableStatement |
newCallableStatement(Agent agent,
ClientConnection connection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
ClientPooledConnection cpc) |
Returns an instance of ClientCallableStatement.
|
ClientPooledConnection |
newClientPooledConnection(BasicClientDataSource40 ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password) |
This method is used to return an instance of the
ClientPooledConnection class which
implements javax.sql.PooledConnection. |
ClientXAConnection |
newClientXAConnection(BasicClientDataSource40 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 instance of ColumnMetaData
|
ColumnMetaData |
newColumnMetaData(LogWriter logWriter,
int upperBound) |
Returns an instance of 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(ClientConnection physicalConnection,
ClientPooledConnection pooledConnection) |
Returns an instance of LogicalConnection.
|
LogicalPreparedStatement |
newLogicalPreparedStatement(java.sql.PreparedStatement ps,
StatementKey stmtKey,
StatementCacheInteractor cacheInteractor) |
Returns a new logical prepared statement object.
|
ClientConnection |
newNetConnection(LogWriter logWriter,
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 ClientConnection
this implements the java.sql.Connection interface
|
ClientConnection |
newNetConnection(LogWriter logWriter,
java.lang.String user,
java.lang.String password,
BasicClientDataSource40 dataSource,
int rmId,
boolean isXAConn) |
This method returns an instance of NetConnection (or
NetConnection40) class which extends from ClientConnection.
|
ClientConnection |
newNetConnection(LogWriter logWriter,
java.lang.String user,
java.lang.String password,
BasicClientDataSource40 dataSource,
int rmId,
boolean isXAConn,
ClientPooledConnection cpc) |
Returns an instance of NetConnection.
|
ClientDatabaseMetaData |
newNetDatabaseMetaData(Agent netAgent,
ClientConnection netConnection) |
This method provides an instance of NetDatabaseMetaData (or
NetDatabaseMetaData40) which extends from ClientDatabaseMetaData
which implements
java.sql.DatabaseMetaData. |
ClientResultSet |
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 ClientResultSet which implements
java.sql.ResultSet. |
ClientParameterMetaData |
newParameterMetaData(ColumnMetaData columnMetaData) |
returns an instance of ParameterMetaData
|
ClientPreparedStatement |
newPreparedStatement(Agent agent,
ClientConnection connection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes,
ClientPooledConnection cpc) |
This method returns an instance of ClientPreparedStatement
which implements
java.sql.PreparedStatement. |
ClientPreparedStatement |
newPreparedStatement(Agent agent,
ClientConnection connection,
java.lang.String sql,
Section section,
ClientPooledConnection cpc) |
This method returns an instance of ClientPreparedStatement
which implements java.sql.PreparedStatement.
|
ClientStatement |
newStatement(Agent agent,
ClientConnection connection,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes) |
This method provides an instance of Statement
|
private static final MessageUtil msgutil_
public ClientPooledConnection newClientPooledConnection(BasicClientDataSource40 ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
ClientJDBCObjectFactoryClientPooledConnection class which
implements javax.sql.PooledConnection.newClientPooledConnection in interface ClientJDBCObjectFactoryClientPooledConnectionjava.sql.SQLExceptionpublic ClientXAConnection newClientXAConnection(BasicClientDataSource40 ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
ClientJDBCObjectFactoryjavax.sql.XAConnection.newClientXAConnection in interface ClientJDBCObjectFactoryClientXAConnectionjava.sql.SQLExceptionpublic ClientCallableStatement newCallableStatement(Agent agent, ClientConnection connection, java.lang.String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) throws SqlException
newCallableStatement in interface ClientJDBCObjectFactoryagent - The instance of NetAgent associated with this
ClientCallableStatement
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.ClientCallableStatement
objectSqlExceptionpublic LogicalConnection newLogicalConnection(ClientConnection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException
ClientJDBCObjectFactoryjava.sql.Connection.newLogicalConnection in interface ClientJDBCObjectFactoryLogicalConnectionSqlExceptionpublic LogicalConnection newCachingLogicalConnection(ClientConnection physicalConnection, ClientPooledConnection pooledConnection, JDBCStatementCache stmtCache) throws SqlException
CachingLogicalConnection, which provides
caching of prepared statements.newCachingLogicalConnection in interface ClientJDBCObjectFactoryphysicalConnection - the underlying physical connectionpooledConnection - the pooled connectionstmtCache - statement cacheSqlException - if creation of the logical connection failspublic ClientPreparedStatement newPreparedStatement(Agent agent, ClientConnection connection, java.lang.String sql, Section section, ClientPooledConnection cpc) throws SqlException
newPreparedStatement in interface ClientJDBCObjectFactoryagent - The instance of NetAgent associated with this
ClientCallableStatement
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.SqlExceptionpublic ClientPreparedStatement newPreparedStatement(Agent agent, ClientConnection connection, java.lang.String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, java.lang.String[] columnNames, int[] columnIndexes, ClientPooledConnection cpc) throws SqlException
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.newPreparedStatement in interface ClientJDBCObjectFactoryagent - The instance of NetAgent associated with this
ClientCallableStatement
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.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.columnIndexes - an array of column indexes indicating the columns
that should be returned form the inserted row.SqlExceptionpublic LogicalPreparedStatement newLogicalPreparedStatement(java.sql.PreparedStatement ps, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
newLogicalPreparedStatement in interface ClientJDBCObjectFactoryps - underlying physical prepared statementstmtKey - key for the underlying physical prepared statementcacheInteractor - the statement cache interactorpublic LogicalCallableStatement newLogicalCallableStatement(java.sql.CallableStatement cs, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
newLogicalCallableStatement in interface ClientJDBCObjectFactorycs - underlying physical callable statementstmtKey - key for the underlying physical callable statementcacheInteractor - the statement cache interactorpublic ClientConnection newNetConnection(LogWriter logWriter, int driverManagerLoginTimeout, java.lang.String serverName, int portNumber, java.lang.String databaseName, java.util.Properties properties) throws SqlException
ClientJDBCObjectFactorynewNetConnection in interface ClientJDBCObjectFactoryNetConnectionSqlExceptionpublic ClientConnection newNetConnection(LogWriter logWriter, java.lang.String user, java.lang.String password, BasicClientDataSource40 dataSource, int rmId, boolean isXAConn) throws SqlException
ClientJDBCObjectFactoryjava.sql.Connection interface.newNetConnection in interface ClientJDBCObjectFactoryNetConnectionSqlExceptionpublic ClientConnection newNetConnection(LogWriter logWriter, java.lang.String user, java.lang.String password, BasicClientDataSource40 dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
newNetConnection in interface ClientJDBCObjectFactorylogWriter - LogWriter object associated with this connection.user - user id for this connection.password - password for this connection.dataSource - The DataSource object passed from the PooledConnection
object from which this constructor was called.rmId - 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
object.ClientConnection objectSqlExceptionpublic ClientResultSet 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
ClientJDBCObjectFactoryjava.sql.ResultSet.newNetResultSet in interface ClientJDBCObjectFactoryNetResultSetSqlExceptionpublic ClientDatabaseMetaData newNetDatabaseMetaData(Agent netAgent, ClientConnection netConnection)
ClientJDBCObjectFactoryjava.sql.DatabaseMetaData.newNetDatabaseMetaData in interface ClientJDBCObjectFactoryNetDatabaseMetaDatapublic ClientStatement newStatement(Agent agent, ClientConnection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, java.lang.String[] columnNames, int[] columnIndexes) throws SqlException
newStatement in interface ClientJDBCObjectFactoryagent - Agentconnection - Connectiontype - intconcurrency - intholdability - intautoGeneratedKeys - intcolumnNames - String[]columnIndexes - int[]SqlExceptionpublic ColumnMetaData newColumnMetaData(LogWriter logWriter)
newColumnMetaData in interface ClientJDBCObjectFactorylogWriter - LogWriterpublic ColumnMetaData newColumnMetaData(LogWriter logWriter, int upperBound)
newColumnMetaData in interface ClientJDBCObjectFactorylogWriter - LogWriterupperBound - intpublic ClientParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)
newParameterMetaData in interface ClientJDBCObjectFactorycolumnMetaData - ColumnMetaDatapublic java.sql.BatchUpdateException newBatchUpdateException(LogWriter logWriter, ClientMessageId msgid, java.lang.Object[] args, long[] updateCounts, SqlException cause)
newBatchUpdateException in interface ClientJDBCObjectFactoryprotected java.sql.BatchUpdateException newBatchUpdateException(java.lang.String message,
java.lang.String sqlState,
int errorCode,
long[] updateCounts,
SqlException cause)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.