|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.impl.sql
Class GenericStorablePreparedStatement

java.lang.Objectorg.apache.derby.impl.sql.GenericPreparedStatement
org.apache.derby.impl.sql.GenericStorablePreparedStatement
- All Implemented Interfaces:
- org.apache.derby.catalog.Dependable, org.apache.derby.iapi.sql.depend.Dependent, org.apache.derby.iapi.sql.execute.ExecPreparedStatement, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, org.apache.derby.iapi.sql.PreparedStatement, org.apache.derby.iapi.sql.depend.Provider, java.io.Serializable, org.apache.derby.iapi.sql.StorablePreparedStatement, org.apache.derby.iapi.services.io.TypedFormat
- public class GenericStorablePreparedStatement
- extends GenericPreparedStatement
- implements org.apache.derby.iapi.services.io.Formatable, org.apache.derby.iapi.sql.StorablePreparedStatement
- extends GenericPreparedStatement
Prepared statement that can be made persistent.
| Field Summary | |
private org.apache.derby.iapi.util.ByteArray |
byteCode
|
private java.lang.String |
className
|
| Fields inherited from class org.apache.derby.impl.sql.GenericPreparedStatement |
activationClass, beginCompileTimestamp, bindTime, compileTime, compilingStatement, endCompileTimestamp, executionConstants, generateTime, isAtomic, isValid, optimizeTime, paramTypeDescriptors, parseTime, resultDesc, savedObjects, sourceTxt, spsAction, statement, targetColumns, targetTable, updateColumns, updateMode, UUIDString, UUIDValue |
| Fields inherited from interface org.apache.derby.catalog.Dependable |
ALIAS, COLUMNS_IN_TABLE, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PREPARED_STATEMENT, SCHEMA, STORED_PREPARED_STATEMENT, TABLE, TRIGGER, VIEW |
| Constructor Summary | |
|
GenericStorablePreparedStatement()
Niladic constructor, for formatable only. |
(package private) |
GenericStorablePreparedStatement(org.apache.derby.iapi.sql.Statement stmt)
|
| Method Summary | |
org.apache.derby.iapi.services.loader.GeneratedClass |
getActivationClass()
Get and load the activation class. |
(package private) org.apache.derby.iapi.util.ByteArray |
getByteCodeSaver()
Get our byte code array. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
boolean |
isStorable()
|
void |
loadGeneratedClass()
Load up the class from the saved bytes. |
void |
readExternal(java.io.ObjectInput in)
This method restores an object's state by reading in the instance data for the object from the passed in stream. |
void |
setActivationClass(org.apache.derby.iapi.services.loader.GeneratedClass ac)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
void |
writeExternal(java.io.ObjectOutput out)
This method is responsible for writing the instance data of an object to the passed in stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.sql.execute.ExecPreparedStatement |
finish, getClone, getConstantAction, getCursorInfo, getSavedObject, getSavedObjects, getTargetColumns, getTargetTable, getUpdateColumns, getUpdateMode, needsSavepoint, setSource, setSPSAction, setValid |
| Methods inherited from interface org.apache.derby.iapi.sql.PreparedStatement |
execute, execute, getActivation, getBeginCompileTimestamp, getBindTimeInMillis, getCompileTimeInMillis, getCompileTimeWarnings, getEndCompileTimestamp, getGenerateTimeInMillis, getOptimizeTimeInMillis, getParameterTypes, getParseTimeInMillis, getResultDescription, getSource, getSPSName, isAtomic, referencesSessionSchema, rePrepare, upToDate |
| Methods inherited from interface org.apache.derby.iapi.sql.depend.Dependent |
isValid, makeInvalid, makeValid, prepareToInvalidate |
| Methods inherited from interface org.apache.derby.catalog.Dependable |
getClassType, getDependableFinder, getObjectID, getObjectName, isPersistent |
| Field Detail |
byteCode
private org.apache.derby.iapi.util.ByteArray byteCode
className
private java.lang.String className
| Constructor Detail |
GenericStorablePreparedStatement
public GenericStorablePreparedStatement()
- Niladic constructor, for formatable
only.
GenericStorablePreparedStatement
GenericStorablePreparedStatement(org.apache.derby.iapi.sql.Statement stmt)
| Method Detail |
getByteCodeSaver
org.apache.derby.iapi.util.ByteArray getByteCodeSaver()
- Get our byte code array. Used
by others to save off our byte
code for us.
- Overrides:
getByteCodeSaverin classGenericPreparedStatement
getActivationClass
public org.apache.derby.iapi.services.loader.GeneratedClass getActivationClass() throws org.apache.derby.iapi.error.StandardException
- Get and load the activation class. Will always
return a loaded/valid class or null if the class
cannot be loaded.
- Specified by:
getActivationClassin interfaceorg.apache.derby.iapi.sql.execute.ExecPreparedStatement- Overrides:
getActivationClassin classGenericPreparedStatement
setActivationClass
public void setActivationClass(org.apache.derby.iapi.services.loader.GeneratedClass ac)
- Overrides:
setActivationClassin classGenericPreparedStatement
loadGeneratedClass
public void loadGeneratedClass()
throws org.apache.derby.iapi.error.StandardException
- Load up the class from the saved bytes.
- Specified by:
loadGeneratedClassin interfaceorg.apache.derby.iapi.sql.StorablePreparedStatement
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Description copied from interface:
java.io.Externalizable - This method is responsible for writing the instance data of an object
to the passed in stream. Note that this stream is not a subclass of
OutputStream, but rather is a class that implements theObjectOutputinterface. That interface provides a number of methods for writing Java data values to a stream.Not that the implementation of this method must be coordinated with the implementation of
readExternal.- Specified by:
writeExternalin interfacejava.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Description copied from interface:
java.io.Externalizable - This method restores an object's state by reading in the instance data
for the object from the passed in stream. Note that this stream is not
a subclass of
InputStream, but rather is a class that implements theObjectInputinterface. That interface provides a mechanism for reading in Java data types from a stream.Note that this method must be compatible with
writeExternal. It must read back the exact same types that were written by that method in the exact order they were written.If this method needs to read back an object instance, then the class for that object must be found and loaded. If that operation fails, then this method throws a
ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable
getTypeFormatId
public int getTypeFormatId()
- Get the formatID which corresponds to this class.
- Specified by:
getTypeFormatIdin interfaceorg.apache.derby.iapi.services.io.TypedFormat
isStorable
public boolean isStorable()
- Overrides:
isStorablein classGenericPreparedStatement
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).- Overrides:
toStringin classGenericPreparedStatement
|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC