|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.GenericConstantActionFactory
Factory for creating ConstantActions.
Implemetation note: For most operations, the ResultSetFactory determines if the operation is allowed in a readonly/target database. Because we perform JAR add/drop/replace with a utility rather than using normal language processing we never get a result set for these operations. For this reason, the ConstantActionFactory rather than the ResultSetFactory checks if the these operations are allowed.
Constructor Summary | |
GenericConstantActionFactory()
|
Method Summary | |
ConstantAction |
getAddJarConstantAction(UUID id,
java.lang.String schemaName,
java.lang.String sqlName,
java.lang.String externalPath)
Make the ConstantAction to Add a jar file to a database. |
ConstantAction |
getAlterTableConstantAction(SchemaDescriptor sd,
java.lang.String tableName,
UUID tableId,
long tableConglomerateId,
int tableType,
ColumnInfo[] columnInfo,
ConstraintConstantAction[] constraintActions,
char lockGranularity,
boolean compressTable,
int behavior,
boolean sequential,
boolean truncateTable)
Make the AlterAction for an ALTER TABLE statement. |
protected static Authorizer |
getAuthorizer()
|
ConstantAction |
getCreateAliasConstantAction(java.lang.String aliasName,
java.lang.String schemaName,
java.lang.String javaClassName,
AliasInfo aliasInfo,
char aliasType)
Make the ConstantAction for a CREATE ALIAS statement. |
CreateConstraintConstantAction |
getCreateConstraintConstantAction(java.lang.String constraintName,
int constraintType,
java.lang.String tableName,
UUID tableId,
java.lang.String schemaName,
java.lang.String[] columnNames,
IndexConstantAction indexAction,
java.lang.String constraintText,
boolean enabled,
ConstraintInfo otherConstraint,
ProviderInfo[] providerInfo)
Make a ConstantAction for a constraint. |
CreateIndexConstantAction |
getCreateIndexConstantAction(boolean unique,
java.lang.String indexType,
java.lang.String schemaName,
java.lang.String indexName,
java.lang.String tableName,
UUID tableId,
long conglomId,
java.lang.String[] columnNames,
boolean[] isAscending,
boolean isConstraint,
UUID conglomerateUUID,
java.util.Properties properties)
Make the ConstantAction for a CREATE INDEX statement. |
ConstantAction |
getCreateSchemaConstantAction(java.lang.String schemaName,
java.lang.String aid)
Make the ConstantAction for a CREATE SCHEMA statement. |
ConstantAction |
getCreateTableConstantAction(java.lang.String schemaName,
java.lang.String tableName,
int tableType,
ColumnInfo[] columnInfo,
CreateConstraintConstantAction[] constraintActions,
java.util.Properties properties,
char lockGranularity,
boolean onCommitDeleteRows,
boolean onRollbackDeleteRows)
Make the ConstantAction for a CREATE TABLE statement. |
ConstantAction |
getCreateTriggerConstantAction(java.lang.String triggerSchemaName,
java.lang.String triggerName,
int eventMask,
boolean isBefore,
boolean isRow,
boolean isEnabled,
TableDescriptor triggerTable,
UUID whenSPSId,
java.lang.String whenText,
UUID actionSPSId,
java.lang.String actionText,
UUID spsCompSchemaId,
java.sql.Timestamp creationTimestamp,
int[] referencedCols,
java.lang.String originalActionText,
boolean referencingOld,
boolean referencingNew,
java.lang.String oldReferencingName,
java.lang.String newReferencingName)
Make the ConstantAction for a CREATE TRIGGER statement. |
ConstantAction |
getCreateViewConstantAction(java.lang.String schemaName,
java.lang.String tableName,
int tableType,
java.lang.String viewText,
int checkOption,
ColumnInfo[] columnInfo,
ProviderInfo[] providerInfo,
UUID compSchemaId)
Make the ConstantAction for a CREATE VIEW statement. |
ConstantAction |
getDeleteConstantAction(long conglomId,
int tableType,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
ExecRow emptyHeapRow,
boolean deferred,
boolean tableIsPublished,
UUID tableID,
int lockMode,
java.lang.Object deleteToken,
java.lang.Object keySignature,
int[] keyPositions,
long keyConglomId,
java.lang.String schemaName,
java.lang.String tableName,
ResultDescription resultDescription,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
FormatableBitSet baseRowReadList,
int[] baseRowReadMap,
int[] streamStorableHeapColIds,
int numColumns,
UUID dependencyId,
boolean singleRowSource,
ConstantAction[] dependentConstantActions)
Make the ConstantAction for a Replicated DELETE statement. |
ConstantAction |
getDropAliasConstantAction(SchemaDescriptor sd,
java.lang.String aliasName,
char aliasType)
Make the ConstantAction for a DROP ALIAS statement. |
ConstraintConstantAction |
getDropConstraintConstantAction(java.lang.String constraintName,
java.lang.String constraintSchemaName,
java.lang.String tableName,
UUID tableId,
java.lang.String tableSchemaName,
IndexConstantAction indexAction,
int behavior,
int verifyType)
Make ConstantAction to drop a constraint. |
DropIndexConstantAction |
getDropIndexConstantAction(java.lang.String fullIndexName,
java.lang.String indexName,
java.lang.String tableName,
java.lang.String schemaName,
UUID tableId,
long tableConglomerateId)
Make the ConstantAction for a DROP INDEX statement. |
ConstantAction |
getDropJarConstantAction(UUID id,
java.lang.String schemaName,
java.lang.String sqlName)
Make the ConstantAction to drop a jar file from a database. |
ConstantAction |
getDropSchemaConstantAction(java.lang.String schemaName)
Make the ConstantAction for a DROP TABLE statement. |
ConstantAction |
getDropStatisticsConstantAction(SchemaDescriptor sd,
java.lang.String fullTableName,
java.lang.String objectName,
boolean forTable)
Make the constant action for Drop Statistics statement. |
ConstantAction |
getDropTableConstantAction(java.lang.String fullTableName,
java.lang.String tableName,
SchemaDescriptor sd,
long conglomerateNumber,
UUID tableId,
int behavior)
Make the ConstantAction for a DROP TABLE statement. |
ConstantAction |
getDropTriggerConstantAction(SchemaDescriptor sd,
java.lang.String triggerName,
UUID tableId)
Make the ConstantAction for a DROP TRIGGER statement. |
ConstantAction |
getDropViewConstantAction(java.lang.String fullTableName,
java.lang.String tableName,
SchemaDescriptor sd)
Make the ConstantAction for a DROP VIEW statement. |
ConstantAction |
getInsertConstantAction(TableDescriptor tableDescriptor,
long conglomId,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
java.lang.String[] indexNames,
boolean deferred,
boolean tableIsPublished,
UUID tableID,
int lockMode,
java.lang.Object insertToken,
java.lang.Object rowSignature,
java.util.Properties targetProperties,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
int[] streamStorableHeapColIds,
boolean[] indexedCols,
UUID dependencyId,
java.lang.Object[] stageControl,
java.lang.Object[] ddlList,
boolean singleRowSource,
RowLocation[] autoincRowLocation)
Make the ConstantAction for a Replicated INSERT statement. |
ConstantAction |
getLockTableConstantAction(java.lang.String fullTableName,
long conglomerateNumber,
boolean exclusiveMode)
Make the ConstantAction for a LOCK TABLE statement. |
ConstantAction |
getRenameConstantAction(java.lang.String fullTableName,
java.lang.String tableName,
java.lang.String oldObjectName,
java.lang.String newObjectName,
SchemaDescriptor sd,
UUID tableId,
boolean usedAlterTable,
int renamingWhat)
Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement. |
ConstantAction |
getReplaceJarConstantAction(UUID id,
java.lang.String schemaName,
java.lang.String sqlName,
java.lang.String externalPath)
Make the ConstantAction to replace a jar file in a database. |
ConstantAction |
getSavepointConstantAction(java.lang.String savepointName,
int statementType)
Make the ConstantAction for a savepoint statement (ROLLBACK savepoint, RELASE savepoint and SAVEPOINT). |
ConstantAction |
getSetConstraintsConstantAction(ConstraintDescriptorList cdl,
boolean enable,
boolean unconditionallyEnforce,
java.lang.Object[] ddlList)
Get ConstantAction for SET CONSTRAINTS statement. |
ConstantAction |
getSetSchemaConstantAction(java.lang.String schemaName,
int type)
Make the ConstantAction for a SET SCHEMA statement. |
ConstantAction |
getSetTransactionIsolationConstantAction(int isolationLevel)
Make the ConstantAction for a SET TRANSACTION ISOLATION statement. |
ConstantAction |
getUpdatableVTIConstantAction(int statementType,
boolean deferred)
Make the ConstantAction for an updatable VTI statement. |
ConstantAction |
getUpdatableVTIConstantAction(int statementType,
boolean deferred,
int[] changedColumnIds)
Make the ConstantAction for an updatable VTI statement. |
UpdateConstantAction |
getUpdateConstantAction(long conglomId,
int tableType,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
java.lang.String[] indexNames,
ExecRow emptyHeapRow,
boolean deferred,
UUID targetUUID,
int lockMode,
boolean tableIsPublished,
int[] changedColumnIds,
int[] keyPositions,
java.lang.Object updateToken,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
FormatableBitSet baseRowReadList,
int[] baseRowReadMap,
int[] streamStorableHeapColIds,
int numColumns,
boolean positionedUpdate,
boolean singleRowSource)
Make the ConstantAction for a Replicated DELETE statement. |
ConstantAction |
getUpdateStatisticsConstantAction(boolean forTable,
java.lang.String objectName,
UUID tableUUID,
UUID[] objectUUID,
long[] conglomerateNumber,
ExecIndexRow[] indexRow)
Make the constant action for a UPDATE STATISTICS statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericConstantActionFactory()
Method Detail |
public ConstantAction getSetConstraintsConstantAction(ConstraintDescriptorList cdl, boolean enable, boolean unconditionallyEnforce, java.lang.Object[] ddlList)
cdl
- the constraints to set, if null,
we'll go ahead and set them allenable
- if true, turn them on, if false
disable themunconditionallyEnforce
- Replication sets this to true at
the end of REFRESH. This forces us
to run the included foreign key constraints even
if they're already marked ENABLED.ddlList
- Replication list of actions to propagate,
null unless a replication sourcepublic ConstantAction getAlterTableConstantAction(SchemaDescriptor sd, java.lang.String tableName, UUID tableId, long tableConglomerateId, int tableType, ColumnInfo[] columnInfo, ConstraintConstantAction[] constraintActions, char lockGranularity, boolean compressTable, int behavior, boolean sequential, boolean truncateTable)
sd
- descriptor for the schema that table lives in.tableName
- Name of table.tableId
- UUID of table.tableConglomerateId
- heap conglomerate id of tabletableType
- Type of table (e.g., BASE).columnInfo
- Information on all the columns in the table.constraintActions
- ConstraintConstantAction[] for constraintslockGranularity
- The lock granularity.compressTable
- Whether or not this is a compress tablebehavior
- drop behavior of dropping columnsequential
- If compress table/drop column, whether or not sequentialpublic CreateConstraintConstantAction getCreateConstraintConstantAction(java.lang.String constraintName, int constraintType, java.lang.String tableName, UUID tableId, java.lang.String schemaName, java.lang.String[] columnNames, IndexConstantAction indexAction, java.lang.String constraintText, boolean enabled, ConstraintInfo otherConstraint, ProviderInfo[] providerInfo)
constraintName
- Constraint name.constraintType
- Constraint type.tableName
- Table name.tableId
- UUID of table.schemaName
- Schema that table lives in.columnNames
- String[] for column namesindexAction
- IndexConstantAction for constraint (if necessary)constraintText
- Text for check constraint
RESOLVE - the next parameter should go away once we use UUIDs
(Generated constraint names will be based off of uuids)enabled
- Should the constraint be created as enabled
(enabled == true), or disabled (enabled == false).providerInfo
- Information on all the Providerspublic CreateIndexConstantAction getCreateIndexConstantAction(boolean unique, java.lang.String indexType, java.lang.String schemaName, java.lang.String indexName, java.lang.String tableName, UUID tableId, long conglomId, java.lang.String[] columnNames, boolean[] isAscending, boolean isConstraint, UUID conglomerateUUID, java.util.Properties properties)
unique
- True means it will be a unique indexindexType
- The type of index (BTREE, for example)schemaName
- the schema that table (and index) lives in.indexName
- Name of the indextableName
- Name of table the index will be ontableId
- UUID of table.conglomId
- Conglomerate ID of the index, if known in advancecolumnNames
- Names of the columns in the index, in orderisAscending
- Array of booleans telling asc/desc on each columnisConstraint
- TRUE if index is backing up a constraint, else FALSEconglomerateUUID
- ID of conglomerateproperties
- The optional properties list associated with the index.public ConstantAction getCreateAliasConstantAction(java.lang.String aliasName, java.lang.String schemaName, java.lang.String javaClassName, AliasInfo aliasInfo, char aliasType)
aliasName
- Name of alias.schemaName
- Alias's schema.javaClassName
- Name of java class.aliasType
- The alias typepublic ConstantAction getCreateSchemaConstantAction(java.lang.String schemaName, java.lang.String aid)
schemaName
- Name of table.aid
- Authorizaton idpublic ConstantAction getCreateTableConstantAction(java.lang.String schemaName, java.lang.String tableName, int tableType, ColumnInfo[] columnInfo, CreateConstraintConstantAction[] constraintActions, java.util.Properties properties, char lockGranularity, boolean onCommitDeleteRows, boolean onRollbackDeleteRows)
schemaName
- name for the schema that table lives in.tableName
- Name of table.tableType
- Type of table (e.g., BASE, global temporary table).columnInfo
- Information on all the columns in the table.
(REMIND tableDescriptor ignored)constraintActions
- CreateConstraintConstantAction[] for constraintsproperties
- Optional table propertieslockGranularity
- The lock granularity.onCommitDeleteRows
- If true, on commit delete rows else on commit preserve rows of temporary table.onRollbackDeleteRows
- If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported valuepublic ConstantAction getSavepointConstantAction(java.lang.String savepointName, int statementType)
savepointName
- name for the savepoint.statementType
- Type of savepoint statement ie rollback, release or set savepointpublic ConstantAction getCreateViewConstantAction(java.lang.String schemaName, java.lang.String tableName, int tableType, java.lang.String viewText, int checkOption, ColumnInfo[] columnInfo, ProviderInfo[] providerInfo, UUID compSchemaId)
tableName
- Name of table.tableType
- Type of table (e.g., BASE).viewText
- Text of query expression for view definitioncheckOption
- Check option typecolumnInfo
- Information on all the columns in the table.providerInfo
- Information on all the ProviderscompSchemaId
- ID of schema in which the view is to be bound
when accessed in the future.
(REMIND tableDescriptor ignored)public ConstantAction getDeleteConstantAction(long conglomId, int tableType, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, ExecRow emptyHeapRow, boolean deferred, boolean tableIsPublished, UUID tableID, int lockMode, java.lang.Object deleteToken, java.lang.Object keySignature, int[] keyPositions, long keyConglomId, java.lang.String schemaName, java.lang.String tableName, ResultDescription resultDescription, FKInfo[] fkInfo, TriggerInfo triggerInfo, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, int numColumns, UUID dependencyId, boolean singleRowSource, ConstantAction[] dependentConstantActions) throws StandardException
conglomId
- Conglomerate ID.tableType
- type of this tableheapSCOCI
- StaticCompiledOpenConglomInfo for heap.irgs
- Index descriptorsindexCIDS
- Conglomerate IDs of indicesindexSCOCIs
- StaticCompiledOpenConglomInfos for indexes.emptyHeapRow
- Template for heap row.deferred
- True means deferred deletetableIsPublished
- true if table is publishedtableID
- table idlockMode
- The lock mode to use
(row or table, see TransactionController)keySignature
- signature for the key(null for source)keyPositions
- positions of primary key columns in base rowkeyConglomId
- conglomerate id for the key
(-1 for the souce)schemaName
- schemaName(null for source)tableName
- tableName(null for source)resultDescription
- A description of the columns in the row
to be deleted. Only set in replication or during cascade Delete.fkInfo
- Array of structures containing foreign key
info, if any (may be null)triggerInfo
- Array of structures containing trigger
info, if any (may be null)numColumns
- Number of columns to readdependencyId
- UUID for dependency systembaseRowReadList
- Map of columns read in. 1 based.baseRowReadMap
- BaseRowReadMap[heapColId]->ReadRowColumnId.streamStorableHeapColIds
- Null for non rep. (0 based)singleRowSource
- Whether or not source is a single row source
StandardException
- Thrown on failurepublic ConstraintConstantAction getDropConstraintConstantAction(java.lang.String constraintName, java.lang.String constraintSchemaName, java.lang.String tableName, UUID tableId, java.lang.String tableSchemaName, IndexConstantAction indexAction, int behavior, int verifyType)
constraintName
- Constraint name.constraintSchemaName
- Constraint Schema NametableName
- Table name.tableId
- UUID of table.tableSchemaName
- the schema that table lives in.indexAction
- IndexConstantAction for constraint (if necessary)behavior
- The drop behavior (e.g. StatementType.RESTRICT)verifyType
- Verify that the constraint is of this type.public DropIndexConstantAction getDropIndexConstantAction(java.lang.String fullIndexName, java.lang.String indexName, java.lang.String tableName, java.lang.String schemaName, UUID tableId, long tableConglomerateId)
fullIndexName
- Fully qualified index nameindexName
- Index name.tableName
- The table nameschemaName
- Schema that index lives in.tableId
- UUID for tabletableConglomerateId
- heap conglomerate ID for tablepublic ConstantAction getDropAliasConstantAction(SchemaDescriptor sd, java.lang.String aliasName, char aliasType)
aliasName
- Alias name.aliasType
- Alias type.public ConstantAction getDropSchemaConstantAction(java.lang.String schemaName)
schemaName
- Table name.public ConstantAction getDropTableConstantAction(java.lang.String fullTableName, java.lang.String tableName, SchemaDescriptor sd, long conglomerateNumber, UUID tableId, int behavior)
fullTableName
- Fully qualified table nametableName
- Table name.sd
- Schema that table lives in.tableId
- UUID for tablebehavior
- drop behavior, CASCADE, RESTRICT or DEFAULTpublic ConstantAction getDropViewConstantAction(java.lang.String fullTableName, java.lang.String tableName, SchemaDescriptor sd)
fullTableName
- Fully qualified table nametableName
- Table name.sd
- Schema that view lives in.public ConstantAction getRenameConstantAction(java.lang.String fullTableName, java.lang.String tableName, java.lang.String oldObjectName, java.lang.String newObjectName, SchemaDescriptor sd, UUID tableId, boolean usedAlterTable, int renamingWhat)
fullTableName
- Fully qualified table nametableName
- Table name.oldObjectName
- Old object namenewObjectName
- New object name.sd
- Schema that table lives in.tableId
- UUID for tableusedAlterTable
- True if used Alter Table command, false if used RenamerenamingWhat
- Value indicates if Rename Column/Index.public ConstantAction getInsertConstantAction(TableDescriptor tableDescriptor, long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, java.lang.String[] indexNames, boolean deferred, boolean tableIsPublished, UUID tableID, int lockMode, java.lang.Object insertToken, java.lang.Object rowSignature, java.util.Properties targetProperties, FKInfo[] fkInfo, TriggerInfo triggerInfo, int[] streamStorableHeapColIds, boolean[] indexedCols, UUID dependencyId, java.lang.Object[] stageControl, java.lang.Object[] ddlList, boolean singleRowSource, RowLocation[] autoincRowLocation) throws StandardException
conglomId
- Conglomerate ID.heapSCOCI
- StaticCompiledOpenConglomInfo for target heap.irgs
- Index descriptorsindexCIDS
- Conglomerate IDs of indicesindexSCOCIs
- StaticCompiledOpenConglomInfos for indexes.indexNames
- Names of indices on this table for error
reporting.deferred
- True means deferred inserttableIsPublished
- true if table is published, false otherwisetableID
- table idtargetProperties
- Properties on the target tablefkInfo
- Array of structures containing foreign key info,
if any (may be null)triggerInfo
- Array of structures containing trigger info,streamStorableHeapColIds
- Null for non rep. (0 based)
if any (may be null)indexedCols
- boolean[] of which (0-based) columns are indexed.dependencyId
- UUID for dependency systemstageControl
- Stage Control TokensddlList
- List of DDL to log. This is for BULK INSERT into a published table at the Source.singleRowSource
- Whether or not source is a single row sourceautoincRowLocation
- array of row locations into syscolumns for
autoincrement columns
StandardException
- Thrown on failurepublic ConstantAction getUpdatableVTIConstantAction(int statementType, boolean deferred) throws StandardException
deferred
- Deferred mode?
StandardException
- Thrown on failurepublic ConstantAction getUpdatableVTIConstantAction(int statementType, boolean deferred, int[] changedColumnIds) throws StandardException
deferred
- Deferred mode?changedColumnIds
- Array of ids of changed columns
StandardException
- Thrown on failurepublic ConstantAction getLockTableConstantAction(java.lang.String fullTableName, long conglomerateNumber, boolean exclusiveMode)
fullTableName
- Full name of the table.conglomerateNumber
- Conglomerate number for the heapexclusiveMode
- Whether or not to get an exclusive lock.public ConstantAction getSetSchemaConstantAction(java.lang.String schemaName, int type)
schemaName
- Name of schema.type
- Literal, USER or ?public ConstantAction getSetTransactionIsolationConstantAction(int isolationLevel)
isolationLevel
- The new isolation level.public UpdateConstantAction getUpdateConstantAction(long conglomId, int tableType, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, java.lang.String[] indexNames, ExecRow emptyHeapRow, boolean deferred, UUID targetUUID, int lockMode, boolean tableIsPublished, int[] changedColumnIds, int[] keyPositions, java.lang.Object updateToken, FKInfo[] fkInfo, TriggerInfo triggerInfo, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, int numColumns, boolean positionedUpdate, boolean singleRowSource) throws StandardException
conglomId
- Conglomerate ID.tableType
- type of this tableheapSCOCI
- StaticCompiledOpenConglomInfo for heap.irgs
- Index descriptorsindexCIDS
- Conglomerate IDs of indicesindexSCOCIs
- StaticCompiledOpenConglomInfos for indexes.emptyHeapRow
- Template for heap row.deferred
- True means deferred updatetargetUUID
- UUID of target tablelockMode
- The lock mode to use
(row or table, see TransactionController)tableIsPublished
- true if table is published, false otherwisechangedColumnIds
- Array of ids of changes columnskeyPositions
- positions of primary key columns in base rowfkInfo
- Array of structures containing foreign key info,
if any (may be null)triggerInfo
- Array of structures containing trigger info,baseRowReadList
- Map of columns read in. 1 based.streamStorableHeapColIds
- Null for non rep. (0 based)
if any (may be null)baseRowReadMap
- map of columns to be selected from the base row
(partial row). 1 based.numColumns
- The number of columns being read.positionedUpdate
- is this a positioned updatesingleRowSource
- Whether or not source is a single row source
StandardException
- Thrown on failurepublic ConstantAction getAddJarConstantAction(UUID id, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath) throws StandardException
id
- The id for the jar file -
(null means create one)schemaName
- The SchemaName for the jar file.sqlName
- The sqlName for the jar file.
StandardException
- Ooopspublic ConstantAction getReplaceJarConstantAction(UUID id, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath) throws StandardException
id
- The id for the jar file -
(Ignored if null)schemaName
- The SchemaName for the jar file.sqlName
- The sqlName for the jar file.
StandardException
- Ooopspublic ConstantAction getDropJarConstantAction(UUID id, java.lang.String schemaName, java.lang.String sqlName) throws StandardException
id
- The id for the jar file -
(Ignored if null)schemaName
- The SchemaName for the jar file.sqlName
- The sqlName for the jar file.
StandardException
- Ooopsprotected static Authorizer getAuthorizer()
public ConstantAction getCreateTriggerConstantAction(java.lang.String triggerSchemaName, java.lang.String triggerName, int eventMask, boolean isBefore, boolean isRow, boolean isEnabled, TableDescriptor triggerTable, UUID whenSPSId, java.lang.String whenText, UUID actionSPSId, java.lang.String actionText, UUID spsCompSchemaId, java.sql.Timestamp creationTimestamp, int[] referencedCols, java.lang.String originalActionText, boolean referencingOld, boolean referencingNew, java.lang.String oldReferencingName, java.lang.String newReferencingName)
triggerName
- Name of triggereventMask
- TriggerDescriptor.TRIGGER_EVENT_XXXXisBefore
- is this a before (as opposed to after) triggerisRow
- is this a row trigger or statement triggerisEnabled
- is this trigger enabled or disabledtriggerTable
- the table upon which this trigger is definedwhenSPSId
- the sps id for the when clause (may be null)whenText
- the text of the when clause (may be null)actionSPSId
- the spsid for the trigger action (may be null)actionText
- the text of the trigger action (may be null)spsCompSchemaId
- the compilation schema for the action and when
spses. If null, will be set to the current default
schemacreationTimestamp
- when was this trigger created? if null, will be
set to the time that executeConstantAction() is invokedreferencedCols
- what columns does this trigger reference (may be null)originalActionText
- The original user text of the trigger actionreferencingOld
- whether or not OLD appears in REFERENCING clausereferencingNew
- whether or not NEW appears in REFERENCING clauseoldReferencingName
- old referencing table name, if any, that appears in REFERCING clausenewReferencingName
- new referencing table name, if any, that appears in REFERCING clausepublic ConstantAction getDropTriggerConstantAction(SchemaDescriptor sd, java.lang.String triggerName, UUID tableId)
sd
- Schema that stored prepared statement lives in.triggerName
- Name of the TriggertableId
- The table this trigger is defined uponpublic ConstantAction getUpdateStatisticsConstantAction(boolean forTable, java.lang.String objectName, UUID tableUUID, UUID[] objectUUID, long[] conglomerateNumber, ExecIndexRow[] indexRow)
forTable
- whether for an index or table.objectName
- name of the object (either table or index) for which
this statistic is being created.tableUUID
- UUID of the table for which statistics are being
created.objectUUID
- array of UUID's, one for each index conglomerate for
which statistics are being created.conglomerateNumber
- array of conglomerate numbers, one for each
index conglomerate for which statistics are being created.indexRow
- array of index rows, one for each index. This row is
used by the constant action to read data from the indices.public ConstantAction getDropStatisticsConstantAction(SchemaDescriptor sd, java.lang.String fullTableName, java.lang.String objectName, boolean forTable)
sd
- Schema Descriptor of the schema in which the object
resides.fullTableName
- full name of the object for which statistics are
being dropped.objectName
- object name for which statistics are being dropped.forTable
- is it an index or table whose statistics aer being
consigned to the garbage heap?
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |