Class SYSSTATEMENTSRowFactory
java.lang.Object
org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
org.apache.derby.impl.sql.catalog.SYSSTATEMENTSRowFactory
Factory for creating a SYSSTATEMENTS row.
- Version:
- 0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[][]
static final int
static final int
static final int
static final int
protected static final int
protected static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
(package private) static final String
private static final boolean[]
private static final String[]
Fields inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
-
Constructor Summary
ConstructorsConstructorDescriptionSYSSTATEMENTSRowFactory
(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf) -
Method Summary
Modifier and TypeMethodDescriptionBuilds a list of columns suitable for creating this Catalog.buildDescriptor
(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) Make an Tuple Descriptor out of a SYSSTATEMENTS rowGet the Properties associated with creating the heap.Return an empty row for this conglomerate.makeSYSSTATEMENTSrow
(boolean compileMe, SPSDescriptor spsDescriptor) Make a SYSSTATEMENTS row.Methods inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getPrimaryKeyIndexNumber, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRowForCurrentVersion, makeRow
-
Field Details
-
TABLENAME_STRING
- See Also:
-
SYSSTATEMENTS_STMTID
public static final int SYSSTATEMENTS_STMTID- See Also:
-
SYSSTATEMENTS_STMTNAME
public static final int SYSSTATEMENTS_STMTNAME- See Also:
-
SYSSTATEMENTS_SCHEMAID
public static final int SYSSTATEMENTS_SCHEMAID- See Also:
-
SYSSTATEMENTS_TYPE
public static final int SYSSTATEMENTS_TYPE- See Also:
-
SYSSTATEMENTS_VALID
public static final int SYSSTATEMENTS_VALID- See Also:
-
SYSSTATEMENTS_TEXT
public static final int SYSSTATEMENTS_TEXT- See Also:
-
SYSSTATEMENTS_LASTCOMPILED
public static final int SYSSTATEMENTS_LASTCOMPILED- See Also:
-
SYSSTATEMENTS_COMPILATION_SCHEMAID
public static final int SYSSTATEMENTS_COMPILATION_SCHEMAID- See Also:
-
SYSSTATEMENTS_USINGTEXT
public static final int SYSSTATEMENTS_USINGTEXT- See Also:
-
SYSSTATEMENTS_CONSTANTSTATE
public static final int SYSSTATEMENTS_CONSTANTSTATE- See Also:
-
SYSSTATEMENTS_INITIALLY_COMPILABLE
public static final int SYSSTATEMENTS_INITIALLY_COMPILABLE- See Also:
-
SYSSTATEMENTS_COLUMN_COUNT
public static final int SYSSTATEMENTS_COLUMN_COUNT- See Also:
-
SYSSTATEMENTS_HIDDEN_COLUMN_COUNT
public static final int SYSSTATEMENTS_HIDDEN_COLUMN_COUNT- See Also:
-
SYSSTATEMENTS_INDEX1_ID
protected static final int SYSSTATEMENTS_INDEX1_ID- See Also:
-
SYSSTATEMENTS_INDEX2_ID
protected static final int SYSSTATEMENTS_INDEX2_ID- See Also:
-
indexColumnPositions
private static final int[][] indexColumnPositions -
uniqueness
private static final boolean[] uniqueness -
uuids
-
-
Constructor Details
-
SYSSTATEMENTSRowFactory
SYSSTATEMENTSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
-
-
Method Details
-
makeSYSSTATEMENTSrow
public ExecRow makeSYSSTATEMENTSrow(boolean compileMe, SPSDescriptor spsDescriptor) throws StandardException Make a SYSSTATEMENTS row.WARNING: When empty row is true, this method takes a snapshot of the SPSD and creates a row. It is imperative that that row remain consistent with the descriptor (the valid and StorablePreparedStatement fields must be in sync). If this row is to be written out and valid is true, then this call and the insert should be synchronized on the SPSD. This method has NO synchronization.
- Parameters:
compileMe
- passed into SPSDescriptorImpl.getPreparedStatement(). if true, we (re)compile the stmtspsDescriptor
- In-memory tuple to be converted to a disk row.- Returns:
- Row suitable for inserting into SYSSTATEMENTS.
- Throws:
StandardException
- thrown on failure
-
buildDescriptor
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException Make an Tuple Descriptor out of a SYSSTATEMENTS row- Specified by:
buildDescriptor
in classCatalogRowFactory
- Parameters:
row
- a SYSSTATEMENTS rowparentTupleDescriptor
- unuseddd
- dataDictionary- Returns:
- a descriptor equivalent to a SYSSTATEMENTS row
- Throws:
StandardException
- thrown on failure
-
makeEmptyRow
Description copied from class:CatalogRowFactory
Return an empty row for this conglomerate.- Overrides:
makeEmptyRow
in classCatalogRowFactory
- Throws:
StandardException
-
buildColumnList
Builds a list of columns suitable for creating this Catalog. The last column, the serialized statement, is not added to the column list. This is done deliberately to make it a 'hidden' column -- one that is not visible to customers, but is visible to the system.- Specified by:
buildColumnList
in classCatalogRowFactory
- Returns:
- array of SystemColumn suitable for making this catalog.
- Throws:
StandardException
-
getCreateHeapProperties
Get the Properties associated with creating the heap.- Overrides:
getCreateHeapProperties
in classCatalogRowFactory
- Returns:
- The Properties associated with creating the heap.
-