org.apache.derby.impl.sql.catalog
Class SYSCONGLOMERATESRowFactory

java.lang.Object
  extended byorg.apache.derby.iapi.sql.dictionary.CatalogRowFactory
      extended byorg.apache.derby.impl.sql.catalog.SYSCONGLOMERATESRowFactory

public class SYSCONGLOMERATESRowFactory
extends CatalogRowFactory

Factory for creating a SYSCONGLOMERATES row.

Author:
ames

Field Summary
private static java.lang.String[][] indexColumnNames
           
private static int[][] indexColumnPositions
           
protected static int SYSCONGLOMERATES_COLUMN_COUNT
           
protected static int SYSCONGLOMERATES_CONGLOMERATEID
           
protected static int SYSCONGLOMERATES_CONGLOMERATENAME
           
protected static int SYSCONGLOMERATES_CONGLOMERATENUMBER
           
protected static int SYSCONGLOMERATES_DESCRIPTOR
           
protected static int SYSCONGLOMERATES_INDEX1_ID
           
protected static int SYSCONGLOMERATES_INDEX2_ID
           
protected static int SYSCONGLOMERATES_INDEX3_ID
           
protected static int SYSCONGLOMERATES_ISCONSTRAINT
           
protected static int SYSCONGLOMERATES_ISINDEX
           
protected static int SYSCONGLOMERATES_SCHEMAID
           
protected static int SYSCONGLOMERATES_TABLEID
           
private static java.lang.String TABLENAME_STRING
           
private static boolean[] uniqueness
           
private static java.lang.String[] uuids
           
 
Fields inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
 
Constructor Summary
(package private) SYSCONGLOMERATESRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf, boolean convertIdToLower)
           
 
Method Summary
 SystemColumn[] buildColumnList()
          Builds a list of columns suitable for creating this Catalog.
 TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd)
          builds a tuple descriptor from a row
 ExecIndexRow buildEmptyIndexRow(int indexNumber, RowLocation rowLocation)
          Builds an empty index row.
protected  java.lang.String getConglomerateName(ExecRow row)
          Get the conglomerate's name of the row.
protected  UUID getConglomerateUUID(ExecRow row)
          Get the conglomerate's UUID of the row.
 java.util.Properties getCreateHeapProperties()
          Get the Properties associated with creating the heap.
 java.util.Properties getCreateIndexProperties(int indexNumber)
          Get the Properties associated with creating the specified index.
protected  UUID getSchemaUUID(ExecRow row)
          Get the schema's UUID from the row.
protected  UUID getTableUUID(ExecRow row)
          Get the table's UUID from the row.
 ExecRow makeEmptyRow()
          Return an empty row for this conglomerate.
 ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent)
          Make a SYSCONGLOMERATES row
 
Methods inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
checkIndexNumber, convertIdCase, generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnNames, getIndexColumnPositions, getIndexName, getNumIndexes, getPrimaryKeyIndexNumber, getUUIDFactory, initInfo, isIndexUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLENAME_STRING

private static final java.lang.String TABLENAME_STRING
See Also:
Constant Field Values

SYSCONGLOMERATES_COLUMN_COUNT

protected static final int SYSCONGLOMERATES_COLUMN_COUNT
See Also:
Constant Field Values

SYSCONGLOMERATES_SCHEMAID

protected static final int SYSCONGLOMERATES_SCHEMAID
See Also:
Constant Field Values

SYSCONGLOMERATES_TABLEID

protected static final int SYSCONGLOMERATES_TABLEID
See Also:
Constant Field Values

SYSCONGLOMERATES_CONGLOMERATENUMBER

protected static final int SYSCONGLOMERATES_CONGLOMERATENUMBER
See Also:
Constant Field Values

SYSCONGLOMERATES_CONGLOMERATENAME

protected static final int SYSCONGLOMERATES_CONGLOMERATENAME
See Also:
Constant Field Values

SYSCONGLOMERATES_ISINDEX

protected static final int SYSCONGLOMERATES_ISINDEX
See Also:
Constant Field Values

SYSCONGLOMERATES_DESCRIPTOR

protected static final int SYSCONGLOMERATES_DESCRIPTOR
See Also:
Constant Field Values

SYSCONGLOMERATES_ISCONSTRAINT

protected static final int SYSCONGLOMERATES_ISCONSTRAINT
See Also:
Constant Field Values

SYSCONGLOMERATES_CONGLOMERATEID

protected static final int SYSCONGLOMERATES_CONGLOMERATEID
See Also:
Constant Field Values

SYSCONGLOMERATES_INDEX1_ID

protected static final int SYSCONGLOMERATES_INDEX1_ID
See Also:
Constant Field Values

SYSCONGLOMERATES_INDEX2_ID

protected static final int SYSCONGLOMERATES_INDEX2_ID
See Also:
Constant Field Values

SYSCONGLOMERATES_INDEX3_ID

protected static final int SYSCONGLOMERATES_INDEX3_ID
See Also:
Constant Field Values

uniqueness

private static final boolean[] uniqueness

indexColumnPositions

private static final int[][] indexColumnPositions

indexColumnNames

private static final java.lang.String[][] indexColumnNames

uuids

private static final java.lang.String[] uuids
Constructor Detail

SYSCONGLOMERATESRowFactory

SYSCONGLOMERATESRowFactory(UUIDFactory uuidf,
                           ExecutionFactory ef,
                           DataValueFactory dvf,
                           boolean convertIdToLower)
Method Detail

makeRow

public ExecRow makeRow(TupleDescriptor td,
                       TupleDescriptor parent)
                throws StandardException
Make a SYSCONGLOMERATES row

Overrides:
makeRow in class CatalogRowFactory
Returns:
Row suitable for inserting into SYSCONGLOMERATES.
Throws:
StandardException - thrown on failure

makeEmptyRow

public ExecRow makeEmptyRow()
                     throws StandardException
Description copied from class: CatalogRowFactory
Return an empty row for this conglomerate.

Overrides:
makeEmptyRow in class CatalogRowFactory
Throws:
StandardException

buildEmptyIndexRow

public ExecIndexRow buildEmptyIndexRow(int indexNumber,
                                       RowLocation rowLocation)
                                throws StandardException
Builds an empty index row.

Specified by:
buildEmptyIndexRow in class CatalogRowFactory
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

getCreateHeapProperties

public java.util.Properties getCreateHeapProperties()
Get the Properties associated with creating the heap.

Overrides:
getCreateHeapProperties in class CatalogRowFactory
Returns:
The Properties associated with creating the heap.

getCreateIndexProperties

public java.util.Properties getCreateIndexProperties(int indexNumber)
Get the Properties associated with creating the specified index.

Overrides:
getCreateIndexProperties in class CatalogRowFactory
Parameters:
indexNumber - The specified index number.
Returns:
The Properties associated with creating the specified index.

buildDescriptor

public TupleDescriptor buildDescriptor(ExecRow row,
                                       TupleDescriptor parentTupleDescriptor,
                                       DataDictionary dd)
                                throws StandardException
Description copied from class: CatalogRowFactory
builds a tuple descriptor from a row

Specified by:
buildDescriptor in class CatalogRowFactory
Parameters:
row - a SYSCOLUMNS row
parentTupleDescriptor - Null for this kind of descriptor.
dd - dataDictionary
Returns:
a conglomerate descriptor equivalent to a SYSCONGOMERATES row
Throws:
StandardException - thrown on failure

getConglomerateUUID

protected UUID getConglomerateUUID(ExecRow row)
                            throws StandardException
Get the conglomerate's UUID of the row.

Parameters:
row - The row from sysconglomerates
Returns:
UUID The conglomerates UUID
Throws:
StandardException - thrown on failure

getTableUUID

protected UUID getTableUUID(ExecRow row)
                     throws StandardException
Get the table's UUID from the row.

Parameters:
row - The row from sysconglomerates
Returns:
UUID The table's UUID
Throws:
StandardException - thrown on failure

getSchemaUUID

protected UUID getSchemaUUID(ExecRow row)
                      throws StandardException
Get the schema's UUID from the row.

Parameters:
row - The row from sysconglomerates
Returns:
UUID The schema's UUID
Throws:
StandardException - thrown on failure

getConglomerateName

protected java.lang.String getConglomerateName(ExecRow row)
                                        throws StandardException
Get the conglomerate's name of the row.

Parameters:
row - The row from sysconglomerates
Returns:
String The conglomerates name
Throws:
StandardException - thrown on failure

buildColumnList

public SystemColumn[] buildColumnList()
Builds a list of columns suitable for creating this Catalog.

Specified by:
buildColumnList in class CatalogRowFactory
Returns:
array of SystemColumn suitable for making this catalog.

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.