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

public Class SYSSTATEMENTSRowFactory

extends CatalogRowFactory
Class Inheritance
Imports
org.apache.derby.shared.common.reference.Property, org.apache.derby.iapi.types.DataTypeDescriptor, .SQLBoolean, .SQLVarchar, .TypeId, .UserType, .DataValueDescriptor, .TypeId, .DataValueFactory, .RowLocation, org.apache.derby.iapi.types.*, org.apache.derby.iapi.store.raw.RawStoreFactory, org.apache.derby.iapi.sql.dictionary.SystemColumn, .CatalogRowFactory, .DataDescriptorGenerator, .DataDictionary, .SchemaDescriptor, .SPSDescriptor, .TupleDescriptor, org.apache.derby.catalog.TypeDescriptor, .UUID, org.apache.derby.iapi.sql.execute.ExecIndexRow, .ExecRow, .ExecPreparedStatement, .ExecutionFactory, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.monitor.Monitor, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.shared.common.sanity.SanityManager, java.sql.Timestamp, .Types, java.util.Properties

Factory for creating a SYSSTATEMENTS row.
Version
0.1

Field Summary

Modifier and TypeField and Description
private static final int[][]
public static final int
public static final int
public static final int
public static final int
protected static final int
protected static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
pack-priv 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 descriptor equivalent to a SYSSTATEMENTS row
buildDescriptor
(ExecRow
a SYSSTATEMENTS row
row
,
TupleDescriptor
unused
parentTupleDescriptor
,
DataDictionary
dataDictionary
dd
)

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

Make an Tuple Descriptor out of a SYSSTATEMENTS 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 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 SYSSTATEMENTS.
makeSYSSTATEMENTSrow
(boolean
passed into SPSDescriptorImpl.getPreparedStatement(). if true, we (re)compile the stmt
compileMe
,
SPSDescriptor
In-memory tuple to be converted to a disk row.
spsDescriptor
)

Make a SYSSTATEMENTS row.

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

Field Detail

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

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

SYSSTATEMENTS_COLUMN_COUNTback to summary
public static final int SYSSTATEMENTS_COLUMN_COUNT
SYSSTATEMENTS_COMPILATION_SCHEMAIDback to summary
public static final int SYSSTATEMENTS_COMPILATION_SCHEMAID
SYSSTATEMENTS_CONSTANTSTATEback to summary
public static final int SYSSTATEMENTS_CONSTANTSTATE
SYSSTATEMENTS_HIDDEN_COLUMN_COUNTback to summary
public static final int SYSSTATEMENTS_HIDDEN_COLUMN_COUNT
SYSSTATEMENTS_INDEX1_IDback to summary
protected static final int SYSSTATEMENTS_INDEX1_ID
SYSSTATEMENTS_INDEX2_IDback to summary
protected static final int SYSSTATEMENTS_INDEX2_ID
SYSSTATEMENTS_INITIALLY_COMPILABLEback to summary
public static final int SYSSTATEMENTS_INITIALLY_COMPILABLE
SYSSTATEMENTS_LASTCOMPILEDback to summary
public static final int SYSSTATEMENTS_LASTCOMPILED
SYSSTATEMENTS_SCHEMAIDback to summary
public static final int SYSSTATEMENTS_SCHEMAID
SYSSTATEMENTS_STMTIDback to summary
public static final int SYSSTATEMENTS_STMTID
SYSSTATEMENTS_STMTNAMEback to summary
public static final int SYSSTATEMENTS_STMTNAME
SYSSTATEMENTS_TEXTback to summary
public static final int SYSSTATEMENTS_TEXT
SYSSTATEMENTS_TYPEback to summary
public static final int SYSSTATEMENTS_TYPE
SYSSTATEMENTS_USINGTEXTback to summary
public static final int SYSSTATEMENTS_USINGTEXT
SYSSTATEMENTS_VALIDback to summary
public static final int SYSSTATEMENTS_VALID
TABLENAME_STRINGback to summary
pack-priv static final String TABLENAME_STRING
uniquenessback to summary
private static final boolean[] uniqueness
uuidsback to summary
private static final String[] uuids

Constructor Detail

SYSSTATEMENTSRowFactoryback to summary
pack-priv SYSSTATEMENTSRowFactory(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. The last column, the serialized statement, is not added to the column list. This is done deliberately to make it a 'hidden' column -- one that is not visible to customers, but is visible to the system.

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 an Tuple Descriptor out of a SYSSTATEMENTS row

Parameters
row:ExecRow

a SYSSTATEMENTS row

parentTupleDescriptor:TupleDescriptor

unused

dd:DataDictionary

dataDictionary

Returns:TupleDescriptor

a descriptor equivalent to a SYSSTATEMENTS row

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.

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.

makeSYSSTATEMENTSrowback to summary
public ExecRow makeSYSSTATEMENTSrow(boolean compileMe, SPSDescriptor spsDescriptor) throws StandardException

Make a SYSSTATEMENTS row.

Warning

When empty row is true, this method takes a snapshot of the SPSD and creates a row. It is imperative that that row remain consistent with the descriptor (the valid and StorablePreparedStatement fields must be in sync). If this row is to be written out and valid is true, then this call and the insert should be synchronized on the SPSD. This method has NO synchronization.

Parameters
compileMe:boolean

passed into SPSDescriptorImpl.getPreparedStatement(). if true, we (re)compile the stmt

spsDescriptor:SPSDescriptor

In-memory tuple to be converted to a disk row.

Returns:ExecRow

Row suitable for inserting into SYSSTATEMENTS.

Exceptions
StandardException:
thrown on failure