Class SYSSEQUENCESRowFactory
java.lang.Object
org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
org.apache.derby.impl.sql.catalog.SYSSEQUENCESRowFactory
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
FieldsModifier and TypeFieldDescriptionprivate static final int[][]
static final int
static final int
static final int
static final int
(package private) static final int
(package private) 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 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
ConstructorsConstructorDescriptionSYSSEQUENCESRowFactory
(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf) Constructor -
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 SYSSEQUENCES rowmakeRow
(TupleDescriptor td, TupleDescriptor parent) Make a SYSSEQUENCES rowMethods 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 Details
-
TABLENAME_STRING
- See Also:
-
SYSSEQUENCES_COLUMN_COUNT
public static final int SYSSEQUENCES_COLUMN_COUNT- See Also:
-
SYSSEQUENCES_SEQUENCEID
public static final int SYSSEQUENCES_SEQUENCEID- See Also:
-
SYSSEQUENCES_SEQUENCENAME
public static final int SYSSEQUENCES_SEQUENCENAME- See Also:
-
SYSSEQUENCES_SCHEMAID
public static final int SYSSEQUENCES_SCHEMAID- See Also:
-
SYSSEQUENCES_SEQUENCEDATATYPE
public static final int SYSSEQUENCES_SEQUENCEDATATYPE- See Also:
-
SYSSEQUENCES_CURRENT_VALUE
public static final int SYSSEQUENCES_CURRENT_VALUE- See Also:
-
SYSSEQUENCES_START_VALUE
public static final int SYSSEQUENCES_START_VALUE- See Also:
-
SYSSEQUENCES_MINIMUM_VALUE
public static final int SYSSEQUENCES_MINIMUM_VALUE- See Also:
-
SYSSEQUENCES_MAXIMUM_VALUE
public static final int SYSSEQUENCES_MAXIMUM_VALUE- See Also:
-
SYSSEQUENCES_INCREMENT
public static final int SYSSEQUENCES_INCREMENT- See Also:
-
SYSSEQUENCES_CYCLE_OPTION
public static final int SYSSEQUENCES_CYCLE_OPTION- See Also:
-
indexColumnPositions
private static final int[][] indexColumnPositions -
SYSSEQUENCES_INDEX1_ID
static final int SYSSEQUENCES_INDEX1_ID- See Also:
-
SYSSEQUENCES_INDEX2_ID
static final int SYSSEQUENCES_INDEX2_ID- See Also:
-
uniqueness
private static final boolean[] uniqueness -
uuids
-
-
Constructor Details
-
SYSSEQUENCESRowFactory
SYSSEQUENCESRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf) Constructor- Parameters:
uuidf
- UUIDFactoryef
- ExecutionFactorydvf
- DataValueFactory
-
-
Method Details
-
makeRow
Make a SYSSEQUENCES row- Overrides:
makeRow
in 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:
buildDescriptor
in classCatalogRowFactory
- Parameters:
row
- a SYSSEQUENCES rowparentTupleDescriptor
- unuseddd
- dataDictionary- Returns:
- a descriptor equivalent to a SYSSEQUENCES row
- Throws:
StandardException
- thrown on failure
-
buildColumnList
Builds a list of columns suitable for creating this Catalog.- Specified by:
buildColumnList
in classCatalogRowFactory
- Returns:
- array of SystemColumn suitable for making this catalog.
- Throws:
StandardException
-