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

pack-priv Class SYSTABLESRowFactory

extends CatalogRowFactory
Class Inheritance
Imports
org.apache.derby.iapi.types.DataValueDescriptor, .DataValueFactory, .RowLocation, .SQLChar, .SQLVarchar, org.apache.derby.iapi.sql.dictionary.SystemColumn, .CatalogRowFactory, .TupleDescriptor, .DataDescriptorGenerator, .DataDictionary, .SchemaDescriptor, .TableDescriptor, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.execute.ExecIndexRow, .ExecutionFactory, .ExecRow, org.apache.derby.shared.common.error.StandardException, org.apache.derby.catalog.UUID, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.iapi.store.access.TransactionController

Factory for creating a SYSTABLES row.
Version
0.1

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
protected static final int
protected static final int
private static final String
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.

pack-priv TupleDescriptor
buildDescriptor(ExecRow
a SYSTABLES row
row
,
TupleDescriptor
Null for this kind of descriptor.
parentTupleDescriptor
,
DataDictionary
dataDictionary
dd
,
int
use this explicit isolation level. Only ISOLATION_REPEATABLE_READ (normal usage) or ISOLATION_READ_UNCOMMITTED (corner cases) supported for now.
isolationLevel
)

Make a TableDescriptor out of a SYSTABLES row

public TupleDescriptor

Returns:

a table descriptor equivalent to a SYSTABLES row
buildDescriptor
(ExecRow
a SYSTABLES 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 TableDescriptor out of a SYSTABLES row

public TupleDescriptor
buildDescriptorBody(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd, int isolationLevel)

pack-priv ExecIndexRow

Returns:

corresponding empty index row
buildEmptyIndexRow
(int
Index to build empty row for.
indexNumber
,
RowLocation
Row location for last column of index row
rowLocation
)

Builds an empty index row.

protected String

Returns:

string, the table name
getTableName
(ExecRow
a SYSTABLES row
row
)

Get the table name out of this SYSTABLES row

public ExecRow

Returns:

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

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

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

SYSTABLES_COLUMN_COUNTback to summary
protected static final int SYSTABLES_COLUMN_COUNT
SYSTABLES_INDEX1_IDback to summary
protected static final int SYSTABLES_INDEX1_ID
SYSTABLES_INDEX1_SCHEMAIDback to summary
protected static final int SYSTABLES_INDEX1_SCHEMAID
SYSTABLES_INDEX1_TABLENAMEback to summary
protected static final int SYSTABLES_INDEX1_TABLENAME
SYSTABLES_INDEX2_IDback to summary
protected static final int SYSTABLES_INDEX2_ID
SYSTABLES_INDEX2_TABLEIDback to summary
protected static final int SYSTABLES_INDEX2_TABLEID
SYSTABLES_LOCKGRANULARITYback to summary
protected static final int SYSTABLES_LOCKGRANULARITY
SYSTABLES_SCHEMAIDback to summary
protected static final int SYSTABLES_SCHEMAID
SYSTABLES_TABLEIDback to summary
protected static final int SYSTABLES_TABLEID
SYSTABLES_TABLENAMEback to summary
protected static final int SYSTABLES_TABLENAME
SYSTABLES_TABLETYPEback to summary
protected static final int SYSTABLES_TABLETYPE
TABLENAME_STRINGback to summary
private static final String TABLENAME_STRING
uuidsback to summary
private static final String[] uuids

Constructor Detail

SYSTABLESRowFactoryback to summary
pack-priv SYSTABLESRowFactory(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
pack-priv TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd, int isolationLevel) throws StandardException

Make a TableDescriptor out of a SYSTABLES row

Parameters
row:ExecRow

a SYSTABLES row

parentTupleDescriptor:TupleDescriptor

Null for this kind of descriptor.

dd:DataDictionary

dataDictionary

isolationLevel:int

use this explicit isolation level. Only ISOLATION_REPEATABLE_READ (normal usage) or ISOLATION_READ_UNCOMMITTED (corner cases) supported for now.

Exceptions
StandardException:
thrown on failure
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 TableDescriptor out of a SYSTABLES row

Parameters
row:ExecRow

a SYSTABLES row

parentTupleDescriptor:TupleDescriptor

Null for this kind of descriptor.

dd:DataDictionary

dataDictionary

Returns:TupleDescriptor

a table descriptor equivalent to a SYSTABLES row

Exceptions
StandardException:
thrown on failure
buildDescriptorBodyback to summary
public TupleDescriptor buildDescriptorBody(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd, int isolationLevel) throws StandardException
buildEmptyIndexRowback to summary
pack-priv ExecIndexRow buildEmptyIndexRow(int indexNumber, RowLocation rowLocation) throws StandardException

Builds an empty index row.

Parameters
indexNumber:int

Index to build empty row for.

rowLocation:RowLocation

Row location for last column of index row

Returns:ExecIndexRow

corresponding empty index row

Exceptions
StandardException:
thrown on failure
getTableNameback to summary
protected String getTableName(ExecRow row) throws StandardException

Get the table name out of this SYSTABLES row

Parameters
row:ExecRow

a SYSTABLES row

Returns:String

string, the table name

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 SYSTABLES row

Returns:ExecRow

Row suitable for inserting into SYSTABLES.

Exceptions
StandardException:
thrown on failure