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

pack-priv Class NetPreparedStatement

extends NetStatement
implements MaterialPreparedStatement
Class Inheritance
All Implemented Interfaces
org.apache.derby.client.am.MaterialPreparedStatement, org.apache.derby.client.am.MaterialStatement
Known Direct Subclasses
org.apache.derby.client.net.NetCallableStatement
Imports
org.apache.derby.client.am.ColumnMetaData, .ClientPreparedStatement, .Section, .SqlException, .MaterialPreparedStatement, org.apache.derby.client.ClientAutoloadedDriver, .ClientPooledConnection

Field Summary

Modifier and TypeField and Description
pack-priv ClientPreparedStatement
Inherited from org.apache.derby.client.net.NetStatement:
netAgent_netConnection_qryrowsetSentOnOpnqry_statement_

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
NetPreparedStatement(NetAgent
The instance of NetAgent associated with this CallableStatement object.
netAgent
,
NetConnection
The connection object associated with this PreparedStatement Object.
netConnection
,
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[]
A String array of column names indicating the columns that should be returned from the inserted row or rows.
columnNames
,
int[]
An int array of column indexes indicating the column that should be returned from 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
)

The constructor for the NetPreparedStatement class.

pack-priv
NetPreparedStatement(NetAgent
The instance of NetAgent associated with this CallableStatement object.
netAgent
,
NetConnection
The connection object associated with this PreparedStatement Object.
netConnection
,
String
A String object that is the SQL statement to be sent to the database.
sql
,
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
)

The constructor for the NetPreparedStatement class.

Method Summary

Modifier and TypeMethod and Description
private void
public void
public void
pack-priv void
pack-priv void
resetNetPreparedStatement(NetAgent netAgent, NetConnection netConnection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes)

public void
public void
writeExecute_(Section section, ColumnMetaData parameterMetaData, Object[] inputs, int numInputColumns, boolean outputExpected, boolean chainedWritesFollowingSetLob)

Implements org.apache.derby.client.am.MaterialPreparedStatement.writeExecute_.

public void
writeOpenQuery_(Section section, int fetchSize, int resultSetType, int numInputColumns, ColumnMetaData parameterMetaData, Object[] inputs)

Implements org.apache.derby.client.am.MaterialPreparedStatement.writeOpenQuery_.

Inherited from org.apache.derby.client.net.NetStatement:
markClosedOnServer_readExecuteCall_readExecuteImmediate_readExecuteImmediateForBatch_readOpenQuery_readPrepare_readPrepareDescribeOutput_readSetSpecialRegister_reset_resetNetStatementresetNetStatementwriteExecuteCall_writeExecuteImmediate_writeOpenQuery_writePrepare_writePrepareDescribeOutput_writeSetSpecialRegister_

Field Detail

preparedStatement_back to summary
pack-priv ClientPreparedStatement preparedStatement_

Constructor Detail

NetPreparedStatementback to summary
pack-priv NetPreparedStatement(ClientPreparedStatement statement, NetAgent netAgent, NetConnection netConnection)
NetPreparedStatementback to summary
pack-priv NetPreparedStatement(NetAgent netAgent, NetConnection netConnection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes, ClientPooledConnection cpc) throws SqlException

The constructor for the NetPreparedStatement class. Called by abstract Connection.prepareStatment().newPreparedStatement() for jdbc 2 prepared statements with scroll attributes. It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed.

Parameters
netAgent:NetAgent

The instance of NetAgent associated with this CallableStatement object.

netConnection:NetConnection

The connection object associated with this PreparedStatement Object.

sql:String

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

type:int

One of the ResultSet type constants.

concurrency:int

One of the ResultSet concurrency constants.

holdability:int

One of the ResultSet holdability constants.

autoGeneratedKeys:int

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

columnNames:String[]

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

columnIndexes:int[]

An int array of column indexes indicating the column that should be returned from the inserted row.

cpc: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.

NetPreparedStatementback to summary
pack-priv NetPreparedStatement(NetAgent netAgent, NetConnection netConnection, String sql, Section section, ClientPooledConnection cpc) throws SqlException

The constructor for the NetPreparedStatement class. For JDBC 3.0 positioned updates.It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed.

Parameters
netAgent:NetAgent

The instance of NetAgent associated with this CallableStatement object.

netConnection:NetConnection

The connection object associated with this PreparedStatement Object.

sql:String

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

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

Method Detail

initNetPreparedStatementback to summary
private void initNetPreparedStatement(ClientPreparedStatement statement)
readDescribeInput_back to summary
public void readDescribeInput_() throws SqlException

Implements org.apache.derby.client.am.MaterialPreparedStatement.readDescribeInput_.

readExecute_back to summary
public void readExecute_() throws SqlException

Implements org.apache.derby.client.am.MaterialPreparedStatement.readExecute_.

resetNetPreparedStatementback to summary
pack-priv void resetNetPreparedStatement(ClientPreparedStatement statement, NetAgent netAgent, NetConnection netConnection)
resetNetPreparedStatementback to summary
pack-priv void resetNetPreparedStatement(NetAgent netAgent, NetConnection netConnection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes) throws SqlException
writeDescribeInput_back to summary
public void writeDescribeInput_(Section section) throws SqlException

Implements org.apache.derby.client.am.MaterialPreparedStatement.writeDescribeInput_.

writeExecute_back to summary
public void writeExecute_(Section section, ColumnMetaData parameterMetaData, Object[] inputs, int numInputColumns, boolean outputExpected, boolean chainedWritesFollowingSetLob) throws SqlException

Implements org.apache.derby.client.am.MaterialPreparedStatement.writeExecute_.

writeOpenQuery_back to summary
public void writeOpenQuery_(Section section, int fetchSize, int resultSetType, int numInputColumns, ColumnMetaData parameterMetaData, Object[] inputs) throws SqlException

Implements org.apache.derby.client.am.MaterialPreparedStatement.writeOpenQuery_.