| java.lang.Object org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40
ClientJDBCObjectFactoryImpl40 | public class ClientJDBCObjectFactoryImpl40 implements ClientJDBCObjectFactory(Code) | | Implements the ClientJDBCObjectFactory interface
and returns the JDBC4.0 specific classes
|
Method Summary | |
public CallableStatement | newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) Returns an instance of org.apache.derby.client.am.CallableStatement.
Parameters: agent - The instance of NetAgent associated with thisCallableStatement object. Parameters: connection - The connection object associated with thisPreparedStatement Object. Parameters: sql - A String object that is the SQL statement to be sent to the database. Parameters: type - One of the ResultSet type constants Parameters: concurrency - One of the ResultSet concurrency constants Parameters: holdability - One of the ResultSet holdability constants Parameters: cpc - The PooledConnection object that will be used to notify the PooledConnection reference of the Error Occurred and the Close events. | public ClientPooledConnection | newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password) | public ClientPooledConnection | newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId) | public ColumnMetaData | newColumnMetaData(LogWriter logWriter) | public ColumnMetaData | newColumnMetaData(LogWriter logWriter, int upperBound) | public LogicalConnection | newLogicalConnection(org.apache.derby.client.am.Connection physicalConnection, ClientPooledConnection pooledConnection) Returns an instance of LogicalConnection. | public org.apache.derby.client.am.Connection | newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String databaseName, java.util.Properties properties) | public org.apache.derby.client.am.Connection | newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, org.apache.derby.jdbc.ClientBaseDataSource clientDataSource, String user, String password) | public org.apache.derby.client.am.Connection | newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties) | public org.apache.derby.client.am.Connection | newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn) | public org.apache.derby.client.am.Connection | newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String ipaddr, int portNumber, org.apache.derby.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) | public org.apache.derby.client.am.Connection | newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) Returns an instance of org.apache.derby.client.net.NetConnection.
Parameters: netLogWriter - placeholder for NetLogWriter object associated with this connection Parameters: user - user id for this connection Parameters: password - password for this connection Parameters: dataSource - The DataSource object passed from the PooledConnection object from which this constructor was called Parameters: rmId - The Resource Manager ID for XA Connections Parameters: isXAConn - true if this is a XA connection Parameters: cpc - The ClientPooledConnection object from which this NetConnection constructor was called. | public org.apache.derby.client.am.DatabaseMetaData | newNetDatabaseMetaData(Agent netAgent, org.apache.derby.client.am.Connection netConnection) | public org.apache.derby.client.am.ResultSet | newNetResultSet(Agent netAgent, org.apache.derby.client.am.MaterialStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability) | public ParameterMetaData | newParameterMetaData(ColumnMetaData columnMetaData) | public PreparedStatement | newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, Section section, ClientPooledConnection cpc) | public PreparedStatement | newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, ClientPooledConnection cpc) This method returns an instance of PreparedStatement
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.
Parameters: agent - The instance of NetAgent associated with thisCallableStatement object. Parameters: connection - The connection object associated with thisPreparedStatement Object. Parameters: sql - A String object that is the SQL statementto be sent to the database. Parameters: type - One of the ResultSet type constants. Parameters: concurrency - One of the ResultSet concurrency constants. Parameters: holdability - One of the ResultSet holdability constants. Parameters: autoGeneratedKeys - a flag indicating whether auto-generatedkeys should be returned. Parameters: columnNames - an array of column names indicating the columns thatshould be returned from the inserted row or rows. Parameters: cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statementit is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection. | public Statement | newStatement(Agent agent, org.apache.derby.client.am.Connection connection) | public Statement | newStatement(Agent agent, org.apache.derby.client.am.Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames) |
ClientJDBCObjectFactoryImpl40 | public ClientJDBCObjectFactoryImpl40()(Code) | | Sets SQLExceptionFactpry40 om SqlException to make sure jdbc40
exception and sub classes are thrown when running with jdbc4.0 support
|
newCallableStatement | public CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) throws SqlException(Code) | | Returns an instance of org.apache.derby.client.am.CallableStatement.
Parameters: agent - The instance of NetAgent associated with thisCallableStatement object. Parameters: connection - The connection object associated with thisPreparedStatement Object. Parameters: sql - A String object that is the SQL statement to be sent to the database. Parameters: type - One of the ResultSet type constants Parameters: concurrency - One of the ResultSet concurrency constants Parameters: holdability - One of the ResultSet holdability constants Parameters: cpc - The PooledConnection object that will be used to notify the PooledConnection reference of the Error Occurred and the Close events. a CallableStatement object throws: SqlException - |
newColumnMetaData | public ColumnMetaData newColumnMetaData(LogWriter logWriter)(Code) | | Returns an instanceof ColumnMetaData
Parameters: logWriter - LogWriter a ColumnMetaData implementation |
newColumnMetaData | public ColumnMetaData newColumnMetaData(LogWriter logWriter, int upperBound)(Code) | | Returns an instanceof ColumnMetaData or ColumnMetaData40 depending
on the jdk version under use
Parameters: logWriter - LogWriter Parameters: upperBound - int a ColumnMetaData implementation |
newNetConnection | public org.apache.derby.client.am.Connection newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException(Code) | | Returns an instance of org.apache.derby.client.net.NetConnection.
Parameters: netLogWriter - placeholder for NetLogWriter object associated with this connection Parameters: user - user id for this connection Parameters: password - password for this connection Parameters: dataSource - The DataSource object passed from the PooledConnection object from which this constructor was called Parameters: rmId - The Resource Manager ID for XA Connections Parameters: isXAConn - true if this is a XA connection Parameters: cpc - The ClientPooledConnection object from which this NetConnection constructor was called. This is usedto pass StatementEvents back to the pooledConnectionobject a org.apache.derby.client.am.Connection object throws: SqlException - |
newNetResultSet | public org.apache.derby.client.am.ResultSet newNetResultSet(Agent netAgent, org.apache.derby.client.am.MaterialStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability) throws SqlException(Code) | | returns an instance of org.apache.derby.client.net.NetResultSet
|
newParameterMetaData | public ParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)(Code) | | returns an instance of ParameterMetaData40
Parameters: columnMetaData - ColumnMetaData a ParameterMetaData implementation |
newPreparedStatement | public PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, ClientPooledConnection cpc) throws SqlException(Code) | | This method returns an instance of PreparedStatement
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.
Parameters: agent - The instance of NetAgent associated with thisCallableStatement object. Parameters: connection - The connection object associated with thisPreparedStatement Object. Parameters: sql - A String object that is the SQL statementto be sent to the database. Parameters: type - One of the ResultSet type constants. Parameters: concurrency - One of the ResultSet concurrency constants. Parameters: holdability - One of the ResultSet holdability constants. Parameters: autoGeneratedKeys - a flag indicating whether auto-generatedkeys should be returned. Parameters: columnNames - an array of column names indicating the columns thatshould be returned from the inserted row or rows. Parameters: cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statementit is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection. a PreparedStatement object throws: SqlException - |
newStatement | public Statement newStatement(Agent agent, org.apache.derby.client.am.Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames) throws SqlException(Code) | | This method provides an instance of Statement40
Parameters: agent - Agent Parameters: connection - Connection Parameters: type - int Parameters: concurrency - int Parameters: holdability - int Parameters: autoGeneratedKeys - int Parameters: columnNames - String[] a java.sql.Statement implementation throws: SqlException - |
|
|