ClientJDBCObjectFactory
public class ClientJDBCObjectFactoryImpl42 extends ClientJDBCObjectFactoryImpl
Constructor | Description |
---|---|
ClientJDBCObjectFactoryImpl42() |
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 to take advantage of long
update counts.
|
ClientCallableStatement |
newCallableStatement(Agent agent,
ClientConnection connection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
ClientPooledConnection cpc) |
return a ClientCallableStatement42 object
|
LogicalCallableStatement |
newLogicalCallableStatement(java.sql.CallableStatement cs,
StatementKey stmtKey,
StatementCacheInteractor cacheInteractor) |
Returns a new logical callable statement object.
|
LogicalPreparedStatement |
newLogicalPreparedStatement(java.sql.PreparedStatement ps,
StatementKey stmtKey,
StatementCacheInteractor cacheInteractor) |
Returns a new logical prepared statement object.
|
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) |
returns an instance of org.apache.derby.client.net.NetResultSet
|
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 PreparedStatement
which implements java.sql.PreparedStatement.
|
ClientPreparedStatement |
newPreparedStatement(Agent agent,
ClientConnection connection,
java.lang.String sql,
Section section,
ClientPooledConnection cpc) |
Returns a PreparedStatement.
|
newBatchUpdateException, newCachingLogicalConnection, newClientPooledConnection, newClientXAConnection, newColumnMetaData, newColumnMetaData, newLogicalConnection, newNetConnection, newNetConnection, newNetConnection, newNetDatabaseMetaData, newParameterMetaData, newStatement
protected java.sql.BatchUpdateException newBatchUpdateException(java.lang.String message, java.lang.String sqlState, int errorCode, long[] updateCounts, SqlException cause)
newBatchUpdateException
in class ClientJDBCObjectFactoryImpl
public ClientPreparedStatement newPreparedStatement(Agent agent, ClientConnection connection, java.lang.String sql, Section section, ClientPooledConnection cpc) throws SqlException
newPreparedStatement
in interface ClientJDBCObjectFactory
newPreparedStatement
in class ClientJDBCObjectFactoryImpl
agent
- 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.SqlException
public 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
newPreparedStatement
in interface ClientJDBCObjectFactory
newPreparedStatement
in class ClientJDBCObjectFactoryImpl
agent
- 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.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
public LogicalPreparedStatement newLogicalPreparedStatement(java.sql.PreparedStatement ps, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
newLogicalPreparedStatement
in interface ClientJDBCObjectFactory
newLogicalPreparedStatement
in class ClientJDBCObjectFactoryImpl
ps
- underlying physical prepared statementstmtKey
- key for the underlying physical prepared statementcacheInteractor
- the statement cache interactorpublic 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
newNetResultSet
in interface ClientJDBCObjectFactory
newNetResultSet
in class ClientJDBCObjectFactoryImpl
NetResultSet
SqlException
public ClientCallableStatement newCallableStatement(Agent agent, ClientConnection connection, java.lang.String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) throws SqlException
newCallableStatement
in interface ClientJDBCObjectFactory
newCallableStatement
in class ClientJDBCObjectFactoryImpl
agent
- 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
objectSqlException
public LogicalCallableStatement newLogicalCallableStatement(java.sql.CallableStatement cs, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
newLogicalCallableStatement
in interface ClientJDBCObjectFactory
newLogicalCallableStatement
in class ClientJDBCObjectFactoryImpl
cs
- underlying physical callable statementstmtKey
- key for the underlying physical callable statementcacheInteractor
- the statement cache interactorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.