Top Description Constructors Methods
org.apache.derby.client.net

public Class ClientJDBCObjectFactoryImpl42

extends ClientJDBCObjectFactoryImpl
Class Inheritance
Imports
java.sql.BatchUpdateException, .CallableStatement, .PreparedStatement, org.apache.derby.client.am.SqlException, .Agent, .ClientCallableStatement, .ClientCallableStatement42, .Cursor, .LogicalCallableStatement, .LogicalCallableStatement42, .LogicalPreparedStatement, .LogicalPreparedStatement42, .ClientPreparedStatement, .ClientPreparedStatement42, .ClientConnection, .ClientResultSet, .MaterialStatement, .Section, .StatementCacheInteractor, org.apache.derby.client.ClientPooledConnection, org.apache.derby.client.am.stmtcache.StatementKey

Implements the ClientJDBCObjectFactory interface and returns the JDBC 4.2 specific classes.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected BatchUpdateException
newBatchUpdateException(String
The message to put in the exception
message
,
String
The SQLState to put in the exception
sqlState
,
int
The errorCode to put in the exception
errorCode
,
long[]
The array of update counts
updateCounts
,
SqlException
The original exception
cause
)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

This method is overridden on JVM 8 to take advantage of long update counts.
public ClientCallableStatement
newCallableStatement(Agent
The instance of NetAgent associated with this org.apache.derby.client.am.ClientCallableStatement object.
agent
,
ClientConnection
The connection object associated with this PreparedStatement Object.
connection
,
String
A String object that is the SQL statement to be sent to the database.
sql
,
int
One of the ResultSet type constants
type
,
int
One of the ResultSet concurrency constants
concurrency
,
int
One of the ResultSet holdability constants
holdability
,
ClientPooledConnection
The PooledConnection object that will be used to notify the PooledConnection reference of the Error Occurred and the Close events.
cpc
)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newCallableStatement.

return a ClientCallableStatement42 object
public LogicalCallableStatement
newLogicalCallableStatement(CallableStatement
underlying physical callable statement
cs
,
StatementKey
key for the underlying physical callable statement
stmtKey
,
StatementCacheInteractor
the statement cache interactor
cacheInteractor
)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalCallableStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newLogicalCallableStatement.

Returns a new logical callable statement object.
public LogicalPreparedStatement
newLogicalPreparedStatement(PreparedStatement
underlying physical prepared statement
ps
,
StatementKey
key for the underlying physical prepared statement
stmtKey
,
StatementCacheInteractor
the statement cache interactor
cacheInteractor
)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalPreparedStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newLogicalPreparedStatement.

Returns a new logical prepared statement object.
public ClientResultSet
newNetResultSet(Agent
The wrapped agent
netAgent
,
MaterialStatement
The wrapped statement
netStatement
,
Cursor
The wrapped cursor
cursor
,
int
DRDA variable
qryprctyp
,
int
DRDA variable
sqlcsrhld
,
int
DRDA variable
qryattscr
,
int
DRDA variable
qryattsns
,
int
DRDA variable
qryattset
,
long
DRDA variable
qryinsid
,
int
Type of result set
actualResultSetType
,
int
Concurrency level
actualResultSetConcurrency
,
int
Whether results are holdable
actualResultSetHoldability
)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetResultSet.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

returns an instance of org.apache.derby.client.net.NetResultSet
public ClientPreparedStatement
newPreparedStatement(Agent
The instance of NetAgent associated with this org.apache.derby.client.am.ClientCallableStatement object.
agent
,
ClientConnection
The connection object associated with this PreparedStatement Object.
connection
,
String
A String object that is the SQL statement to be sent to the database.
sql
,
Section
Section
section
,
ClientPooledConnection
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.
cpc
)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newPreparedStatement.

Returns a PreparedStatement.
public ClientPreparedStatement
newPreparedStatement(Agent
The instance of NetAgent associated with this org.apache.derby.client.am.ClientCallableStatement object.
agent
,
ClientConnection
The connection object associated with this PreparedStatement Object.
connection
,
String
A String object that is the SQL statement to be sent to the database.
sql
,
int
One of the ResultSet type constants.
type
,
int
One of the ResultSet concurrency constants.
concurrency
,
int
One of the ResultSet holdability constants.
holdability
,
int
a flag indicating whether auto-generated keys should be returned.
autoGeneratedKeys
,
String[]
an array of column names indicating the columns that should be returned from the inserted row or rows.
columnNames
,
int[]
an array of column indexes indicating the columns that should be returned form the inserted row.
columnIndexes
,
ClientPooledConnection
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.
cpc
)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newPreparedStatement.

This method returns an instance of PreparedStatement which implements java.sql.PreparedStatement.
Inherited from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl:
newBatchUpdateExceptionnewCachingLogicalConnectionnewClientPooledConnectionnewClientXAConnectionnewColumnMetaDatanewColumnMetaDatanewLogicalConnectionnewNetConnectionnewNetConnectionnewNetConnectionnewNetDatabaseMetaDatanewParameterMetaDatanewStatement

Constructor Detail

ClientJDBCObjectFactoryImpl42back to summary
public ClientJDBCObjectFactoryImpl42()

Method Detail

newBatchUpdateExceptionback to summary
protected BatchUpdateException newBatchUpdateException(String message, String sqlState, int errorCode, long[] updateCounts, SqlException cause)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

This method is overridden on JVM 8 to take advantage of long update counts.

Parameters
message:String

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

The message to put in the exception

sqlState:String

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

The SQLState to put in the exception

errorCode:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

The errorCode to put in the exception

updateCounts:long[]

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

The array of update counts

cause:SqlException

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

The original exception

Returns:BatchUpdateException

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newBatchUpdateException.

a batch update exception

newCallableStatementback to summary
public ClientCallableStatement newCallableStatement(Agent agent, ClientConnection connection, String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) throws SqlException

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newCallableStatement.

return a ClientCallableStatement42 object

Parameters
agent:Agent

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

The instance of NetAgent associated with this org.apache.derby.client.am.ClientCallableStatement object.

connection:ClientConnection

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

The connection object associated with this PreparedStatement Object.

sql:String

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

A String object that is the SQL statement to be sent to the database.

type:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

One of the ResultSet type constants

concurrency:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

One of the ResultSet concurrency constants

holdability:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

One of the ResultSet holdability constants

cpc:ClientPooledConnection

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

The PooledConnection object that will be used to notify the PooledConnection reference of the Error Occurred and the Close events.

Returns:ClientCallableStatement

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

a org.apache.derby.client.am.ClientCallableStatement object

Exceptions
SqlException:

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newCallableStatement.

on error

newLogicalCallableStatementback to summary
public LogicalCallableStatement newLogicalCallableStatement(CallableStatement cs, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalCallableStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newLogicalCallableStatement.

Returns a new logical callable statement object.

Parameters
cs:CallableStatement

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalCallableStatement.

underlying physical callable statement

stmtKey:StatementKey

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalCallableStatement.

key for the underlying physical callable statement

cacheInteractor:StatementCacheInteractor

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalCallableStatement.

the statement cache interactor

Returns:LogicalCallableStatement

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalCallableStatement.

A logical callable statement.

newLogicalPreparedStatementback to summary
public LogicalPreparedStatement newLogicalPreparedStatement(PreparedStatement ps, StatementKey stmtKey, StatementCacheInteractor cacheInteractor)

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalPreparedStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newLogicalPreparedStatement.

Returns a new logical prepared statement object.

Parameters
ps:PreparedStatement

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalPreparedStatement.

underlying physical prepared statement

stmtKey:StatementKey

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalPreparedStatement.

key for the underlying physical prepared statement

cacheInteractor:StatementCacheInteractor

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalPreparedStatement.

the statement cache interactor

Returns:LogicalPreparedStatement

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newLogicalPreparedStatement.

A logical prepared statement.

newNetResultSetback to summary
public ClientResultSet 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

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetResultSet.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

returns an instance of org.apache.derby.client.net.NetResultSet

Parameters
netAgent:Agent

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

The wrapped agent

netStatement:MaterialStatement

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

The wrapped statement

cursor:Cursor

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

The wrapped cursor

qryprctyp:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

DRDA variable

sqlcsrhld:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

DRDA variable

qryattscr:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

DRDA variable

qryattsns:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

DRDA variable

qryattset:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

DRDA variable

qryinsid:long

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

DRDA variable

actualResultSetType:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

Type of result set

actualResultSetConcurrency:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

Concurrency level

actualResultSetHoldability:int

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

Whether results are holdable

Returns:ClientResultSet

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetResultSet.

an instance of NetResultSet

Exceptions
SqlException:

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newNetResultSet.

on error

newPreparedStatementback to summary
public ClientPreparedStatement newPreparedStatement(Agent agent, ClientConnection connection, String sql, Section section, ClientPooledConnection cpc) throws SqlException

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newPreparedStatement.

Returns a PreparedStatement.

Parameters
agent:Agent

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

The instance of NetAgent associated with this org.apache.derby.client.am.ClientCallableStatement object.

connection:ClientConnection

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

The connection object associated with this PreparedStatement Object.

sql:String

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

A String object that is the SQL statement to be sent to the database.

section:Section

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

Section

cpc:ClientPooledConnection

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

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.

Returns:ClientPreparedStatement

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

a PreparedStatement object

Exceptions
SqlException:

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

on error

newPreparedStatementback to summary
public ClientPreparedStatement newPreparedStatement(Agent agent, ClientConnection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes, ClientPooledConnection cpc) throws SqlException

Overrides org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

Implements org.apache.derby.client.am.ClientJDBCObjectFactory.newPreparedStatement.

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:Agent

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

The instance of NetAgent associated with this org.apache.derby.client.am.ClientCallableStatement object.

connection:ClientConnection

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

The connection object associated with this PreparedStatement Object.

sql:String

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

A String object that is the SQL statement to be sent to the database.

type:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

One of the ResultSet type constants.

concurrency:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

One of the ResultSet concurrency constants.

holdability:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

One of the ResultSet holdability constants.

autoGeneratedKeys:int

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

a flag indicating whether auto-generated keys should be returned.

columnNames:String[]

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

an array of column names indicating the columns that should be returned from the inserted row or rows.

columnIndexes:int[]

Doc from org.apache.derby.client.am.ClientJDBCObjectFactory.newPreparedStatement.

an array of column indexes indicating the columns that should be returned form the inserted row.

cpc:ClientPooledConnection

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

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.

Returns:ClientPreparedStatement

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

a PreparedStatement object

Exceptions
SqlException:

Doc from org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newPreparedStatement.

on error