public class ClientJDBCObjectFactoryImpl40 extends ClientJDBCObjectFactoryImpl
Constructor and Description |
---|
ClientJDBCObjectFactoryImpl40()
Sets SQLExceptionFactpry40 om SqlException to make sure jdbc40
exception and sub classes are thrown when running with jdbc4.0 support
|
Modifier and Type | Method and Description |
---|---|
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)
Returns an instance of org.apache.derby.client.ClientPooledConnection40
|
ClientPooledConnection |
newClientPooledConnection(ClientBaseDataSourceRoot ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password,
int rmId)
Returns an instance of org.apache.derby.client.ClientPooledConnection40
|
ClientXAConnection |
newClientXAConnection(ClientBaseDataSourceRoot ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password)
Returns an instance of org.apache.derby.client.ClientXAConnection40
|
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)
returns an instance of org.apache.derby.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
int driverManagerLoginTimeout,
java.lang.String serverName,
int portNumber,
java.lang.String databaseName,
java.util.Properties properties)
returns an instance of org.apache.derby.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String ipaddr,
int portNumber,
ClientBaseDataSourceRoot dataSource,
boolean isXAConn)
returns an instance of org.apache.derby.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String databaseName,
java.util.Properties properties)
returns an instance of org.apache.derby.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String user,
java.lang.String password,
ClientBaseDataSourceRoot dataSource,
int rmId,
boolean isXAConn)
returns an instance of org.apache.derby.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
java.lang.String user,
java.lang.String password,
ClientBaseDataSourceRoot dataSource,
int rmId,
boolean isXAConn,
ClientPooledConnection cpc)
Returns an instance of org.apache.derby.client.net.NetConnection.
|
DatabaseMetaData |
newNetDatabaseMetaData(Agent netAgent,
Connection netConnection)
returns an instance of org.apache.derby.client.net.NetDatabaseMetaData
|
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)
returns an instance of org.apache.derby.client.net.NetResultSet
|
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)
This method returns an instance of PreparedStatement
which implements java.sql.PreparedStatement.
|
PreparedStatement |
newPreparedStatement(Agent agent,
Connection connection,
java.lang.String sql,
Section section,
ClientPooledConnection cpc)
Returns an instance of org.apache.derby.client.am.CallableStatement40
|
newBatchUpdateException, newBatchUpdateException, newColumnMetaData, newColumnMetaData, newParameterMetaData, newStatement, newStatement
public ClientJDBCObjectFactoryImpl40()
public ClientPooledConnection newClientPooledConnection(ClientBaseDataSourceRoot ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
newClientPooledConnection
in interface ClientJDBCObjectFactory
newClientPooledConnection
in class ClientJDBCObjectFactoryImpl
java.sql.SQLException
public ClientPooledConnection newClientPooledConnection(ClientBaseDataSourceRoot ds, LogWriter logWriter, java.lang.String user, java.lang.String password, int rmId) throws java.sql.SQLException
newClientPooledConnection
in interface ClientJDBCObjectFactory
newClientPooledConnection
in class ClientJDBCObjectFactoryImpl
java.sql.SQLException
public ClientXAConnection newClientXAConnection(ClientBaseDataSourceRoot ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
newClientXAConnection
in interface ClientJDBCObjectFactory
newClientXAConnection
in class ClientJDBCObjectFactoryImpl
java.sql.SQLException
public CallableStatement newCallableStatement(Agent agent, Connection 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
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
public LogicalConnection newLogicalConnection(Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException
newLogicalConnection
in interface ClientJDBCObjectFactory
newLogicalConnection
in class ClientJDBCObjectFactoryImpl
SqlException
public LogicalConnection newCachingLogicalConnection(Connection physicalConnection, ClientPooledConnection pooledConnection, JDBCStatementCache stmtCache) throws SqlException
CachingLogicalConnection
, which
provides caching of prepared statements.newCachingLogicalConnection
in interface ClientJDBCObjectFactory
newCachingLogicalConnection
in class ClientJDBCObjectFactoryImpl
physicalConnection
- the underlying physical connectionpooledConnection
- the pooled connectionstmtCache
- statement cacheSqlException
- if creation of the logical connection failspublic PreparedStatement newPreparedStatement(Agent agent, Connection 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
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
public 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
newPreparedStatement
in interface ClientJDBCObjectFactory
newPreparedStatement
in class ClientJDBCObjectFactoryImpl
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 from 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 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 interactorpublic Connection newNetConnection(LogWriter netLogWriter, java.lang.String databaseName, java.util.Properties properties) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
newNetConnection
in class ClientJDBCObjectFactoryImpl
SqlException
public Connection newNetConnection(LogWriter netLogWriter, ClientBaseDataSourceRoot clientDataSource, java.lang.String user, java.lang.String password) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
newNetConnection
in class ClientJDBCObjectFactoryImpl
SqlException
public Connection newNetConnection(LogWriter netLogWriter, int driverManagerLoginTimeout, java.lang.String serverName, int portNumber, java.lang.String databaseName, java.util.Properties properties) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
newNetConnection
in class ClientJDBCObjectFactoryImpl
SqlException
public Connection newNetConnection(LogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSourceRoot dataSource, int rmId, boolean isXAConn) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
newNetConnection
in class ClientJDBCObjectFactoryImpl
SqlException
public Connection newNetConnection(LogWriter netLogWriter, java.lang.String ipaddr, int portNumber, ClientBaseDataSourceRoot dataSource, boolean isXAConn) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
newNetConnection
in class ClientJDBCObjectFactoryImpl
SqlException
public Connection newNetConnection(LogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSourceRoot dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
newNetConnection
in class ClientJDBCObjectFactoryImpl
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
public 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
newNetResultSet
in interface ClientJDBCObjectFactory
newNetResultSet
in class ClientJDBCObjectFactoryImpl
SqlException
public DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, Connection netConnection)
newNetDatabaseMetaData
in interface ClientJDBCObjectFactory
newNetDatabaseMetaData
in class ClientJDBCObjectFactoryImpl
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.