Class SYSTABLESRowFactory
java.lang.Object
org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
org.apache.derby.impl.sql.catalog.SYSTABLESRowFactory
Factory for creating a SYSTABLES row.
- Version:
- 0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
protected static final int
protected static final int
private static final String
private static final String[]
Fields inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
-
Constructor Summary
ConstructorsConstructorDescriptionSYSTABLESRowFactory
(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 TableDescriptor out of a SYSTABLES row(package private) TupleDescriptor
buildDescriptor
(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd, int isolationLevel) Make a TableDescriptor out of a SYSTABLES rowbuildDescriptorBody
(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd, int isolationLevel) (package private) ExecIndexRow
buildEmptyIndexRow
(int indexNumber, RowLocation rowLocation) Builds an empty index row.protected String
getTableName
(ExecRow row) Get the table name out of this SYSTABLES rowmakeRow
(TupleDescriptor td, TupleDescriptor parent) Make a SYSTABLES 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
-
TABLENAME_STRING
- See Also:
-
SYSTABLES_COLUMN_COUNT
protected static final int SYSTABLES_COLUMN_COUNT- See Also:
-
SYSTABLES_TABLEID
protected static final int SYSTABLES_TABLEID- See Also:
-
SYSTABLES_TABLENAME
protected static final int SYSTABLES_TABLENAME- See Also:
-
SYSTABLES_TABLETYPE
protected static final int SYSTABLES_TABLETYPE- See Also:
-
SYSTABLES_SCHEMAID
protected static final int SYSTABLES_SCHEMAID- See Also:
-
SYSTABLES_LOCKGRANULARITY
protected static final int SYSTABLES_LOCKGRANULARITY- See Also:
-
SYSTABLES_INDEX1_ID
protected static final int SYSTABLES_INDEX1_ID- See Also:
-
SYSTABLES_INDEX1_TABLENAME
protected static final int SYSTABLES_INDEX1_TABLENAME- See Also:
-
SYSTABLES_INDEX1_SCHEMAID
protected static final int SYSTABLES_INDEX1_SCHEMAID- See Also:
-
SYSTABLES_INDEX2_ID
protected static final int SYSTABLES_INDEX2_ID- See Also:
-
SYSTABLES_INDEX2_TABLEID
protected static final int SYSTABLES_INDEX2_TABLEID- See Also:
-
uuids
-
indexColumnPositions
private static final int[][] indexColumnPositions
-
-
Constructor Details
-
SYSTABLESRowFactory
SYSTABLESRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
-
-
Method Details
-
makeRow
Make a SYSTABLES row- Overrides:
makeRow
in classCatalogRowFactory
- Returns:
- Row suitable for inserting into SYSTABLES.
- Throws:
StandardException
- thrown on failure
-
buildEmptyIndexRow
Builds an empty index row.- Parameters:
indexNumber
- Index to build empty row for.rowLocation
- Row location for last column of index row- Returns:
- corresponding empty index row
- Throws:
StandardException
- thrown on failure
-
buildDescriptor
TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd, int isolationLevel) throws StandardException Make a TableDescriptor out of a SYSTABLES row- Parameters:
row
- a SYSTABLES rowparentTupleDescriptor
- Null for this kind of descriptor.dd
- dataDictionaryisolationLevel
- use this explicit isolation level. Only ISOLATION_REPEATABLE_READ (normal usage) or ISOLATION_READ_UNCOMMITTED (corner cases) supported for now.- Throws:
StandardException
- thrown on failure
-
buildDescriptor
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException Make a TableDescriptor out of a SYSTABLES row- Specified by:
buildDescriptor
in classCatalogRowFactory
- Parameters:
row
- a SYSTABLES rowparentTupleDescriptor
- Null for this kind of descriptor.dd
- dataDictionary- Returns:
- a table descriptor equivalent to a SYSTABLES row
- Throws:
StandardException
- thrown on failure
-
buildDescriptorBody
public TupleDescriptor buildDescriptorBody(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd, int isolationLevel) throws StandardException - Throws:
StandardException
-
getTableName
Get the table name out of this SYSTABLES row- Parameters:
row
- a SYSTABLES row- Returns:
- string, the table name
- Throws:
StandardException
- thrown on failure
-
buildColumnList
Builds a list of columns suitable for creating this Catalog.- Specified by:
buildColumnList
in classCatalogRowFactory
- Returns:
- array of SystemColumn suitable for making this catalog.
- Throws:
StandardException
-