org.apache.derby.impl.sql.catalog
Class SYSTRIGGERSRowFactory
- java.lang.Object
-
- org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
-
- org.apache.derby.impl.sql.catalog.SYSTRIGGERSRowFactory
-
public class SYSTRIGGERSRowFactory extends CatalogRowFactory
Factory for creating a SYSTRIGGERS row.
-
-
Field Summary
Fields Modifier and Type Field and Description static intSYSTRIGGERS_ACTIONSTMTIDstatic intSYSTRIGGERS_COLUMN_COUNTstatic intSYSTRIGGERS_CREATIONTIMESTAMPstatic intSYSTRIGGERS_EVENTstatic intSYSTRIGGERS_FIRINGTIMEstatic intSYSTRIGGERS_INDEX1_IDstatic intSYSTRIGGERS_INDEX2_IDstatic intSYSTRIGGERS_INDEX3_IDstatic intSYSTRIGGERS_NEWREFERENCINGNAMEstatic intSYSTRIGGERS_OLDREFERENCINGNAMEstatic intSYSTRIGGERS_REFERENCEDCOLUMNSstatic intSYSTRIGGERS_REFERENCINGNEWstatic intSYSTRIGGERS_REFERENCINGOLDstatic intSYSTRIGGERS_SCHEMAIDstatic intSYSTRIGGERS_STATEstatic intSYSTRIGGERS_TABLEIDstatic intSYSTRIGGERS_TRIGGERDEFINITIONstatic intSYSTRIGGERS_TRIGGERIDstatic intSYSTRIGGERS_TRIGGERNAMEstatic intSYSTRIGGERS_TYPEstatic intSYSTRIGGERS_WHENCLAUSETEXTstatic intSYSTRIGGERS_WHENSTMTID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SystemColumn[]buildColumnList()Builds a list of columns suitable for creating this Catalog.TupleDescriptorbuildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd)Make an Tuple Descriptor out of a SYSTRIGGERS rowintgetHeapColumnCount()Get the number of columns in the heap.ExecRowmakeEmptyRowForCurrentVersion()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.ExecRowmakeRow(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, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getPrimaryKeyIndexNumber, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow
-
-
-
-
Field Detail
-
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_WHENCLAUSETEXT
public static final int SYSTRIGGERS_WHENCLAUSETEXT
- 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
-
-
Method Detail
-
makeRow
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
Make a SYSTRIGGERS row.- Overrides:
makeRowin classCatalogRowFactory- Returns:
- Row suitable for inserting into SYSTRIGGERS.
- Throws:
StandardException- thrown on failure
-
makeEmptyRowForCurrentVersion
public ExecRow makeEmptyRowForCurrentVersion() throws StandardException
Description copied from class:CatalogRowFactoryCreate 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.- Overrides:
makeEmptyRowForCurrentVersionin classCatalogRowFactory- Returns:
- an empty row
- Throws:
StandardException- if an error happens when creating the row
-
buildDescriptor
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException
Make an Tuple Descriptor out of a SYSTRIGGERS row- Specified by:
buildDescriptorin classCatalogRowFactory- Parameters:
row- a SYSTRIGGERS rowparentTupleDescriptor- unuseddd- 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:
buildColumnListin classCatalogRowFactory- Returns:
- array of SystemColumn suitable for making this catalog.
- Throws:
StandardException
-
getHeapColumnCount
public int getHeapColumnCount() throws StandardExceptionDescription copied from class:CatalogRowFactoryGet the number of columns in the heap.- Overrides:
getHeapColumnCountin classCatalogRowFactory- Returns:
- The number of columns in the heap.
- Throws:
StandardException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG