public class SYSCONSTRAINTSRowFactory extends CatalogRowFactory
Modifier and Type | Field | Description |
---|---|---|
private static int[][] |
indexColumnPositions |
|
protected static int |
SYSCONSTRAINTS_COLUMN_COUNT |
|
protected static int |
SYSCONSTRAINTS_CONSTRAINTID |
|
protected static int |
SYSCONSTRAINTS_CONSTRAINTNAME |
|
protected static int |
SYSCONSTRAINTS_INDEX1_ID |
|
protected static int |
SYSCONSTRAINTS_INDEX2_ID |
|
protected static int |
SYSCONSTRAINTS_INDEX3_ID |
|
protected static int |
SYSCONSTRAINTS_REFERENCECOUNT |
|
protected static int |
SYSCONSTRAINTS_SCHEMAID |
|
static int |
SYSCONSTRAINTS_STATE |
|
protected static int |
SYSCONSTRAINTS_TABLEID |
|
protected static int |
SYSCONSTRAINTS_TYPE |
|
private static java.lang.String |
TABLENAME_STRING |
|
private static boolean[] |
uniqueness |
|
private static java.lang.String[] |
uuids |
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
Constructor | Description |
---|---|
SYSCONSTRAINTSRowFactory(UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf) |
Modifier and Type | Method | Description |
---|---|---|
SystemColumn[] |
buildColumnList() |
Builds a list of columns suitable for creating this Catalog.
|
TupleDescriptor |
buildDescriptor(ExecRow row,
TupleDescriptor parentTupleDescriptor,
DataDictionary dd) |
Make a ConstraintDescriptor out of a SYSCONSTRAINTS row
|
private java.lang.String |
encodeCharacteristics(boolean deferrable,
boolean initiallyDeferred,
boolean enforced) |
|
protected UUID |
getConstraintId(ExecRow row) |
Get the constraint ID of the row.
|
protected java.lang.String |
getConstraintName(ExecRow row) |
Get the constraint name of the row.
|
protected int |
getConstraintType(ExecRow row) |
Get the constraint type out of the row.
|
protected UUID |
getSchemaId(ExecRow row) |
Get the schema ID of the row.
|
protected UUID |
getTableId(ExecRow row) |
Get the table ID of the row.
|
ExecRow |
makeRow(TupleDescriptor td,
TupleDescriptor parent) |
Make a SYSCONTRAINTS row
|
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getPrimaryKeyIndexNumber, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow, makeEmptyRowForCurrentVersion
private static final java.lang.String TABLENAME_STRING
protected static final int SYSCONSTRAINTS_COLUMN_COUNT
protected static final int SYSCONSTRAINTS_CONSTRAINTID
protected static final int SYSCONSTRAINTS_TABLEID
protected static final int SYSCONSTRAINTS_CONSTRAINTNAME
protected static final int SYSCONSTRAINTS_TYPE
protected static final int SYSCONSTRAINTS_SCHEMAID
public static final int SYSCONSTRAINTS_STATE
protected static final int SYSCONSTRAINTS_REFERENCECOUNT
protected static final int SYSCONSTRAINTS_INDEX1_ID
protected static final int SYSCONSTRAINTS_INDEX2_ID
protected static final int SYSCONSTRAINTS_INDEX3_ID
private static final boolean[] uniqueness
private static final int[][] indexColumnPositions
private static final java.lang.String[] uuids
SYSCONSTRAINTSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
makeRow
in class CatalogRowFactory
StandardException
- thrown on failureprivate java.lang.String encodeCharacteristics(boolean deferrable, boolean initiallyDeferred, boolean enforced)
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException
buildDescriptor
in class CatalogRowFactory
row
- a SYSCONSTRAINTS rowparentTupleDescriptor
- Subconstraint descriptor with auxiliary info.dd
- dataDictionaryStandardException
- thrown on failureprotected UUID getConstraintId(ExecRow row) throws StandardException
row
- The row from sysconstraintsStandardException
- thrown on failureprotected java.lang.String getConstraintName(ExecRow row) throws StandardException
row
- The row from sysconstraintsStandardException
- thrown on failureprotected UUID getSchemaId(ExecRow row) throws StandardException
row
- The row from sysconstraintsStandardException
- thrown on failureprotected UUID getTableId(ExecRow row) throws StandardException
row
- The row from sysconstraintsStandardException
- thrown on failureprotected int getConstraintType(ExecRow row) throws StandardException
row
- The row from sysconstraintsStandardException
- thrown on failurepublic SystemColumn[] buildColumnList()
buildColumnList
in class CatalogRowFactory
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.