org.apache.derby.impl.sql
Class GenericStorablePreparedStatement
java.lang.Object
org.apache.derby.impl.sql.GenericPreparedStatement
org.apache.derby.impl.sql.GenericStorablePreparedStatement
- All Implemented Interfaces:
- Dependable, Dependent, ExecPreparedStatement, java.io.Externalizable, Formatable, PreparedStatement, Provider, java.io.Serializable, StorablePreparedStatement, TypedFormat
- public class GenericStorablePreparedStatement
- extends GenericPreparedStatement
- implements Formatable, StorablePreparedStatement
Prepared statement that can be made persistent.
- Author:
- jamie
- See Also:
- Serialized Form
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 |
Methods inherited from class org.apache.derby.impl.sql.GenericPreparedStatement |
completeCompile, execute, execute, finish, getActivation, getBeginCompileTimestamp, getBindTimeInMillis, getClassType, getClone, getCompileTimeInMillis, getCompileTimeWarnings, getConstantAction, getCursorInfo, getDependableFinder, getEndCompileTimestamp, getGenerateTimeInMillis, getObjectID, getObjectName, getOptimizeTimeInMillis, getParameterTypes, getParseTimeInMillis, getResultDescription, getSavedObject, getSavedObjects, getSource, getSPSName, getTargetColumns, getTargetTable, getUpdateColumns, getUpdateMode, isAtomic, isPersistent, isValid, makeInvalid, makeValid, needsSavepoint, prepareToInvalidate, referencesSessionSchema, rePrepare, setCacheHolder, setCompileTimeMillis, setCompileTimeWarnings, setConstantAction, setCursorInfo, setExecuteStatementNameAndSchema, setIsAtomic, setNeedsSavepoint, setParams, setSavedObjects, setSource, setSPSAction, setSPSName, setValid, upToDate |
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 |
byteCode
private ByteArray byteCode
className
private java.lang.String className
GenericStorablePreparedStatement
public GenericStorablePreparedStatement()
- Niladic constructor, for formatable
only.
GenericStorablePreparedStatement
GenericStorablePreparedStatement(Statement stmt)
getByteCodeSaver
ByteArray getByteCodeSaver()
- Get our byte code array. Used
by others to save off our byte
code for us.
- Overrides:
getByteCodeSaver
in class GenericPreparedStatement
- Returns:
- the byte code saver
getActivationClass
public GeneratedClass getActivationClass()
throws StandardException
- Get and load the activation class. Will always
return a loaded/valid class or null if the class
cannot be loaded.
- Specified by:
getActivationClass
in interface ExecPreparedStatement
- Overrides:
getActivationClass
in class GenericPreparedStatement
- Returns:
- the generated class, or null if the
class cannot be loaded
- Throws:
StandardException
- on error
setActivationClass
public void setActivationClass(GeneratedClass ac)
- Overrides:
setActivationClass
in class GenericPreparedStatement
loadGeneratedClass
public void loadGeneratedClass()
throws StandardException
- Load up the class from the saved bytes.
- Specified by:
loadGeneratedClass
in interface StorablePreparedStatement
- Returns:
- the generated class, or null if we
don't have the byte code
- Throws:
StandardException
- on error
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
- on error
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
- on error
java.lang.ClassNotFoundException
- on error- See Also:
Externalizable.readExternal(java.io.ObjectInput)
getTypeFormatId
public int getTypeFormatId()
- Get the formatID which corresponds to this class.
- Specified by:
getTypeFormatId
in interface TypedFormat
- Returns:
- the formatID of this class
isStorable
public boolean isStorable()
- Overrides:
isStorable
in class GenericPreparedStatement
toString
public java.lang.String toString()
- Overrides:
toString
in class GenericPreparedStatement
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.