📄 genericconstantactionfactory.java
字号:
ColumnInfo[] columnInfo, ProviderInfo[] providerInfo, UUID compSchemaId) { return new CreateViewConstantAction( schemaName, tableName, tableType, viewText, checkOption, columnInfo, providerInfo, compSchemaId ); } /** * Make the ConstantAction for a Replicated DELETE statement. * * @param conglomId Conglomerate ID. * @param tableType type of this table * @param heapSCOCI StaticCompiledOpenConglomInfo for heap. * @param irgs Index descriptors * @param indexCIDS Conglomerate IDs of indices * @param indexSCOCIs StaticCompiledOpenConglomInfos for indexes. * @param emptyHeapRow Template for heap row. * @param deferred True means deferred delete * @param tableIsPublished true if table is published * @param tableID table id * @param lockMode The lock mode to use * (row or table, see TransactionController) * @param deleteUndoable undoable for the delete * @param endRowsUndoable undoable for the end rows token * @param endStatementUndoable undoable for the end statement token * @param keySignature signature for the key(null for source) * @param keyPositions positions of primary key columns in base row * @param keyConglomId conglomerate id for the key * (-1 for the souce) * @param schemaName schemaName(null for source) * @param tableName tableName(null for source) * @param resultDescription A description of the columns in the row * to be deleted. Only set in replication or during cascade Delete. * @param fkInfo Array of structures containing foreign key * info, if any (may be null) * @param triggerInfo Array of structures containing trigger * info, if any (may be null) * @param numColumns Number of columns to read * @param dependencyId UUID for dependency system * @param baseRowReadList Map of columns read in. 1 based. * @param baseRowReadMap BaseRowReadMap[heapColId]->ReadRowColumnId. * @param streamStorableHeapColIds Null for non rep. (0 based) * @param singleRowSource Whether or not source is a single row source * * @exception StandardException Thrown on failure */ 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, Object deleteToken, Object keySignature, int[] keyPositions, long keyConglomId, String schemaName, String tableName, ResultDescription resultDescription, FKInfo[] fkInfo, TriggerInfo triggerInfo, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, int numColumns, UUID dependencyId, boolean singleRowSource, ConstantAction[] dependentConstantActions ) throws StandardException { // ignore replication args, which should be null return new DeleteConstantAction( conglomId, heapSCOCI, irgs, indexCIDS, indexSCOCIs, emptyHeapRow, deferred, tableID, lockMode, fkInfo, triggerInfo, baseRowReadList, baseRowReadMap, streamStorableHeapColIds, numColumns, singleRowSource, resultDescription, dependentConstantActions ); } /** * Make ConstantAction to drop a constraint. * * @param constraintName Constraint name. * @param constraintSchemaName Constraint Schema Name * @param tableName Table name. * @param tableId UUID of table. * @param tableSchemaName the schema that table lives in. * @param indexAction IndexConstantAction for constraint (if necessary) * @param behavior The drop behavior (e.g. StatementType.RESTRICT) * @param verifyType Verify that the constraint is of this type. */ public ConstraintConstantAction getDropConstraintConstantAction ( String constraintName, String constraintSchemaName, String tableName, UUID tableId, String tableSchemaName, IndexConstantAction indexAction, int behavior, int verifyType ) { return new DropConstraintConstantAction( constraintName, constraintSchemaName, tableName, tableId, tableSchemaName, indexAction, behavior, verifyType); } /** * Make the ConstantAction for a DROP INDEX statement. * * * @param fullIndexName Fully qualified index name * @param indexName Index name. * @param tableName The table name * @param schemaName Schema that index lives in. * @param tableId UUID for table * @param tableConglomerateId heap conglomerate ID for table * */ public DropIndexConstantAction getDropIndexConstantAction ( String fullIndexName, String indexName, String tableName, String schemaName, UUID tableId, long tableConglomerateId ) { return new DropIndexConstantAction( fullIndexName, indexName, tableName, schemaName, tableId, tableConglomerateId ); } /** * Make the ConstantAction for a DROP ALIAS statement. * * * @param aliasName Alias name. * @param aliasType Alias type. * */ public ConstantAction getDropAliasConstantAction(SchemaDescriptor sd, String aliasName, char aliasType) { return new DropAliasConstantAction(sd, aliasName, aliasType ); } /** * Make the ConstantAction for a DROP TABLE statement. * * @param schemaName Table name. * */ public ConstantAction getDropSchemaConstantAction(String schemaName) { return new DropSchemaConstantAction( schemaName ); } /** * Make the ConstantAction for a DROP TABLE statement. * * * @param fullTableName Fully qualified table name * @param tableName Table name. * @param sd Schema that table lives in. * @param conglomerateNubmer Conglomerate number for heap * @param tableId UUID for table * @param behavior drop behavior, CASCADE, RESTRICT or DEFAULT * */ public ConstantAction getDropTableConstantAction ( String fullTableName, String tableName, SchemaDescriptor sd, long conglomerateNumber, UUID tableId, int behavior ) { return new DropTableConstantAction( fullTableName, tableName, sd, conglomerateNumber, tableId, behavior ); } /** * Make the ConstantAction for a DROP VIEW statement. * * * @param fullTableName Fully qualified table name * @param tableName Table name. * @param sd Schema that view lives in. * */ public ConstantAction getDropViewConstantAction ( String fullTableName, String tableName, SchemaDescriptor sd ) { return new DropViewConstantAction( fullTableName, tableName, sd ); } /** * Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement. * * @param fullTableName Fully qualified table name * @param tableName Table name. * @param oldObjectName Old object name * @param newObjectName New object name. * @param sd Schema that table lives in. * @param tableId UUID for table * @param usedAlterTable True if used Alter Table command, false if used Rename * @param renamingWhat Value indicates if Rename Column/Index. * */ public ConstantAction getRenameConstantAction ( String fullTableName, String tableName, String oldObjectName, String newObjectName, SchemaDescriptor sd, UUID tableId, boolean usedAlterTable, int renamingWhat ) { return new RenameConstantAction( fullTableName, tableName, oldObjectName, newObjectName, sd, tableId, usedAlterTable, renamingWhat ); } /** * Make the ConstantAction for a Replicated INSERT statement. * * @param conglomId Conglomerate ID. * @param tableType type of this table * @param heapSCOCI StaticCompiledOpenConglomInfo for target heap. * @param irgs Index descriptors * @param indexCIDS Conglomerate IDs of indices * @param indexSCOCIs StaticCompiledOpenConglomInfos for indexes. * @param indexNames Names of indices on this table for error * reporting. * @param deferred True means deferred insert * @param tableIsPublished true if table is published, false otherwise * @param tableID table id * @param targetProperties Properties on the target table * @param fkInfo Array of structures containing foreign key info, * if any (may be null) * @param triggerInfo Array of structures containing trigger info, * @param baseRowReadList Map of columns read in. 1 based. * @param streamStorableHeapColIds Null for non rep. (0 based) * if any (may be null) * @param indexedCols boolean[] of which (0-based) columns are indexed. * @param dependencyId UUID for dependency system * @param stageControl Stage Control Tokens * @param ddlList List of DDL to log. This is for BULK INSERT into a published table at the Source. * @param singleRowSource Whether or not source is a single row source * @param autoincRowLocation array of row locations into syscolumns for autoincrement columns * * @exception StandardException Thrown on failure */ public ConstantAction getInsertConstantAction( TableDescriptor tableDescriptor, long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, String[] indexNames, boolean deferred, boolean tableIsPublished, UUID tableID, int lockMode, Object insertToken, Object rowSignature, Properties targetProperties, FKInfo[] fkInfo, TriggerInfo triggerInfo, int[] streamStorableHeapColIds, boolean[] indexedCols, UUID dependencyId, Object[] stageControl, Object[] ddlList, boolean singleRowSource, RowLocation[] autoincRowLocation ) throws StandardException { return new InsertConstantAction(tableDescriptor, conglomId, heapSCOCI, irgs, indexCIDS, indexSCOCIs, indexNames, deferred, targetProperties, tableID, lockMode, fkInfo, triggerInfo, streamStorableHeapColIds, indexedCols, singleRowSource, autoincRowLocation ); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -