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

java.lang.Object
  extended by org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
      extended by org.apache.derby.impl.sql.catalog.SYSTRIGGERSRowFactory

public class SYSTRIGGERSRowFactory
extends CatalogRowFactory

Factory for creating a SYSTRIGGERS row.

Version:
0.1

Field Summary
private static int[][] indexColumnPositions
           
static int SYSTRIGGERS_ACTIONSTMTID
           
static int SYSTRIGGERS_COLUMN_COUNT
           
static int SYSTRIGGERS_CREATIONTIMESTAMP
           
static int SYSTRIGGERS_EVENT
           
static int SYSTRIGGERS_FIRINGTIME
           
static int SYSTRIGGERS_INDEX1_ID
           
static int SYSTRIGGERS_INDEX2_ID
           
static int SYSTRIGGERS_INDEX3_ID
           
static int SYSTRIGGERS_NEWREFERENCINGNAME
           
static int SYSTRIGGERS_OLDREFERENCINGNAME
           
static int SYSTRIGGERS_REFERENCEDCOLUMNS
           
static int SYSTRIGGERS_REFERENCINGNEW
           
static int SYSTRIGGERS_REFERENCINGOLD
           
static int SYSTRIGGERS_SCHEMAID
           
static int SYSTRIGGERS_STATE
           
static int SYSTRIGGERS_TABLEID
           
static int SYSTRIGGERS_TRIGGERDEFINITION
           
static int SYSTRIGGERS_TRIGGERID
           
static int SYSTRIGGERS_TRIGGERNAME
           
static int SYSTRIGGERS_TYPE
           
static int SYSTRIGGERS_WHENSTMTID
           
(package 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
SYSTRIGGERSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
           
 
Method Summary
 SystemColumn[] buildColumnList()
          Builds a list of columns suitable for creating this Catalog.
 TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd)
          Make an Tuple Descriptor out of a SYSTRIGGERS row
private  boolean getCharBoolean(DataValueDescriptor col, char trueValue, char falseValue)
           
 ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent)
          Make a SYSTRIGGERS row.
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLENAME_STRING

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

SYSTRIGGERS_TRIGGERID

public static final int SYSTRIGGERS_TRIGGERID
See Also:
Constant Field Values

SYSTRIGGERS_TRIGGERNAME

public static final int SYSTRIGGERS_TRIGGERNAME
See Also:
Constant Field Values

SYSTRIGGERS_SCHEMAID

public static final int SYSTRIGGERS_SCHEMAID
See Also:
Constant Field Values

SYSTRIGGERS_CREATIONTIMESTAMP

public static final int SYSTRIGGERS_CREATIONTIMESTAMP
See Also:
Constant Field Values

SYSTRIGGERS_EVENT

public static final int SYSTRIGGERS_EVENT
See Also:
Constant Field Values

SYSTRIGGERS_FIRINGTIME

public static final int SYSTRIGGERS_FIRINGTIME
See Also:
Constant Field Values

SYSTRIGGERS_TYPE

public static final int SYSTRIGGERS_TYPE
See Also:
Constant Field Values

SYSTRIGGERS_STATE

public static final int SYSTRIGGERS_STATE
See Also:
Constant Field Values

SYSTRIGGERS_TABLEID

public static final int SYSTRIGGERS_TABLEID
See Also:
Constant Field Values

SYSTRIGGERS_WHENSTMTID

public static final int SYSTRIGGERS_WHENSTMTID
See Also:
Constant Field Values

SYSTRIGGERS_ACTIONSTMTID

public static final int SYSTRIGGERS_ACTIONSTMTID
See Also:
Constant Field Values

SYSTRIGGERS_REFERENCEDCOLUMNS

public static final int SYSTRIGGERS_REFERENCEDCOLUMNS
See Also:
Constant Field Values

SYSTRIGGERS_TRIGGERDEFINITION

public static final int SYSTRIGGERS_TRIGGERDEFINITION
See Also:
Constant Field Values

SYSTRIGGERS_REFERENCINGOLD

public static final int SYSTRIGGERS_REFERENCINGOLD
See Also:
Constant Field Values

SYSTRIGGERS_REFERENCINGNEW

public static final int SYSTRIGGERS_REFERENCINGNEW
See Also:
Constant Field Values

SYSTRIGGERS_OLDREFERENCINGNAME

public static final int SYSTRIGGERS_OLDREFERENCINGNAME
See Also:
Constant Field Values

SYSTRIGGERS_NEWREFERENCINGNAME

public static final int SYSTRIGGERS_NEWREFERENCINGNAME
See Also:
Constant Field Values

SYSTRIGGERS_COLUMN_COUNT

public static final int SYSTRIGGERS_COLUMN_COUNT
See Also:
Constant Field Values

SYSTRIGGERS_INDEX1_ID

public static final int SYSTRIGGERS_INDEX1_ID
See Also:
Constant Field Values

SYSTRIGGERS_INDEX2_ID

public static final int SYSTRIGGERS_INDEX2_ID
See Also:
Constant Field Values

SYSTRIGGERS_INDEX3_ID

public static final int SYSTRIGGERS_INDEX3_ID
See Also:
Constant Field Values

indexColumnPositions

private static final int[][] indexColumnPositions

uniqueness

private static final boolean[] uniqueness

uuids

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

SYSTRIGGERSRowFactory

SYSTRIGGERSRowFactory(UUIDFactory uuidf,
                      ExecutionFactory ef,
                      DataValueFactory dvf)
Method Detail

makeRow

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

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

buildDescriptor

public TupleDescriptor buildDescriptor(ExecRow row,
                                       TupleDescriptor parentTupleDescriptor,
                                       DataDictionary dd)
                                throws StandardException
Make an Tuple Descriptor out of a SYSTRIGGERS row

Specified by:
buildDescriptor in class CatalogRowFactory
Parameters:
row - a SYSTRIGGERS row
parentTupleDescriptor - unused
dd - dataDictionary
Returns:
a descriptor equivalent to a SYSTRIGGERS row
Throws:
StandardException - thrown on failure

buildColumnList

public SystemColumn[] buildColumnList()
                               throws StandardException
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.

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

getCharBoolean

private boolean getCharBoolean(DataValueDescriptor col,
                               char trueValue,
                               char falseValue)
                        throws StandardException
Throws:
StandardException

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.