Top Description Fields Constructors Methods
org.apache.derby.impl.sql.catalog

public Class SYSFOREIGNKEYSRowFactory

extends CatalogRowFactory
Class Inheritance
Imports
java.sql.Types, org.apache.derby.catalog.UUID, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.iapi.sql.StatementType, org.apache.derby.iapi.sql.dictionary.CatalogRowFactory, .DataDescriptorGenerator, .DataDictionary, .ForeignKeyConstraintDescriptor, .ReferencedKeyConstraintDescriptor, .SubKeyConstraintDescriptor, .SystemColumn, .TupleDescriptor, org.apache.derby.iapi.sql.execute.ExecIndexRow, .ExecRow, .ExecutionFactory, org.apache.derby.iapi.types.DataValueDescriptor, .DataValueFactory, .SQLChar

Factory for creating a SYSFOREIGNKEYS row.

Field Summary

Modifier and TypeField and Description
private static final int[][]
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
private static final String
private static final boolean[]
private static final String[]
Inherited from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory:
dvfheapUUIDindexNamesindexUniquenessindexUUIDtableUUID

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public SystemColumn[]

Returns:

array of SystemColumn suitable for making this catalog.
buildColumnList
()

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildColumnList.

Builds a list of columns suitable for creating this Catalog.

public TupleDescriptor
buildDescriptor(ExecRow
a SYSFOREIGNKEYS row
row
,
TupleDescriptor
Null for this kind of descriptor.
parentTupleDescriptor
,
DataDictionary
dataDictionary
dd
)

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

Make a ViewDescriptor out of a SYSFOREIGNKEYS row

pack-priv int
getRefActionAsInt(String raRuleString)

pack-priv String
public ExecRow

Returns:

Row suitable for inserting into SYSFOREIGNKEYS.
makeRow
(TupleDescriptor td, TupleDescriptor parent)

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeRow.

Make a SYSFOREIGNKEYS row

Inherited from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory:
generateIndexNamegetCanonicalHeapNamegetCanonicalHeapUUIDgetCanonicalIndexUUIDgetCanonicalTableUUIDgetCatalogNamegetCreateHeapPropertiesgetCreateIndexPropertiesgetDataValueFactorygetExecutionFactorygetHeapColumnCountgetIndexColumnCountgetIndexColumnPositionsgetIndexNamegetNumIndexesgetPrimaryKeyIndexNumbergetUUIDFactoryinitInfoisIndexUniquemakeEmptyRowmakeEmptyRowForCurrentVersion

Field Detail

indexColumnPositionsback to summary
private static final int[][] indexColumnPositions

Hides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.indexColumnPositions.

SYSFOREIGNKEYS_COLUMN_COUNTback to summary
protected static final int SYSFOREIGNKEYS_COLUMN_COUNT
SYSFOREIGNKEYS_CONGLOMERATEIDback to summary
protected static final int SYSFOREIGNKEYS_CONGLOMERATEID
SYSFOREIGNKEYS_CONSTRAINTIDback to summary
protected static final int SYSFOREIGNKEYS_CONSTRAINTID
SYSFOREIGNKEYS_CONSTRAINTID_WIDTHback to summary
protected static final int SYSFOREIGNKEYS_CONSTRAINTID_WIDTH
SYSFOREIGNKEYS_DELETERULEback to summary
protected static final int SYSFOREIGNKEYS_DELETERULE
SYSFOREIGNKEYS_INDEX1_IDback to summary
protected static final int SYSFOREIGNKEYS_INDEX1_ID
SYSFOREIGNKEYS_INDEX2_IDback to summary
protected static final int SYSFOREIGNKEYS_INDEX2_ID
SYSFOREIGNKEYS_KEYCONSTRAINTIDback to summary
protected static final int SYSFOREIGNKEYS_KEYCONSTRAINTID
SYSFOREIGNKEYS_UPDATERULEback to summary
protected static final int SYSFOREIGNKEYS_UPDATERULE
TABLENAME_STRINGback to summary
private static final String TABLENAME_STRING
uniquenessback to summary
private static final boolean[] uniqueness
uuidsback to summary
private static final String[] uuids

Constructor Detail

SYSFOREIGNKEYSRowFactoryback to summary
pack-priv SYSFOREIGNKEYSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)

Method Detail

buildColumnListback to summary
public SystemColumn[] buildColumnList() throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildColumnList.

Builds a list of columns suitable for creating this Catalog.

Returns:SystemColumn[]

array of SystemColumn suitable for making this catalog.

buildDescriptorback to summary
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

Make a ViewDescriptor out of a SYSFOREIGNKEYS row

Parameters
row:ExecRow

a SYSFOREIGNKEYS row

parentTupleDescriptor:TupleDescriptor

Null for this kind of descriptor.

dd:DataDictionary

dataDictionary

Exceptions
StandardException:
thrown on failure
getRefActionAsIntback to summary
pack-priv int getRefActionAsInt(String raRuleString)
getRefActionAsStringback to summary
pack-priv String getRefActionAsString(int raRule)
makeRowback to summary
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeRow.

Make a SYSFOREIGNKEYS row

Returns:ExecRow

Row suitable for inserting into SYSFOREIGNKEYS.

Exceptions
StandardException:
thrown on failure