public class GenericStorablePreparedStatement extends GenericPreparedStatement implements Formatable, StorablePreparedStatement
Modifier and Type | Field and Description |
---|---|
private ByteArray |
byteCode |
private java.lang.String |
className |
activationClass, beginCompileTimestamp, bindTime, compileTime, endCompileTimestamp, executionConstants, generateTime, invalidatedWhileCompiling, isAtomic, isValid, optimizeTime, paramTypeDescriptors, parseTime, requiredPermissionsList, resultDesc, savedObjects, sourceTxt, spsAction, statement, targetTable, updateColumns, updateMode, UUIDString, UUIDValue
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW
Constructor and Description |
---|
GenericStorablePreparedStatement()
Niladic constructor, for formatable
only.
|
GenericStorablePreparedStatement(Statement stmt) |
Modifier and Type | Method and Description |
---|---|
GeneratedClass |
getActivationClass()
Get and load the activation class.
|
(package private) ByteArray |
getByteCodeSaver()
Get our byte code array.
|
private static Context |
getContext(java.lang.String contextID)
Privileged lookup of a Context.
|
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) |
(package private) void |
setActivationClass(GeneratedClass ac) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
beginCompiling, completeCompile, endCompiling, execute, executeSubStatement, executeSubStatement, finish, getActivation, getBeginCompileTimestamp, getBindTimeInMillis, getClassType, getClone, getCompileTimeInMillis, getCompileTimeWarnings, getConstantAction, getCursorInfo, getDependableFinder, getEndCompileTimestamp, getGenerateTimeInMillis, getInitialRowCount, getObjectID, getObjectName, getOptimizeTimeInMillis, getParameterType, getParameterTypes, getParseTimeInMillis, getRequiredPermissionsList, getResultDescription, getSavedObject, getSavedObjects, getSource, getSPSName, getStalePlanCheckInterval, getTargetTable, getUpdateMode, getVersionCounter, hasUpdateColumns, incrementExecutionCount, incrementVersionCounter, isAtomic, isCompiling, isPersistent, isUpdateColumn, isValid, makeInvalid, needsSavepoint, prepareToInvalidate, referencesSessionSchema, referencesSessionSchema, rePrepare, rePrepare, setCacheHolder, setCompileTimeMillis, setCompileTimeWarnings, setConstantAction, setCursorInfo, setExecuteStatementNameAndSchema, setIsAtomic, setNeedsSavepoint, setRequiredPermissionsList, setSavedObjects, setSource, setSPSAction, setSPSName, setStalePlanCheckInterval, setValid, upToDate, upToDate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
finish, getClone, getConstantAction, getCursorInfo, getInitialRowCount, getRequiredPermissionsList, getSavedObject, getSavedObjects, getStalePlanCheckInterval, getTargetTable, getUpdateMode, hasUpdateColumns, incrementExecutionCount, isUpdateColumn, needsSavepoint, setSource, setSPSAction, setStalePlanCheckInterval, setValid, upToDate
execute, executeSubStatement, executeSubStatement, getActivation, getBeginCompileTimestamp, getBindTimeInMillis, getCompileTimeInMillis, getCompileTimeWarnings, getEndCompileTimestamp, getGenerateTimeInMillis, getOptimizeTimeInMillis, getParameterType, getParameterTypes, getParseTimeInMillis, getResultDescription, getSource, getSPSName, getVersionCounter, isAtomic, referencesSessionSchema, rePrepare, upToDate
isValid, makeInvalid, prepareToInvalidate
getClassType, getDependableFinder, getObjectID, getObjectName, isPersistent
private ByteArray byteCode
private java.lang.String className
public GenericStorablePreparedStatement()
GenericStorablePreparedStatement(Statement stmt)
ByteArray getByteCodeSaver()
getByteCodeSaver
in class GenericPreparedStatement
public GeneratedClass getActivationClass() throws StandardException
getActivationClass
in interface ExecPreparedStatement
getActivationClass
in class GenericPreparedStatement
StandardException
- on errorvoid setActivationClass(GeneratedClass ac)
setActivationClass
in class GenericPreparedStatement
public void loadGeneratedClass() throws StandardException
loadGeneratedClass
in interface StorablePreparedStatement
StandardException
- on errorpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
- on errorpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
- on errorjava.lang.ClassNotFoundException
- on errorExternalizable.readExternal(java.io.ObjectInput)
public int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public boolean isStorable()
isStorable
in class GenericPreparedStatement
public java.lang.String toString()
toString
in class GenericPreparedStatement
private static Context getContext(java.lang.String contextID)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.