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

public Class SYSCONGLOMERATESRowFactory

extends CatalogRowFactory
Class Inheritance
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.types.SQLBoolean, .SQLChar, .SQLLongint, .SQLVarchar, .TypeId, .UserType, .DataValueDescriptor, .DataValueFactory, .RowLocation, org.apache.derby.iapi.sql.dictionary.SystemColumn, .CatalogRowFactory, .ConglomerateDescriptor, .DataDescriptorGenerator, .DataDictionary, .IndexRowGenerator, .SchemaDescriptor, .TupleDescriptor, org.apache.derby.catalog.TypeDescriptor, .UUID, .IndexDescriptor, org.apache.derby.iapi.sql.execute.ExecIndexRow, .ExecRow, .ExecutionContext, .ExecutionFactory, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.uuid.UUIDFactory, java.sql.Types, java.util.Properties

Factory for creating a SYSCONGLOMERATES row.

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
protected 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

Returns:

a conglomerate descriptor equivalent to a SYSCONGOMERATES row
buildDescriptor
(ExecRow
a SYSCOLUMNS row
row
,
TupleDescriptor
Null for this kind of descriptor.
parentTupleDescriptor
,
DataDictionary
dataDictionary
dd
)

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

builds a tuple descriptor from a row

protected String

Returns:

String The conglomerates name
getConglomerateName
(ExecRow
The row from sysconglomerates
row
)

Get the conglomerate's name of the row.

protected UUID

Returns:

UUID The conglomerates UUID
getConglomerateUUID
(ExecRow
The row from sysconglomerates
row
)

Get the conglomerate's UUID of the row.

public Properties

Returns:

The Properties associated with creating the heap.
getCreateHeapProperties
()

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

Get the Properties associated with creating the heap.

public Properties

Returns:

The Properties associated with creating the specified index.
getCreateIndexProperties
(int
The specified index number.
indexNumber
)

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

Get the Properties associated with creating the specified index.

protected UUID

Returns:

UUID The schema's UUID
getSchemaUUID
(ExecRow
The row from sysconglomerates
row
)

Get the schema's UUID from the row.

protected UUID

Returns:

UUID The table's UUID
getTableUUID
(ExecRow
The row from sysconglomerates
row
)

Get the table's UUID from the row.

public ExecRow
makeEmptyRow()

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

Return an empty row for this conglomerate.

public ExecRow

Returns:

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

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

Make a SYSCONGLOMERATES row

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

Field Detail

indexColumnPositionsback to summary
private static final int[][] indexColumnPositions

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

SYSCONGLOMERATES_COLUMN_COUNTback to summary
protected static final int SYSCONGLOMERATES_COLUMN_COUNT
SYSCONGLOMERATES_CONGLOMERATEIDback to summary
protected static final int SYSCONGLOMERATES_CONGLOMERATEID
SYSCONGLOMERATES_CONGLOMERATENAMEback to summary
protected static final int SYSCONGLOMERATES_CONGLOMERATENAME
SYSCONGLOMERATES_CONGLOMERATENUMBERback to summary
protected static final int SYSCONGLOMERATES_CONGLOMERATENUMBER
SYSCONGLOMERATES_DESCRIPTORback to summary
protected static final int SYSCONGLOMERATES_DESCRIPTOR
SYSCONGLOMERATES_INDEX1_IDback to summary
protected static final int SYSCONGLOMERATES_INDEX1_ID
SYSCONGLOMERATES_INDEX2_IDback to summary
protected static final int SYSCONGLOMERATES_INDEX2_ID
SYSCONGLOMERATES_INDEX3_IDback to summary
protected static final int SYSCONGLOMERATES_INDEX3_ID
SYSCONGLOMERATES_ISCONSTRAINTback to summary
protected static final int SYSCONGLOMERATES_ISCONSTRAINT
SYSCONGLOMERATES_ISINDEXback to summary
protected static final int SYSCONGLOMERATES_ISINDEX
SYSCONGLOMERATES_SCHEMAIDback to summary
protected static final int SYSCONGLOMERATES_SCHEMAID
SYSCONGLOMERATES_TABLEIDback to summary
protected static final int SYSCONGLOMERATES_TABLEID
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

SYSCONGLOMERATESRowFactoryback to summary
pack-priv SYSCONGLOMERATESRowFactory(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.

Doc from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

builds a tuple descriptor from a row

Parameters
row:ExecRow

a SYSCOLUMNS row

parentTupleDescriptor:TupleDescriptor

Null for this kind of descriptor.

dd:DataDictionary

dataDictionary

Returns:TupleDescriptor

a conglomerate descriptor equivalent to a SYSCONGOMERATES row

Exceptions
StandardException:
thrown on failure
getConglomerateNameback to summary
protected String getConglomerateName(ExecRow row) throws StandardException

Get the conglomerate's name of the row.

Parameters
row:ExecRow

The row from sysconglomerates

Returns:String

String The conglomerates name

Exceptions
StandardException:
thrown on failure
getConglomerateUUIDback to summary
protected UUID getConglomerateUUID(ExecRow row) throws StandardException

Get the conglomerate's UUID of the row.

Parameters
row:ExecRow

The row from sysconglomerates

Returns:UUID

UUID The conglomerates UUID

Exceptions
StandardException:
thrown on failure
getCreateHeapPropertiesback to summary
public Properties getCreateHeapProperties()

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

Get the Properties associated with creating the heap.

Returns:Properties

The Properties associated with creating the heap.

getCreateIndexPropertiesback to summary
public Properties getCreateIndexProperties(int indexNumber)

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

Get the Properties associated with creating the specified index.

Parameters
indexNumber:int

The specified index number.

Returns:Properties

The Properties associated with creating the specified index.

getSchemaUUIDback to summary
protected UUID getSchemaUUID(ExecRow row) throws StandardException

Get the schema's UUID from the row.

Parameters
row:ExecRow

The row from sysconglomerates

Returns:UUID

UUID The schema's UUID

Exceptions
StandardException:
thrown on failure
getTableUUIDback to summary
protected UUID getTableUUID(ExecRow row) throws StandardException

Get the table's UUID from the row.

Parameters
row:ExecRow

The row from sysconglomerates

Returns:UUID

UUID The table's UUID

Exceptions
StandardException:
thrown on failure
makeEmptyRowback to summary
public ExecRow makeEmptyRow() throws StandardException

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

Doc from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeEmptyRow.

Return an empty row for this conglomerate.

makeRowback to summary
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException

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

Make a SYSCONGLOMERATES row

Returns:ExecRow

Row suitable for inserting into SYSCONGLOMERATES.

Exceptions
StandardException:
thrown on failure