| org.apache.derby.client.am.ClientJDBCObjectFactory
All known Subclasses: org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40, org.apache.derby.client.net.ClientJDBCObjectFactoryImpl,
ClientJDBCObjectFactory | public interface ClientJDBCObjectFactory (Code) | | The methods of this interface are used to return JDBC interface
implementations to the user depending on the JDBC version supported
by the jdk
|
Method Summary | |
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.
or CallableStatement40 which implements java.sql.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. | ClientPooledConnection | newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password) | ClientPooledConnection | newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId) | ColumnMetaData | newColumnMetaData(LogWriter logWriter) | ColumnMetaData | newColumnMetaData(LogWriter logWriter, int upperBound) | LogicalConnection | newLogicalConnection(org.apache.derby.client.am.Connection physicalConnection, ClientPooledConnection pooledConnection) Returns an instance of LogicalConnection. | org.apache.derby.client.am.Connection | newNetConnection(LogWriter netLogWriter, String databaseName, java.util.Properties properties) | org.apache.derby.client.am.Connection | newNetConnection(LogWriter netLogWriter, org.apache.derby.jdbc.ClientBaseDataSource clientDataSource, String user, String password) | org.apache.derby.client.am.Connection | newNetConnection(LogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties) | org.apache.derby.client.am.Connection | newNetConnection(LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn) | org.apache.derby.client.am.Connection | newNetConnection(LogWriter netLogWriter, String ipaddr, int portNumber, org.apache.derby.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) | org.apache.derby.client.am.Connection | newNetConnection(LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource 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
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. | DatabaseMetaData | newNetDatabaseMetaData(Agent netAgent, org.apache.derby.client.am.Connection netConnection) | 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) | ParameterMetaData | newParameterMetaData(ColumnMetaData columnMetaData) | PreparedStatement | newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, 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
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 sentto the database. Parameters: section - Section Parameters: cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statement.It is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection. | 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) 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
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. | Statement | newStatement(Agent agent, org.apache.derby.client.am.Connection connection) | Statement | newStatement(Agent agent, org.apache.derby.client.am.Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames) |
newCallableStatement | 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.
or CallableStatement40 which implements java.sql.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 | ColumnMetaData newColumnMetaData(LogWriter logWriter)(Code) | | Returns an instanceof ColumnMetaData or ColumnMetaData40 depending
on the jdk version under use
Parameters: logWriter - LogWriter a ColumnMetaData implementation |
newColumnMetaData | 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 | org.apache.derby.client.am.Connection newNetConnection(LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException(Code) | | 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
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 throws: SqlException - |
newNetDatabaseMetaData | DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, org.apache.derby.client.am.Connection netConnection)(Code) | | This method provides an instance of NetDatabaseMetaData
(or NetDatabaseMetaData40) which extends from
org.apache.derby.client.am.DatabaseMetaData which implements
java.sql.DatabaseMetaData
|
newNetResultSet | 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(Code) | | This method returns an instance of NetResultSet(or NetResultSet40)
which extends from org.apache.derby.client.am.ResultSet
which implements java.sql.ResultSet
|
newParameterMetaData | ParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)(Code) | | returns an instance of ParameterMetaData or ParameterMetaData40 depending
on the jdk version under use
Parameters: columnMetaData - ColumnMetaData a ParameterMetaData implementation |
newPreparedStatement | PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, Section section, ClientPooledConnection cpc) throws SqlException(Code) | | 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
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 sentto the database. Parameters: section - Section Parameters: cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statement.It is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection. a PreparedStatement object throws: SqlException - |
newPreparedStatement | 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) | | 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
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 PreparedSatement object throws: SqlException - |
newStatement | 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 Statement or Statement40
depending on the jdk version under use
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 - |
|
|