Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.catalog
Class SYSTRIGGERSRowFactory  view SYSTRIGGERSRowFactory download SYSTRIGGERSRowFactory.java

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

public class SYSTRIGGERSRowFactory
extends org.apache.derby.iapi.sql.dictionary.CatalogRowFactory

Factory for creating a SYSTRIGGERS row.

Version:
0.1

Field Summary
private static java.lang.String[][] indexColumnNames
           
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(org.apache.derby.iapi.services.uuid.UUIDFactory uuidf, org.apache.derby.iapi.sql.execute.ExecutionFactory ef, org.apache.derby.iapi.types.DataValueFactory dvf, boolean convertIdToLower)
           
 
Method Summary
 org.apache.derby.iapi.sql.dictionary.SystemColumn[] buildColumnList()
          Builds a list of columns suitable for creating this Catalog.
 org.apache.derby.iapi.sql.dictionary.TupleDescriptor buildDescriptor(org.apache.derby.iapi.sql.execute.ExecRow row, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parentTupleDescriptor, org.apache.derby.iapi.sql.dictionary.DataDictionary dd)
          Make an Tuple Descriptor out of a SYSTRIGGERS row
 org.apache.derby.iapi.sql.execute.ExecIndexRow buildEmptyIndexRow(int indexNumber, org.apache.derby.iapi.types.RowLocation rowLocation)
          Builds an empty index row.
private  boolean getCharBoolean(org.apache.derby.iapi.types.DataValueDescriptor col, char trueValue, char falseValue)
           
 int heapColumnCount()
           
 org.apache.derby.iapi.sql.execute.ExecRow makeRow(org.apache.derby.iapi.sql.dictionary.TupleDescriptor td, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parent)
          Make a SYSTRIGGERS row.
 
Methods inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
checkIndexNumber, convertIdCase, generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnNames, 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

indexColumnNames

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

uniqueness

private static final boolean[] uniqueness

uuids

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

SYSTRIGGERSRowFactory

public SYSTRIGGERSRowFactory(org.apache.derby.iapi.services.uuid.UUIDFactory uuidf,
                             org.apache.derby.iapi.sql.execute.ExecutionFactory ef,
                             org.apache.derby.iapi.types.DataValueFactory dvf,
                             boolean convertIdToLower)
Method Detail

makeRow

public org.apache.derby.iapi.sql.execute.ExecRow makeRow(org.apache.derby.iapi.sql.dictionary.TupleDescriptor td,
                                                         org.apache.derby.iapi.sql.dictionary.TupleDescriptor parent)
                                                  throws org.apache.derby.iapi.error.StandardException
Make a SYSTRIGGERS row.


buildEmptyIndexRow

public org.apache.derby.iapi.sql.execute.ExecIndexRow buildEmptyIndexRow(int indexNumber,
                                                                         org.apache.derby.iapi.types.RowLocation rowLocation)
                                                                  throws org.apache.derby.iapi.error.StandardException
Builds an empty index row.


buildDescriptor

public org.apache.derby.iapi.sql.dictionary.TupleDescriptor buildDescriptor(org.apache.derby.iapi.sql.execute.ExecRow row,
                                                                            org.apache.derby.iapi.sql.dictionary.TupleDescriptor parentTupleDescriptor,
                                                                            org.apache.derby.iapi.sql.dictionary.DataDictionary dd)
                                                                     throws org.apache.derby.iapi.error.StandardException
Make an Tuple Descriptor out of a SYSTRIGGERS row


buildColumnList

public org.apache.derby.iapi.sql.dictionary.SystemColumn[] 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.


heapColumnCount

public int heapColumnCount()

getCharBoolean

private boolean getCharBoolean(org.apache.derby.iapi.types.DataValueDescriptor col,
                               char trueValue,
                               char falseValue)
                        throws org.apache.derby.iapi.error.StandardException