⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genericconstantactionfactory.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
	/**	 *	Make the ConstantAction for an updatable VTI statement.	 *	 * @param deferred					Deferred mode?	 *	 * @exception StandardException		Thrown on failure	 */	public ConstantAction getUpdatableVTIConstantAction( int statementType, boolean deferred)			throws StandardException	{		return new UpdatableVTIConstantAction( statementType, deferred, null);	}	/**	 *	Make the ConstantAction for an updatable VTI statement.	 *	 * @param deferred					Deferred mode?     * @param changedColumnIds Array of ids of changed columns	 *	 * @exception StandardException		Thrown on failure	 */	public ConstantAction getUpdatableVTIConstantAction( int statementType,                                                         boolean deferred,                                                         int[] changedColumnIds)			throws StandardException	{		return new UpdatableVTIConstantAction( statementType, deferred, changedColumnIds);	}	/**	 * Make the ConstantAction for a LOCK TABLE statement.	 *	 *  @param fullTableName		Full name of the table.	 *  @param conglomerateNumber	Conglomerate number for the heap	 *  @param exclusiveMode		Whether or not to get an exclusive lock.	 */	public	ConstantAction	getLockTableConstantAction(					String fullTableName,					long conglomerateNumber, boolean exclusiveMode)	{		return new LockTableConstantAction( 						fullTableName, conglomerateNumber, exclusiveMode );	}	/**	 * Make the ConstantAction for a SET SCHEMA statement.	 *	 *  @param schemaName	Name of schema.	 *  @param type			Literal, USER or ?	 */	public	ConstantAction	getSetSchemaConstantAction(String schemaName, int type)	{		return new SetSchemaConstantAction( schemaName , type );	}	/**	 * Make the ConstantAction for a SET TRANSACTION ISOLATION statement.	 *	 * @param isolationLevel	The new isolation level.	 */	public ConstantAction getSetTransactionIsolationConstantAction(int isolationLevel)	{		return new SetTransactionIsolationConstantAction(isolationLevel);	}	/**	 *	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 update	 *	@param targetUUID			UUID of target table	 *	@param lockMode				The lock mode to use	 *								  (row or table, see TransactionController)	 *  @param tableIsPublished		true if table is published, false otherwise	 *	@param changedColumnIds		Array of ids of changes columns	 *  @param keyPositions     	positions of primary key columns in base row	 *  @param updateUndoable		an update token	 *  @param endRowsUndoable		an end rows token	 *  @param endStatementUndoable an end statement token	 *	@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 baseRowReadMap		map of columns to be selected from the base row	 *								(partial row). 1 based.     *  @param streamStorableHeapColIds Null for non rep. (0 based)	 *  @param numColumns			The number of columns being read.	 *	@param positionedUpdate		is this a positioned update	 *  @param singleRowSource		Whether or not source is a single row source	 *	 *  @exception StandardException Thrown on failure	 */	public	UpdateConstantAction	getUpdateConstantAction(								long				conglomId,								int					tableType,								StaticCompiledOpenConglomInfo heapSCOCI,								IndexRowGenerator[]	irgs,								long[]				indexCIDS,								StaticCompiledOpenConglomInfo[] indexSCOCIs,								String[]			indexNames,									ExecRow				emptyHeapRow,								boolean				deferred,								UUID				targetUUID,								int					lockMode,								boolean				tableIsPublished,								int[]				changedColumnIds,								int[]				keyPositions,								Object         		updateToken,								FKInfo[]			fkInfo,								TriggerInfo			triggerInfo,								FormatableBitSet				baseRowReadList,								int[]				baseRowReadMap,								int[]				streamStorableHeapColIds,								int					numColumns,								boolean				positionedUpdate,								boolean				singleRowSource							)			throws StandardException	{		return new UpdateConstantAction(										conglomId,										heapSCOCI,										irgs,										indexCIDS,										indexSCOCIs,										indexNames,										emptyHeapRow,										deferred,										targetUUID,										lockMode,										changedColumnIds,										fkInfo,										triggerInfo,										baseRowReadList,										baseRowReadMap,										streamStorableHeapColIds,										numColumns,										positionedUpdate,										singleRowSource										);	}	/**	 * Make the ConstantAction to Add a jar file to a database.	 *	 *	@param	id					The id for the jar file -	 *                              (null means create one)	 *	@param	schemaName			The SchemaName for the jar file.	 *	@param	sqlName			    The sqlName for the jar file.	 *  @param  fileName            The name of the file that holds the jar.	 *  @exception StandardException Ooops	 */	public	ConstantAction getAddJarConstantAction(UUID id,														 String schemaName,														 String sqlName,														 String externalPath)		 throws StandardException	{		getAuthorizer().authorize(Authorizer.JAR_WRITE_OP);		return new AddJarConstantAction(id,schemaName,sqlName,externalPath);	}	/**	 * Make the ConstantAction to replace a jar file in a database.	 *	 *	@param	id					The id for the jar file -	 *                              (Ignored if null)	 *	@param	schemaName			The SchemaName for the jar file.	 *	@param	sqlName			    The sqlName for the jar file.	 *  @param  fileName            The name of the file that holds the new jar.	 *  @exception StandardException Ooops	 */	public	ConstantAction getReplaceJarConstantAction(UUID id,														 String schemaName,														 String sqlName,														 String externalPath)		 throws StandardException	{		getAuthorizer().authorize(Authorizer.JAR_WRITE_OP);		return new ReplaceJarConstantAction(id,schemaName,sqlName,externalPath);	}	/**	 * Make the ConstantAction to drop a jar file from a database.	 *	 *	@param	id					The id for the jar file -	 *                              (Ignored if null)	 *	@param	schemaName			The SchemaName for the jar file.	 *	@param	sqlName			    The sqlName for the jar file.	 *  @exception StandardException Ooops	 */	public	ConstantAction getDropJarConstantAction(UUID id,														  String schemaName,														  String sqlName)		 throws StandardException	{		getAuthorizer().authorize(Authorizer.JAR_WRITE_OP);		return new DropJarConstantAction(id,schemaName,sqlName);	}	static protected Authorizer getAuthorizer()	{		LanguageConnectionContext lcc = (LanguageConnectionContext)			ContextService.getContext(LanguageConnectionContext.CONTEXT_ID);		return lcc.getAuthorizer();	}	/**	 *	Make the ConstantAction for a CREATE TRIGGER statement.	 *	 * @param triggerSd		descriptor for the schema that trigger lives in.	 * @param triggerName	Name of trigger	 * @param eventMask		TriggerDescriptor.TRIGGER_EVENT_XXXX	 * @param isBefore		is this a before (as opposed to after) trigger 	 * @param isRow			is this a row trigger or statement trigger	 * @param isEnabled		is this trigger enabled or disabled	 * @param triggerTable	the table upon which this trigger is defined	 * @param whenSPSId		the sps id for the when clause (may be null)	 * @param whenText		the text of the when clause (may be null)	 * @param actionSPSId	the spsid for the trigger action (may be null)	 * @param actionText	the text of the trigger action (may be null)	 * @param spsCompSchemaId	the compilation schema for the action and when	 *							spses.   If null, will be set to the current default	 *							schema	 * @param creationTimestamp	when was this trigger created?  if null, will be	 *						set to the time that executeConstantAction() is invoked	 * @param referencedCols	what columns does this trigger reference (may be null)	 * @param originalActionText The original user text of the trigger action	 * @param referencingOld whether or not OLD appears in REFERENCING clause	 * @param referencingNew whether or not NEW appears in REFERENCING clause	 * @param oldReferencingName old referencing table name, if any, that appears in REFERCING clause	 * @param newReferencingName new referencing table name, if any, that appears in REFERCING clause	 */	public ConstantAction getCreateTriggerConstantAction	(		String				triggerSchemaName,		String				triggerName,		int					eventMask,		boolean				isBefore,		boolean 			isRow,		boolean 			isEnabled,		TableDescriptor		triggerTable,		UUID				whenSPSId,		String				whenText,		UUID				actionSPSId,		String				actionText,		UUID				spsCompSchemaId,		Timestamp			creationTimestamp,		int[]				referencedCols,		String				originalActionText,		boolean				referencingOld,		boolean				referencingNew,		String				oldReferencingName,		String				newReferencingName	)	{		return new CreateTriggerConstantAction(triggerSchemaName, triggerName, 				eventMask, isBefore, isRow, isEnabled, triggerTable, whenSPSId,				whenText, actionSPSId, actionText, spsCompSchemaId, creationTimestamp,				referencedCols, originalActionText,				referencingOld, referencingNew, oldReferencingName, newReferencingName);	}	/**	 * Make the ConstantAction for a DROP TRIGGER statement.	 *	 * @param	sd					Schema that stored prepared statement lives in.	 * @param	triggerName			Name of the Trigger	 * @param	tableId				The table this trigger is defined upon	 */	public ConstantAction getDropTriggerConstantAction	(		SchemaDescriptor	sd,		String				triggerName,		UUID				tableId	)	{		return new DropTriggerConstantAction(sd, triggerName, tableId);	}		/**	 * Make the constant action for a UPDATE STATISTICS statement.	 *	 * @param forTable		whether for an index or table.	 * @param objectName	name of the object (either table or index) for which	 * this statistic is being created.	 * @param tableUUID		UUID of the table for which statistics are being	 * created.	 * @param objectUUID    array of UUID's, one for each index conglomerate for	 * which statistics are being created. 	 * @param conglomerateNumber array of conglomerate numbers, one for each	 * index conglomerate for which statistics are being created.	 * @param 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 getUpdateStatisticsConstantAction	(	 boolean forTable,	 String objectName,	 UUID tableUUID,	 UUID[] objectUUID,	 long[] conglomerateNumber,	 ExecIndexRow[] indexRow	)	{		return new UpdateStatisticsConstantAction(forTable, 												  objectName,												  tableUUID,												  objectUUID,												  conglomerateNumber,												  indexRow);	}	/**	 * Make the constant action for Drop Statistics statement.	 *	 * @param sd			Schema Descriptor of the schema in which the object 	 * resides. 	 * @param fullTableName full name of the object for which statistics are	 * being dropped.	 * @param objectName	 object name for which statistics are being dropped.	 * @param forTable 		 is it an index or table whose statistics aer being	 * consigned to the garbage heap?	 */	public ConstantAction getDropStatisticsConstantAction		(SchemaDescriptor sd, String fullTableName, String objectName, boolean forTable)	{		return new DropStatisticsConstantAction(sd, fullTableName, objectName, forTable);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -