|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.client.net.ClientJDBCObjectFactoryImpl40
public class ClientJDBCObjectFactoryImpl40
Implements the ClientJDBCObjectFactory interface and returns the JDBC4.0 specific classes
Constructor Summary | |
---|---|
ClientJDBCObjectFactoryImpl40()
Sets SQLExceptionFactpry40 om SqlException to make sure jdbc40 exception and sub classes are thrown when running with jdbc4.0 support |
Method Summary | |
---|---|
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(ClientBaseDataSource ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password)
Returns an instance of org.apache.derby.client.ClientPooledConnection40 |
ClientPooledConnection |
newClientPooledConnection(ClientBaseDataSource ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password,
int rmId)
Returns an instance of org.apache.derby.client.ClientPooledConnection40 |
ClientXAConnection |
newClientXAConnection(ClientBaseDataSource ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password)
Returns an instance of org.apache.derby.client.ClientXAConnection40 |
ColumnMetaData |
newColumnMetaData(LogWriter logWriter)
Returns an instanceof ColumnMetaData |
ColumnMetaData |
newColumnMetaData(LogWriter logWriter,
int upperBound)
Returns an instanceof 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(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,
ClientBaseDataSource 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,
ClientBaseDataSource 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,
ClientBaseDataSource 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,
ClientBaseDataSource 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 |
ParameterMetaData |
newParameterMetaData(ColumnMetaData columnMetaData)
returns an instance of ParameterMetaData40 |
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 |
Statement |
newStatement(Agent agent,
Connection connection)
This method provides an instance of Statement40 |
Statement |
newStatement(Agent agent,
Connection connection,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes)
This method provides an instance of Statement40 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientJDBCObjectFactoryImpl40()
Method Detail |
---|
public ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
newClientPooledConnection
in interface ClientJDBCObjectFactory
java.sql.SQLException
public ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, java.lang.String user, java.lang.String password, int rmId) throws java.sql.SQLException
newClientPooledConnection
in interface ClientJDBCObjectFactory
java.sql.SQLException
public ClientXAConnection newClientXAConnection(ClientBaseDataSource ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
newClientXAConnection
in interface ClientJDBCObjectFactory
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
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
SqlException
public LogicalConnection newCachingLogicalConnection(Connection physicalConnection, ClientPooledConnection pooledConnection, JDBCStatementCache stmtCache) throws SqlException
CachingLogicalConnection
, which
provides caching of prepared statements.
newCachingLogicalConnection
in interface ClientJDBCObjectFactory
physicalConnection
- the underlying physical connectionpooledConnection
- the pooled connectionstmtCache
- statement cache
SqlException
- 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
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
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
ps
- underlying physical prepared statementstmtKey
- key for the underlying physical prepared statementcacheInteractor
- the statement cache interactor
public LogicalCallableStatement newLogicalCallableStatement(java.sql.CallableStatement cs, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
newLogicalCallableStatement
in interface ClientJDBCObjectFactory
cs
- underlying physical callable statementstmtKey
- key for the underlying physical callable statementcacheInteractor
- the statement cache interactor
public Connection newNetConnection(LogWriter netLogWriter, java.lang.String databaseName, java.util.Properties properties) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
SqlException
public Connection newNetConnection(LogWriter netLogWriter, ClientBaseDataSource clientDataSource, java.lang.String user, java.lang.String password) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
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
SqlException
public Connection newNetConnection(LogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSource dataSource, int rmId, boolean isXAConn) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
SqlException
public Connection newNetConnection(LogWriter netLogWriter, java.lang.String ipaddr, int portNumber, ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
SqlException
public Connection newNetConnection(LogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
newNetConnection
in interface ClientJDBCObjectFactory
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
object
SqlException
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
SqlException
public DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, Connection netConnection)
newNetDatabaseMetaData
in interface ClientJDBCObjectFactory
public Statement newStatement(Agent agent, Connection connection) throws SqlException
newStatement
in interface ClientJDBCObjectFactory
agent
- Agentconnection
- Connection
SqlException
public Statement newStatement(Agent agent, Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, java.lang.String[] columnNames, int[] columnIndexes) throws SqlException
newStatement
in interface ClientJDBCObjectFactory
agent
- Agentconnection
- Connectiontype
- intconcurrency
- intholdability
- intautoGeneratedKeys
- intcolumnNames
- String[]columnIndexes
- int[]
SqlException
public ColumnMetaData newColumnMetaData(LogWriter logWriter)
newColumnMetaData
in interface ClientJDBCObjectFactory
logWriter
- LogWriter
public ColumnMetaData newColumnMetaData(LogWriter logWriter, int upperBound)
newColumnMetaData
in interface ClientJDBCObjectFactory
logWriter
- LogWriterupperBound
- int
public ParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)
newParameterMetaData
in interface ClientJDBCObjectFactory
columnMetaData
- ColumnMetaData
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |