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

pack-priv Class SYSALIASESRowFactory

extends CatalogRowFactory
Class Inheritance
Imports
java.sql.Types, org.apache.derby.catalog.AliasInfo, .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.AliasDescriptor, .CatalogRowFactory, .DataDictionary, .SystemColumn, .TupleDescriptor, org.apache.derby.iapi.sql.execute.ExecRow, .ExecutionFactory, org.apache.derby.iapi.types.DataValueDescriptor, .DataValueFactory, .SQLBoolean, .SQLChar, .SQLVarchar, .UserType

Factory for creating a SYSALIASES row. Here are the directions for adding a new system supplied alias. Misc: All system supplied aliases are class aliases at this point. Additional arrays will need to be added if we supply system aliases of other types. The preloadAliasIDs array is an array of hard coded UUIDs for the system supplied aliases. The preloadAliases array is the array of aliases for the system supplied aliases. This array is in alphabetical order by package and class in Xena. Each alias is the uppercase class name of the alias. The preloadJavaClassNames array is the array of full package.class names for the system supplied aliases. This array is in alphabetical order by package and class in Xena. SYSALIASES_NUM_BOOT_ROWS is the number of boot rows in sys.sysaliases in a new database.

Field Summary

Modifier and TypeField and Description
private static int[][]
private static final int
private static final int
public static final int
private static final int
private static final int
protected static final int
protected static final int
protected static final int
private static final int
private static final int
private static final int
private static final int
private static final int
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 SYSALIASES 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 AliasDescriptor out of a SYSALIASES row

public ExecRow

Returns:

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

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

Make a SYSALIASES row

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

Field Detail

indexColumnPositionsback to summary
private static int[][] indexColumnPositions

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

SYSALIASES_ALIASback to summary
private static final int SYSALIASES_ALIAS
SYSALIASES_ALIASIDback to summary
private static final int SYSALIASES_ALIASID
SYSALIASES_ALIASINFOback to summary
public static final int SYSALIASES_ALIASINFO
SYSALIASES_ALIASTYPEback to summary
private static final int SYSALIASES_ALIASTYPE
SYSALIASES_COLUMN_COUNTback to summary
private static final int SYSALIASES_COLUMN_COUNT
SYSALIASES_INDEX1_IDback to summary
protected static final int SYSALIASES_INDEX1_ID
SYSALIASES_INDEX2_IDback to summary
protected static final int SYSALIASES_INDEX2_ID
SYSALIASES_INDEX3_IDback to summary
protected static final int SYSALIASES_INDEX3_ID
SYSALIASES_JAVACLASSNAMEback to summary
private static final int SYSALIASES_JAVACLASSNAME
SYSALIASES_NAMESPACEback to summary
private static final int SYSALIASES_NAMESPACE
SYSALIASES_SCHEMAIDback to summary
private static final int SYSALIASES_SCHEMAID
SYSALIASES_SPECIFIC_NAMEback to summary
private static final int SYSALIASES_SPECIFIC_NAME
SYSALIASES_SYSTEMALIASback to summary
private static final int SYSALIASES_SYSTEMALIAS
uniquenessback to summary
private static final boolean[] uniqueness
uuidsback to summary
private static final String[] uuids

Constructor Detail

SYSALIASESRowFactoryback to summary
pack-priv SYSALIASESRowFactory(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. DERBY-1734 fixed an issue where older code created the BOOLEAN column SYSTEMALIAS with maximum length 0 instead of 1. DERBY-1742 was opened to track if upgrade changes are needed.

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 AliasDescriptor out of a SYSALIASES row

Parameters
row:ExecRow

a SYSALIASES 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 SYSALIASES row

Returns:ExecRow

Row suitable for inserting into SYSALIASES.

Exceptions
StandardException:
thrown on failure