Class SYSALIASESRowFactory
java.lang.Object
org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
org.apache.derby.impl.sql.catalog.SYSALIASESRowFactory
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
FieldsModifier and TypeFieldDescriptionprivate static int[][]
private static final int
private static final int
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[]
Fields inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
-
Constructor Summary
ConstructorsConstructorDescriptionSYSALIASESRowFactory
(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf) -
Method Summary
Modifier and TypeMethodDescriptionBuilds a list of columns suitable for creating this Catalog.buildDescriptor
(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) Make a AliasDescriptor out of a SYSALIASES rowmakeRow
(TupleDescriptor td, TupleDescriptor parent) Make a SYSALIASES 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
-
SYSALIASES_COLUMN_COUNT
private static final int SYSALIASES_COLUMN_COUNT- See Also:
-
SYSALIASES_ALIASID
private static final int SYSALIASES_ALIASID- See Also:
-
SYSALIASES_ALIAS
private static final int SYSALIASES_ALIAS- See Also:
-
SYSALIASES_SCHEMAID
private static final int SYSALIASES_SCHEMAID- See Also:
-
SYSALIASES_JAVACLASSNAME
private static final int SYSALIASES_JAVACLASSNAME- See Also:
-
SYSALIASES_ALIASTYPE
private static final int SYSALIASES_ALIASTYPE- See Also:
-
SYSALIASES_NAMESPACE
private static final int SYSALIASES_NAMESPACE- See Also:
-
SYSALIASES_SYSTEMALIAS
private static final int SYSALIASES_SYSTEMALIAS- See Also:
-
SYSALIASES_ALIASINFO
public static final int SYSALIASES_ALIASINFO- See Also:
-
SYSALIASES_SPECIFIC_NAME
private static final int SYSALIASES_SPECIFIC_NAME- See Also:
-
SYSALIASES_INDEX1_ID
protected static final int SYSALIASES_INDEX1_ID- See Also:
-
SYSALIASES_INDEX2_ID
protected static final int SYSALIASES_INDEX2_ID- See Also:
-
SYSALIASES_INDEX3_ID
protected static final int SYSALIASES_INDEX3_ID- See Also:
-
uniqueness
private static final boolean[] uniqueness -
indexColumnPositions
private static int[][] indexColumnPositions -
uuids
-
-
Constructor Details
-
SYSALIASESRowFactory
SYSALIASESRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
-
-
Method Details
-
makeRow
Make a SYSALIASES row- Overrides:
makeRow
in classCatalogRowFactory
- Returns:
- Row suitable for inserting into SYSALIASES.
- Throws:
StandardException
- thrown on failure
-
buildDescriptor
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException Make a AliasDescriptor out of a SYSALIASES row- Specified by:
buildDescriptor
in classCatalogRowFactory
- Parameters:
row
- a SYSALIASES rowparentTupleDescriptor
- Null for this kind of descriptor.dd
- dataDictionary- Throws:
StandardException
- thrown on failure
-
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.- Specified by:
buildColumnList
in classCatalogRowFactory
- Returns:
- array of SystemColumn suitable for making this catalog.
- Throws:
StandardException
-