Class SYSSEQUENCESRowFactory
- java.lang.Object
-
- org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
-
- org.apache.derby.impl.sql.catalog.SYSSEQUENCESRowFactory
-
public class SYSSEQUENCESRowFactory extends CatalogRowFactory
Factory for creating a SYSSEQUENCES row. The contract of this table is this: if the CURRENTVALUE column is null, then the sequence is exhausted and no more values can be generated from it.
-
-
Field Summary
Fields Modifier and Type Field Description private static int[][]indexColumnPositionsstatic intSYSSEQUENCES_COLUMN_COUNTstatic intSYSSEQUENCES_CURRENT_VALUEstatic intSYSSEQUENCES_CYCLE_OPTIONstatic intSYSSEQUENCES_INCREMENT(package private) static intSYSSEQUENCES_INDEX1_ID(package private) static intSYSSEQUENCES_INDEX2_IDstatic intSYSSEQUENCES_MAXIMUM_VALUEstatic intSYSSEQUENCES_MINIMUM_VALUEstatic intSYSSEQUENCES_SCHEMAIDstatic intSYSSEQUENCES_SEQUENCEDATATYPEstatic intSYSSEQUENCES_SEQUENCEIDstatic intSYSSEQUENCES_SEQUENCENAMEstatic intSYSSEQUENCES_START_VALUEstatic 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 SYSSEQUENCESRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)Constructor
-
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 SYSSEQUENCES rowExecRowmakeRow(TupleDescriptor td, TupleDescriptor parent)Make a SYSSEQUENCES row-
Methods inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getPrimaryKeyIndexNumber, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow, makeEmptyRowForCurrentVersion
-
-
-
-
Field Detail
-
TABLENAME_STRING
public static final java.lang.String TABLENAME_STRING
- See Also:
- Constant Field Values
-
SYSSEQUENCES_COLUMN_COUNT
public static final int SYSSEQUENCES_COLUMN_COUNT
- See Also:
- Constant Field Values
-
SYSSEQUENCES_SEQUENCEID
public static final int SYSSEQUENCES_SEQUENCEID
- See Also:
- Constant Field Values
-
SYSSEQUENCES_SEQUENCENAME
public static final int SYSSEQUENCES_SEQUENCENAME
- See Also:
- Constant Field Values
-
SYSSEQUENCES_SCHEMAID
public static final int SYSSEQUENCES_SCHEMAID
- See Also:
- Constant Field Values
-
SYSSEQUENCES_SEQUENCEDATATYPE
public static final int SYSSEQUENCES_SEQUENCEDATATYPE
- See Also:
- Constant Field Values
-
SYSSEQUENCES_CURRENT_VALUE
public static final int SYSSEQUENCES_CURRENT_VALUE
- See Also:
- Constant Field Values
-
SYSSEQUENCES_START_VALUE
public static final int SYSSEQUENCES_START_VALUE
- See Also:
- Constant Field Values
-
SYSSEQUENCES_MINIMUM_VALUE
public static final int SYSSEQUENCES_MINIMUM_VALUE
- See Also:
- Constant Field Values
-
SYSSEQUENCES_MAXIMUM_VALUE
public static final int SYSSEQUENCES_MAXIMUM_VALUE
- See Also:
- Constant Field Values
-
SYSSEQUENCES_INCREMENT
public static final int SYSSEQUENCES_INCREMENT
- See Also:
- Constant Field Values
-
SYSSEQUENCES_CYCLE_OPTION
public static final int SYSSEQUENCES_CYCLE_OPTION
- See Also:
- Constant Field Values
-
indexColumnPositions
private static final int[][] indexColumnPositions
-
SYSSEQUENCES_INDEX1_ID
static final int SYSSEQUENCES_INDEX1_ID
- See Also:
- Constant Field Values
-
SYSSEQUENCES_INDEX2_ID
static final int SYSSEQUENCES_INDEX2_ID
- See Also:
- Constant Field Values
-
uniqueness
private static final boolean[] uniqueness
-
uuids
private static final java.lang.String[] uuids
-
-
Constructor Detail
-
SYSSEQUENCESRowFactory
SYSSEQUENCESRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
Constructor- Parameters:
uuidf- UUIDFactoryef- ExecutionFactorydvf- DataValueFactory
-
-
Method Detail
-
makeRow
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
Make a SYSSEQUENCES row- Overrides:
makeRowin classCatalogRowFactory- Parameters:
td- a sequence descriptorparent- unused- Returns:
- Row suitable for inserting into SYSSEQUENCES.
- Throws:
StandardException- thrown on failure
-
buildDescriptor
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException
Make an Tuple Descriptor out of a SYSSEQUENCES row- Specified by:
buildDescriptorin classCatalogRowFactory- Parameters:
row- a SYSSEQUENCES rowparentTupleDescriptor- unuseddd- dataDictionary- Returns:
- a descriptor equivalent to a SYSSEQUENCES row
- Throws:
StandardException- thrown on failure
-
buildColumnList
public SystemColumn[] buildColumnList() throws StandardException
Builds a list of columns suitable for creating this Catalog.- Specified by:
buildColumnListin classCatalogRowFactory- Returns:
- array of SystemColumn suitable for making this catalog.
- Throws:
StandardException
-
-