Class GenericStorablePreparedStatement
java.lang.Object
org.apache.derby.impl.sql.GenericPreparedStatement
org.apache.derby.impl.sql.GenericStorablePreparedStatement
- All Implemented Interfaces:
Externalizable, Serializable, Dependable, Formatable, TypedFormat, Dependent, ExecPreparedStatement, PreparedStatement, StorablePreparedStatement
public class GenericStorablePreparedStatement
extends GenericPreparedStatement
implements Formatable, StorablePreparedStatement
Prepared statement that can be made persistent.
- See Also:
-
Field Summary
FieldsFields inherited from class GenericPreparedStatement
activationClass, beginCompileTimestamp, bindTime, compileTime, endCompileTimestamp, executionConstants, generateTime, invalidatedWhileCompiling, isAtomic, isValid, optimizeTime, paramTypeDescriptors, parseTime, requiredPermissionsList, resultDesc, savedObjects, sourceTxt, spsAction, statement, targetTable, updateColumns, updateMode, UUIDString, UUIDValueFields inherited from interface Dependable
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 Summary
ConstructorsConstructorDescriptionNiladic constructor, for formatable only. -
Method Summary
Modifier and TypeMethodDescriptionGet and load the activation class.(package private) ByteArrayGet our byte code array.private static ContextgetContext(String contextID) Privileged lookup of a Context.intGet the formatID which corresponds to this class.boolean//////////////////////////////////////////////////////////voidLoad up the class from the saved bytes.void(package private) voidtoString()voidMethods inherited from class GenericPreparedStatement
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, upToDateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Dependable
getClassType, getDependableFinder, getObjectID, getObjectName, isPersistentMethods inherited from interface Dependent
isValid, makeInvalid, prepareToInvalidateMethods inherited from interface ExecPreparedStatement
finish, getClone, getConstantAction, getCursorInfo, getInitialRowCount, getRequiredPermissionsList, getSavedObject, getSavedObjects, getStalePlanCheckInterval, getTargetTable, getUpdateMode, hasUpdateColumns, incrementExecutionCount, isUpdateColumn, needsSavepoint, setSource, setSPSAction, setStalePlanCheckInterval, setValid, upToDateMethods inherited from interface PreparedStatement
execute, executeSubStatement, executeSubStatement, getActivation, getBeginCompileTimestamp, getBindTimeInMillis, getCompileTimeInMillis, getCompileTimeWarnings, getEndCompileTimestamp, getGenerateTimeInMillis, getOptimizeTimeInMillis, getParameterType, getParameterTypes, getParseTimeInMillis, getResultDescription, getSource, getSPSName, getVersionCounter, isAtomic, referencesSessionSchema, rePrepare, upToDate
-
Field Details
-
byteCode
-
className
-
-
Constructor Details
-
GenericStorablePreparedStatement
public GenericStorablePreparedStatement()Niladic constructor, for formatable only. -
GenericStorablePreparedStatement
GenericStorablePreparedStatement(Statement stmt)
-
-
Method Details
-
getByteCodeSaver
ByteArray getByteCodeSaver()Get our byte code array. Used by others to save off our byte code for us.- Overrides:
getByteCodeSaverin classGenericPreparedStatement- Returns:
- the byte code saver
-
getActivationClass
Get and load the activation class. Will always return a loaded/valid class or null if the class cannot be loaded.- Specified by:
getActivationClassin interfaceExecPreparedStatement- Overrides:
getActivationClassin classGenericPreparedStatement- Returns:
- the generated class, or null if the class cannot be loaded
- Throws:
StandardException- on error
-
setActivationClass
- Overrides:
setActivationClassin classGenericPreparedStatement
-
loadGeneratedClass
Load up the class from the saved bytes.- Specified by:
loadGeneratedClassin interfaceStorablePreparedStatement- Throws:
StandardException- on error
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- on error
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException- on errorClassNotFoundException- on error- See Also:
-
getTypeFormatId
public int getTypeFormatId()Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
isStorable
public boolean isStorable()//////////////////////////////////////////////////////////- Overrides:
isStorablein classGenericPreparedStatement
-
toString
- Overrides:
toStringin classGenericPreparedStatement
-
getContext
-