public class SYSTRIGGERSRowFactory extends CatalogRowFactory
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
Constructor | Description |
---|---|
SYSTRIGGERSRowFactory(DataDictionary dd,
UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf) |
Modifier and Type | Method | Description |
---|---|---|
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 java.util.Calendar |
getCalendarForCreationTimestamp() |
Get a calendar instance with the correct time zone for storing and
retrieving creation timestamps.
|
private boolean |
getCharBoolean(DataValueDescriptor col,
char trueValue,
char falseValue) |
|
int |
getHeapColumnCount() |
Get the number of columns in the heap.
|
ExecRow |
makeEmptyRowForCurrentVersion() |
Create an empty row for this conglomerate, in the format that would
be used in a database that was created with, or hard upgraded to,
the currently running version.
|
private ExecRow |
makeRow(TupleDescriptor td,
int columnCount) |
Helper method that contains common logic for
makeRow() and
makeEmptyRowForCurrentVersion() . |
ExecRow |
makeRow(TupleDescriptor td,
TupleDescriptor parent) |
Make a SYSTRIGGERS row.
|
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getPrimaryKeyIndexNumber, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow
static final java.lang.String TABLENAME_STRING
public static final int SYSTRIGGERS_TRIGGERID
public static final int SYSTRIGGERS_TRIGGERNAME
public static final int SYSTRIGGERS_SCHEMAID
public static final int SYSTRIGGERS_CREATIONTIMESTAMP
public static final int SYSTRIGGERS_EVENT
public static final int SYSTRIGGERS_FIRINGTIME
public static final int SYSTRIGGERS_TYPE
public static final int SYSTRIGGERS_STATE
public static final int SYSTRIGGERS_TABLEID
public static final int SYSTRIGGERS_WHENSTMTID
public static final int SYSTRIGGERS_ACTIONSTMTID
public static final int SYSTRIGGERS_REFERENCEDCOLUMNS
public static final int SYSTRIGGERS_TRIGGERDEFINITION
public static final int SYSTRIGGERS_REFERENCINGOLD
public static final int SYSTRIGGERS_REFERENCINGNEW
public static final int SYSTRIGGERS_OLDREFERENCINGNAME
public static final int SYSTRIGGERS_NEWREFERENCINGNAME
public static final int SYSTRIGGERS_WHENCLAUSETEXT
public static final int SYSTRIGGERS_COLUMN_COUNT
public static final int SYSTRIGGERS_INDEX1_ID
public static final int SYSTRIGGERS_INDEX2_ID
public static final int SYSTRIGGERS_INDEX3_ID
private static final int[][] indexColumnPositions
private static final boolean[] uniqueness
private static final java.lang.String[] uuids
private static final java.util.TimeZone UTC
private final DataDictionary dataDictionary
SYSTRIGGERSRowFactory(DataDictionary dd, UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf) throws StandardException
StandardException
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
makeRow
in class CatalogRowFactory
StandardException
- thrown on failurepublic ExecRow makeEmptyRowForCurrentVersion() throws StandardException
CatalogRowFactory
Create an empty row for this conglomerate, in the format that would be used in a database that was created with, or hard upgraded to, the currently running version. That is, even if the database is only soft-upgraded, this method should return a row in the new format.
This method is for use in code that creates the catalogs, or that
upgrades the format of the catalogs to the newest version. Other code
should call CatalogRowFactory.makeEmptyRow()
, which returns a row in the format
used in the old database version if the database is soft-upgraded.
makeEmptyRowForCurrentVersion
in class CatalogRowFactory
StandardException
- if an error happens when creating the rowprivate ExecRow makeRow(TupleDescriptor td, int columnCount) throws StandardException
makeRow()
and
makeEmptyRowForCurrentVersion()
. Creates a row for the
SYSTRIGGERS conglomerate.td
- the TriggerDescriptor
to create a row from (can be
null
if the returned row should be empty)columnCount
- the number of columns in the returned row (used for
trimming off columns in soft upgrade mode to match the format in
the old dictionary version)StandardException
- if an error happens when creating the rowprivate java.util.Calendar getCalendarForCreationTimestamp() throws StandardException
StandardException
- if an error occurspublic TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException
buildDescriptor
in class CatalogRowFactory
row
- a SYSTRIGGERS rowparentTupleDescriptor
- unuseddd
- dataDictionaryStandardException
- thrown on failurepublic SystemColumn[] buildColumnList() throws StandardException
buildColumnList
in class CatalogRowFactory
StandardException
private boolean getCharBoolean(DataValueDescriptor col, char trueValue, char falseValue) throws StandardException
StandardException
public int getHeapColumnCount() throws StandardException
CatalogRowFactory
getHeapColumnCount
in class CatalogRowFactory
StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.