Class SYSSTATEMENTSRowFactory
- java.lang.Object
-
- org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
-
- org.apache.derby.impl.sql.catalog.SYSSTATEMENTSRowFactory
-
public class SYSSTATEMENTSRowFactory extends CatalogRowFactory
Factory for creating a SYSSTATEMENTS row.- Version:
- 0.1
-
-
Field Summary
Fields Modifier and Type Field Description private static int[][]indexColumnPositionsstatic intSYSSTATEMENTS_COLUMN_COUNTstatic intSYSSTATEMENTS_COMPILATION_SCHEMAIDstatic intSYSSTATEMENTS_CONSTANTSTATEstatic intSYSSTATEMENTS_HIDDEN_COLUMN_COUNTprotected static intSYSSTATEMENTS_INDEX1_IDprotected static intSYSSTATEMENTS_INDEX2_IDstatic intSYSSTATEMENTS_INITIALLY_COMPILABLEstatic intSYSSTATEMENTS_LASTCOMPILEDstatic intSYSSTATEMENTS_SCHEMAIDstatic intSYSSTATEMENTS_STMTIDstatic intSYSSTATEMENTS_STMTNAMEstatic intSYSSTATEMENTS_TEXTstatic intSYSSTATEMENTS_TYPEstatic intSYSSTATEMENTS_USINGTEXTstatic intSYSSTATEMENTS_VALID(package private) static java.lang.StringTABLENAME_STRINGprivate static boolean[]uniquenessprivate static java.lang.String[]uuids-
Fields inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
-
-
Constructor Summary
Constructors Constructor Description SYSSTATEMENTSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemColumn[]buildColumnList()Builds a list of columns suitable for creating this Catalog.TupleDescriptorbuildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd)Make an Tuple Descriptor out of a SYSSTATEMENTS rowjava.util.PropertiesgetCreateHeapProperties()Get the Properties associated with creating the heap.ExecRowmakeEmptyRow()Return an empty row for this conglomerate.ExecRowmakeSYSSTATEMENTSrow(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 Detail
-
TABLENAME_STRING
static final java.lang.String TABLENAME_STRING
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_STMTID
public static final int SYSSTATEMENTS_STMTID
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_STMTNAME
public static final int SYSSTATEMENTS_STMTNAME
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_SCHEMAID
public static final int SYSSTATEMENTS_SCHEMAID
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_TYPE
public static final int SYSSTATEMENTS_TYPE
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_VALID
public static final int SYSSTATEMENTS_VALID
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_TEXT
public static final int SYSSTATEMENTS_TEXT
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_LASTCOMPILED
public static final int SYSSTATEMENTS_LASTCOMPILED
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_COMPILATION_SCHEMAID
public static final int SYSSTATEMENTS_COMPILATION_SCHEMAID
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_USINGTEXT
public static final int SYSSTATEMENTS_USINGTEXT
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_CONSTANTSTATE
public static final int SYSSTATEMENTS_CONSTANTSTATE
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_INITIALLY_COMPILABLE
public static final int SYSSTATEMENTS_INITIALLY_COMPILABLE
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_COLUMN_COUNT
public static final int SYSSTATEMENTS_COLUMN_COUNT
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_HIDDEN_COLUMN_COUNT
public static final int SYSSTATEMENTS_HIDDEN_COLUMN_COUNT
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_INDEX1_ID
protected static final int SYSSTATEMENTS_INDEX1_ID
- See Also:
- Constant Field Values
-
SYSSTATEMENTS_INDEX2_ID
protected static final int SYSSTATEMENTS_INDEX2_ID
- See Also:
- Constant Field Values
-
indexColumnPositions
private static final int[][] indexColumnPositions
-
uniqueness
private static final boolean[] uniqueness
-
uuids
private static final java.lang.String[] uuids
-
-
Constructor Detail
-
SYSSTATEMENTSRowFactory
SYSSTATEMENTSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
-
-
Method Detail
-
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:
buildDescriptorin classCatalogRowFactory- Parameters:
row- a SYSSTATEMENTS rowparentTupleDescriptor- unuseddd- dataDictionary- Returns:
- a descriptor equivalent to a SYSSTATEMENTS row
- Throws:
StandardException- thrown on failure
-
makeEmptyRow
public ExecRow makeEmptyRow() throws StandardException
Description copied from class:CatalogRowFactoryReturn an empty row for this conglomerate.- Overrides:
makeEmptyRowin classCatalogRowFactory- Throws:
StandardException
-
buildColumnList
public SystemColumn[] buildColumnList() throws StandardException
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:
buildColumnListin classCatalogRowFactory- Returns:
- array of SystemColumn suitable for making this catalog.
- Throws:
StandardException
-
getCreateHeapProperties
public java.util.Properties getCreateHeapProperties()
Get the Properties associated with creating the heap.- Overrides:
getCreateHeapPropertiesin classCatalogRowFactory- Returns:
- The Properties associated with creating the heap.
-
-