public class ClientJDBCObjectFactoryImpl40 extends Object implements ClientJDBCObjectFactory
| 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 |
|---|---|
ResultSet |
getSingleHopResultSet(NetResultSet nrs0,
PreparedStatement[] psarray,
NetConnection.DSConnectionInfo dsConnInfo) |
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,
String sql,
int type,
int concurrency,
int holdability,
ClientPooledConnection cpc)
Returns an instance of com.pivotal.gemfirexd.internal.client.am.CallableStatement.
|
ClientPooledConnection |
newClientPooledConnection(ClientBaseDataSource ds,
LogWriter logWriter,
String user,
String password)
Returns an instance of com.pivotal.gemfirexd.internal.client.ClientPooledConnection40
|
ClientPooledConnection |
newClientPooledConnection(ClientBaseDataSource ds,
LogWriter logWriter,
String user,
String password,
int rmId)
Returns an instance of com.pivotal.gemfirexd.internal.client.ClientPooledConnection40
|
ClientXAConnection |
newClientXAConnection(ClientBaseDataSource ds,
LogWriter logWriter,
String user,
String password)
Returns an instance of com.pivotal.gemfirexd.internal.client.ClientXAConnection40
|
ColumnMetaData |
newColumnMetaData(Agent agent)
Returns an instanceof ColumnMetaData
|
ColumnMetaData |
newColumnMetaData(Agent agent,
int upperBound)
Returns an instanceof ColumnMetaData or ColumnMetaData40 depending
on the jdk version under use
|
LogicalCallableStatement |
newLogicalCallableStatement(Agent agent,
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(Agent agent,
PreparedStatement ps,
StatementKey stmtKey,
StatementCacheInteractor cacheInteractor)
Returns a new logcial prepared statement object.
|
Connection |
newNetConnection(LogWriter netLogWriter,
ClientBaseDataSource clientDataSource,
String user,
String password)
returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
int driverManagerLoginTimeout,
String serverName,
int portNumber,
String databaseName,
Properties properties)
returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
String ipaddr,
int portNumber,
ClientBaseDataSource dataSource,
boolean isXAConn)
returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
String databaseName,
Properties properties)
returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
String user,
String password,
ClientBaseDataSource dataSource,
int rmId,
boolean isXAConn)
returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40
|
Connection |
newNetConnection(LogWriter netLogWriter,
String user,
String password,
ClientBaseDataSource dataSource,
int rmId,
boolean isXAConn,
ClientPooledConnection cpc)
Returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection.
|
DatabaseMetaData |
newNetDatabaseMetaData(Agent netAgent,
Connection netConnection)
returns an instance of com.pivotal.gemfirexd.internal.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 com.pivotal.gemfirexd.internal.client.net.NetResultSet
|
ParameterMetaData |
newParameterMetaData(ColumnMetaData columnMetaData)
returns an instance of ParameterMetaData40
|
PreparedStatement |
newPreparedStatement(Agent agent,
Connection connection,
String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
String[] columnNames,
int[] columnIndexes,
ClientPooledConnection cpc)
This method returns an instance of PreparedStatement
which implements java.sql.PreparedStatement.
|
PreparedStatement |
newPreparedStatement(Agent agent,
Connection connection,
String sql,
Section section,
ClientPooledConnection cpc)
Returns an instance of com.pivotal.gemfirexd.internal.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,
String[] columnNames,
int[] columnIndexes)
This method provides an instance of Statement40
|
public ClientJDBCObjectFactoryImpl40()
public ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password) throws SQLException
newClientPooledConnection in interface ClientJDBCObjectFactorySQLExceptionpublic ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId) throws SQLException
newClientPooledConnection in interface ClientJDBCObjectFactorySQLExceptionpublic ClientXAConnection newClientXAConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password) throws SQLException
newClientXAConnection in interface ClientJDBCObjectFactorySQLExceptionpublic CallableStatement newCallableStatement(Agent agent, Connection connection, String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) throws SqlException
newCallableStatement in interface ClientJDBCObjectFactoryagent - 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.SqlExceptionpublic LogicalConnection newLogicalConnection(Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException
newLogicalConnection in interface ClientJDBCObjectFactorySqlExceptionpublic LogicalConnection newCachingLogicalConnection(Connection physicalConnection, ClientPooledConnection pooledConnection, JDBCStatementCache stmtCache) throws SqlException
CachingLogicalConnection, which
provides caching of prepared statements.newCachingLogicalConnection in interface ClientJDBCObjectFactoryphysicalConnection - the underlying physical connectionpooledConnection - the pooled connectionstmtCache - statement cacheSqlException - if creation of the logical connection failspublic PreparedStatement newPreparedStatement(Agent agent, Connection connection, String sql, Section section, ClientPooledConnection cpc) throws SqlException
newPreparedStatement in interface ClientJDBCObjectFactoryagent - 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.SqlExceptionpublic PreparedStatement newPreparedStatement(Agent agent, Connection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes, ClientPooledConnection cpc) throws SqlException
newPreparedStatement in interface ClientJDBCObjectFactoryagent - 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.SqlExceptionpublic LogicalPreparedStatement newLogicalPreparedStatement(Agent agent, PreparedStatement ps, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
newLogicalPreparedStatement in interface ClientJDBCObjectFactoryps - underlying physical prepared statementstmtKey - key for the underlying physical prepared statementcacheInteractor - the statement cache interactorpublic LogicalCallableStatement newLogicalCallableStatement(Agent agent, CallableStatement cs, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)
newLogicalCallableStatement in interface ClientJDBCObjectFactorycs - underlying physical callable statementstmtKey - key for the underlying physical callable statementcacheInteractor - the statement cache interactorpublic Connection newNetConnection(LogWriter netLogWriter, String databaseName, Properties properties) throws SqlException
newNetConnection in interface ClientJDBCObjectFactorySqlExceptionpublic Connection newNetConnection(LogWriter netLogWriter, ClientBaseDataSource clientDataSource, String user, String password) throws SqlException
newNetConnection in interface ClientJDBCObjectFactorySqlExceptionpublic Connection newNetConnection(LogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, Properties properties) throws SqlException
newNetConnection in interface ClientJDBCObjectFactorySqlExceptionpublic Connection newNetConnection(LogWriter netLogWriter, String user, String password, ClientBaseDataSource dataSource, int rmId, boolean isXAConn) throws SqlException
newNetConnection in interface ClientJDBCObjectFactorySqlExceptionpublic Connection newNetConnection(LogWriter netLogWriter, String ipaddr, int portNumber, ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException
newNetConnection in interface ClientJDBCObjectFactorySqlExceptionpublic Connection newNetConnection(LogWriter netLogWriter, String user, String password, ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
newNetConnection in interface ClientJDBCObjectFactorynetLogWriter - 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
objectSqlExceptionpublic 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 ClientJDBCObjectFactorySqlExceptionpublic DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, Connection netConnection)
newNetDatabaseMetaData in interface ClientJDBCObjectFactorypublic Statement newStatement(Agent agent, Connection connection) throws SqlException
newStatement in interface ClientJDBCObjectFactoryagent - Agentconnection - ConnectionSqlExceptionpublic Statement newStatement(Agent agent, Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes) throws SqlException
newStatement in interface ClientJDBCObjectFactoryagent - Agentconnection - Connectiontype - intconcurrency - intholdability - intautoGeneratedKeys - intcolumnNames - String[]columnIndexes - int[]SqlExceptionpublic ColumnMetaData newColumnMetaData(Agent agent)
newColumnMetaData in interface ClientJDBCObjectFactorylogWriter - LogWriterpublic ColumnMetaData newColumnMetaData(Agent agent, int upperBound)
newColumnMetaData in interface ClientJDBCObjectFactorylogWriter - LogWriterupperBound - intpublic ParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)
newParameterMetaData in interface ClientJDBCObjectFactorycolumnMetaData - ColumnMetaDatapublic ResultSet getSingleHopResultSet(NetResultSet nrs0, PreparedStatement[] psarray, NetConnection.DSConnectionInfo dsConnInfo)
getSingleHopResultSet in interface ClientJDBCObjectFactoryCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.