java.lang.Object
org.apache.derby.client.net.NetStatement
org.apache.derby.client.net.NetPreparedStatement
- All Implemented Interfaces:
- org.apache.derby.client.am.MaterialPreparedStatement, org.apache.derby.client.am.MaterialStatement
- Direct Known Subclasses:
- NetCallableStatement
- public class NetPreparedStatement
- extends NetStatement
- implements org.apache.derby.client.am.MaterialPreparedStatement
|
Constructor Summary |
(package private) |
NetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
int autoGeneratedKeys,
java.lang.String[] columnNames)
|
(package private) |
NetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
org.apache.derby.client.am.Section section)
|
(package private) |
NetPreparedStatement(org.apache.derby.client.am.PreparedStatement statement,
NetAgent netAgent,
NetConnection netConnection)
|
|
Method Summary |
protected void |
finalize()
Called on an object by the Virtual Machine at most once,
at some point after the Object is determined unreachable
but before it is destroyed. |
private void |
initNetPreparedStatement(org.apache.derby.client.am.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)
|
(package private) void |
resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
org.apache.derby.client.am.Section section)
|
(package private) void |
resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
org.apache.derby.client.am.Section section,
org.apache.derby.client.am.ColumnMetaData parameterMetaData,
org.apache.derby.client.am.ColumnMetaData resultSetMetaData)
|
(package private) void |
resetNetPreparedStatement(org.apache.derby.client.am.PreparedStatement statement,
NetAgent netAgent,
NetConnection netConnection)
|
void |
writeDescribeInput_(org.apache.derby.client.am.Section section)
|
void |
writeDescribeOutput_(org.apache.derby.client.am.Section section)
|
void |
writeExecute_(org.apache.derby.client.am.Section section,
org.apache.derby.client.am.ColumnMetaData parameterMetaData,
java.lang.Object[] inputs,
int numInputColumns,
boolean outputExpected,
boolean chainedWritesFollowingSetLob)
|
void |
writeOpenQuery_(org.apache.derby.client.am.Section section,
int fetchSize,
int resultSetType,
int numInputColumns,
org.apache.derby.client.am.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 interface org.apache.derby.client.am.MaterialStatement |
markClosedOnServer_, readExecuteCall_, readExecuteImmediate_, readExecuteImmediateForBatch_, readOpenQuery_, readPrepare_, readPrepareDescribeOutput_, readSetSpecialRegister_, reset_, writeExecuteCall_, writeExecuteImmediate_, writeOpenQuery_, writePrepare_, writePrepareDescribeOutput_, writeSetSpecialRegister_ |
preparedStatement_
org.apache.derby.client.am.PreparedStatement preparedStatement_
NetPreparedStatement
NetPreparedStatement(org.apache.derby.client.am.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)
throws org.apache.derby.client.am.SqlException
NetPreparedStatement
NetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
org.apache.derby.client.am.Section section)
throws org.apache.derby.client.am.SqlException
resetNetPreparedStatement
void resetNetPreparedStatement(org.apache.derby.client.am.PreparedStatement statement,
NetAgent netAgent,
NetConnection netConnection)
initNetPreparedStatement
private void initNetPreparedStatement(org.apache.derby.client.am.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)
throws org.apache.derby.client.am.SqlException
resetNetPreparedStatement
void resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
org.apache.derby.client.am.Section section)
throws org.apache.derby.client.am.SqlException
resetNetPreparedStatement
void resetNetPreparedStatement(NetAgent netAgent,
NetConnection netConnection,
java.lang.String sql,
org.apache.derby.client.am.Section section,
org.apache.derby.client.am.ColumnMetaData parameterMetaData,
org.apache.derby.client.am.ColumnMetaData resultSetMetaData)
throws org.apache.derby.client.am.SqlException
finalize
protected void finalize()
throws java.lang.Throwable
- Description copied from class:
java.lang.Object
- Called on an object by the Virtual Machine at most once,
at some point after the Object is determined unreachable
but before it is destroyed. You would think that this
means it eventually is called on every Object, but this is
not necessarily the case. If execution terminates
abnormally, garbage collection does not always happen.
Thus you cannot rely on this method to always work.
For finer control over garbage collection, use references
from the
java.lang.ref package.
Virtual Machines are free to not call this method if
they can determine that it does nothing important; for
example, if your class extends Object and overrides
finalize to do simply super.finalize().
finalize() will be called by a java.lang.Thread that has no
locks on any Objects, and may be called concurrently.
There are no guarantees on the order in which multiple
objects are finalized. This means that finalize() is
usually unsuited for performing actions that must be
thread-safe, and that your implementation must be
use defensive programming if it is to always work.
If an Exception is thrown from finalize() during garbage
collection, it will be patently ignored and the Object will
still be destroyed.
It is allowed, although not typical, for user code to call
finalize() directly. User invocation does not affect whether
automatic invocation will occur. It is also permitted,
although not recommended, for a finalize() method to "revive"
an object by making it reachable from normal code again.
Unlike constructors, finalize() does not get called
for an object's superclass unless the implementation
specifically calls super.finalize().
The default implementation does nothing.
- Overrides:
finalize in class NetStatement
writeExecute_
public void writeExecute_(org.apache.derby.client.am.Section section,
org.apache.derby.client.am.ColumnMetaData parameterMetaData,
java.lang.Object[] inputs,
int numInputColumns,
boolean outputExpected,
boolean chainedWritesFollowingSetLob)
throws org.apache.derby.client.am.SqlException
- Specified by:
writeExecute_ in interface org.apache.derby.client.am.MaterialPreparedStatement
readExecute_
public void readExecute_()
throws org.apache.derby.client.am.SqlException
- Specified by:
readExecute_ in interface org.apache.derby.client.am.MaterialPreparedStatement
writeOpenQuery_
public void writeOpenQuery_(org.apache.derby.client.am.Section section,
int fetchSize,
int resultSetType,
int numInputColumns,
org.apache.derby.client.am.ColumnMetaData parameterMetaData,
java.lang.Object[] inputs)
throws org.apache.derby.client.am.SqlException
- Specified by:
writeOpenQuery_ in interface org.apache.derby.client.am.MaterialPreparedStatement
writeDescribeInput_
public void writeDescribeInput_(org.apache.derby.client.am.Section section)
throws org.apache.derby.client.am.SqlException
- Specified by:
writeDescribeInput_ in interface org.apache.derby.client.am.MaterialPreparedStatement
readDescribeInput_
public void readDescribeInput_()
throws org.apache.derby.client.am.SqlException
- Specified by:
readDescribeInput_ in interface org.apache.derby.client.am.MaterialPreparedStatement
writeDescribeOutput_
public void writeDescribeOutput_(org.apache.derby.client.am.Section section)
throws org.apache.derby.client.am.SqlException
- Specified by:
writeDescribeOutput_ in interface org.apache.derby.client.am.MaterialPreparedStatement
readDescribeOutput_
public void readDescribeOutput_()
throws org.apache.derby.client.am.SqlException
- Specified by:
readDescribeOutput_ in interface org.apache.derby.client.am.MaterialPreparedStatement