org.apache.derby.client.net
Class NetPreparedStatement
java.lang.Object
org.apache.derby.client.net.NetStatement
org.apache.derby.client.net.NetPreparedStatement
- All Implemented Interfaces:
- MaterialPreparedStatement, MaterialStatement
- Direct Known Subclasses:
- NetCallableStatement
public class NetPreparedStatement
- extends NetStatement
- implements MaterialPreparedStatement
Constructor Summary |
NetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes,
ClientPooledConnection cpc)
The constructor for the NetPreparedStatement class. |
NetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
Section section,
ClientPooledConnection cpc)
The constructor for the NetPreparedStatement class. |
NetPreparedStatement(PreparedStatement statement,
NetAgent netAgent,
NetConnection netConnection)
|
Method Summary |
protected void |
finalize()
|
private void |
initNetPreparedStatement(PreparedStatement statement)
|
void |
readDescribeInput_()
|
void |
readDescribeOutput_()
|
void |
readExecute_()
|
(package private) void |
resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes)
|
(package private) void |
resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
Section section)
|
(package private) void |
resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
Section section,
ColumnMetaData parameterMetaData,
ColumnMetaData resultSetMetaData)
|
(package private) void |
resetNetPreparedStatement(PreparedStatement statement,
NetAgent netAgent,
NetConnection netConnection)
|
void |
writeDescribeInput_(Section section)
|
void |
writeDescribeOutput_(Section section)
|
void |
writeExecute_(Section section,
ColumnMetaData parameterMetaData,
java.lang.Object[] inputs,
int numInputColumns,
boolean outputExpected,
boolean chainedWritesFollowingSetLob)
|
void |
writeOpenQuery_(Section section,
int fetchSize,
int resultSetType,
int numInputColumns,
ColumnMetaData parameterMetaData,
java.lang.Object[] inputs)
|
Methods inherited from class org.apache.derby.client.net.NetStatement |
markClosedOnServer_, netReset, readExecuteCall_, readExecuteImmediate_, readExecuteImmediateForBatch_, readOpenQuery_, readPrepare_, readPrepareDescribeOutput_, readSetSpecialRegister_, reset_, resetNetStatement, resetNetStatement, writeExecuteCall_, writeExecuteImmediate_, writeOpenQuery_, writePrepare_, writePrepareDescribeOutput_, writeSetSpecialRegister_ |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.derby.client.am.MaterialStatement |
markClosedOnServer_, readExecuteCall_, readExecuteImmediate_, readExecuteImmediateForBatch_, readOpenQuery_, readPrepare_, readPrepareDescribeOutput_, readSetSpecialRegister_, reset_, writeExecuteCall_, writeExecuteImmediate_, writeOpenQuery_, writePrepare_, writePrepareDescribeOutput_, writeSetSpecialRegister_ |
preparedStatement_
PreparedStatement preparedStatement_
NetPreparedStatement
NetPreparedStatement(PreparedStatement statement,
NetAgent netAgent,
NetConnection netConnection)
NetPreparedStatement
NetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.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
- The instance of NetAgent associated with this
CallableStatement object.netConnection
- 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
- A String array of column names indicating
the columns that should be returned
from the inserted row or rows.columnIndexes
- An int array of column indexes indicating
the column 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.
- Throws:
SqlException
NetPreparedStatement
NetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.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
- The instance of NetAgent associated with this
CallableStatement object.netConnection
- The connection object associated with this
PreparedStatement Object.sql
- A String object that is the SQL statement to be
sent to the database.section
- 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
- Throws:
SqlException
resetNetPreparedStatement
void resetNetPreparedStatement(PreparedStatement statement,
NetAgent netAgent,
NetConnection netConnection)
initNetPreparedStatement
private void initNetPreparedStatement(PreparedStatement statement)
resetNetPreparedStatement
void resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames,
int[] columnIndexes)
throws SqlException
- Throws:
SqlException
resetNetPreparedStatement
void resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
Section section)
throws SqlException
- Throws:
SqlException
resetNetPreparedStatement
void resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
Section section,
ColumnMetaData parameterMetaData,
ColumnMetaData resultSetMetaData)
throws SqlException
- Throws:
SqlException
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class NetStatement
- Throws:
java.lang.Throwable
writeExecute_
public void writeExecute_(Section section,
ColumnMetaData parameterMetaData,
java.lang.Object[] inputs,
int numInputColumns,
boolean outputExpected,
boolean chainedWritesFollowingSetLob)
throws SqlException
- Specified by:
writeExecute_
in interface MaterialPreparedStatement
- Throws:
SqlException
readExecute_
public void readExecute_()
throws SqlException
- Specified by:
readExecute_
in interface MaterialPreparedStatement
- Throws:
SqlException
writeOpenQuery_
public void writeOpenQuery_(Section section,
int fetchSize,
int resultSetType,
int numInputColumns,
ColumnMetaData parameterMetaData,
java.lang.Object[] inputs)
throws SqlException
- Specified by:
writeOpenQuery_
in interface MaterialPreparedStatement
- Throws:
SqlException
writeDescribeInput_
public void writeDescribeInput_(Section section)
throws SqlException
- Specified by:
writeDescribeInput_
in interface MaterialPreparedStatement
- Throws:
SqlException
readDescribeInput_
public void readDescribeInput_()
throws SqlException
- Specified by:
readDescribeInput_
in interface MaterialPreparedStatement
- Throws:
SqlException
writeDescribeOutput_
public void writeDescribeOutput_(Section section)
throws SqlException
- Specified by:
writeDescribeOutput_
in interface MaterialPreparedStatement
- Throws:
SqlException
readDescribeOutput_
public void readDescribeOutput_()
throws SqlException
- Specified by:
readDescribeOutput_
in interface MaterialPreparedStatement
- Throws:
SqlException
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.