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

pack-priv Class SYSCHECKSRowFactory

extends CatalogRowFactory
Class Inheritance
Imports
java.sql.Types, org.apache.derby.catalog.ReferencedColumns, .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.dictionary.CatalogRowFactory, .CheckConstraintDescriptor, .DataDescriptorGenerator, .DataDictionary, .SubCheckConstraintDescriptor, .SystemColumn, .TupleDescriptor, org.apache.derby.iapi.sql.execute.ExecIndexRow, .ExecRow, .ExecutionFactory, org.apache.derby.iapi.types.DataValueDescriptor, .DataValueFactory, .SQLChar, .UserType

Factory for creating a SYSCHECKS row.

Field Summary

Modifier and TypeField and Description
private static final int[][]
private static final int
private static final int
private static final int
pack-priv static final int
private 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 SYSCHECKS 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 SYSCHECKS row

public ExecRow

Returns:

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

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

Make a SYSCHECKS 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.

SYSCHECKS_CHECKDEFINITIONback to summary
private static final int SYSCHECKS_CHECKDEFINITION
SYSCHECKS_COLUMN_COUNTback to summary
private static final int SYSCHECKS_COLUMN_COUNT
SYSCHECKS_CONSTRAINTIDback to summary
private static final int SYSCHECKS_CONSTRAINTID
SYSCHECKS_INDEX1_IDback to summary
pack-priv static final int SYSCHECKS_INDEX1_ID
SYSCHECKS_REFERENCEDCOLUMNSback to summary
private static final int SYSCHECKS_REFERENCEDCOLUMNS
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

SYSCHECKSRowFactoryback to summary
pack-priv SYSCHECKSRowFactory(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 SYSCHECKS row

Parameters
row:ExecRow

a SYSCHECKS row

parentTupleDescriptor:TupleDescriptor

Null for this kind of descriptor.

dd:DataDictionary

dataDictionary

Exceptions
StandardException:
thrown on failure
makeRowback to summary
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException

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

Make a SYSCHECKS row

Parameters
td:TupleDescriptor

CheckConstraintDescriptorImpl

Returns:ExecRow

Row suitable for inserting into SYSCHECKS.

Exceptions
StandardException:
thrown on failure