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

📄 datadictionary.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
	 * If the schema parameter is NULL, it looks for the table in the	 * current (default) schema. Table descriptors include object ids,	 * object types (table, view, etc.)	 *	 * @param tableName	The name of the table to get the descriptor for	 * @param schema	The descriptor for the schema the table lives in.	 *			If null, use the current (default) schema.	 *	 * @return	The descriptor for the table, null if table does not	 *		existe.	 *	 * @exception StandardException		Thrown on failure	 */	public TableDescriptor		getTableDescriptor(String tableName,					SchemaDescriptor schema)						throws StandardException;	/**	 * Get the descriptor for the table with the given UUID.	 *	 * NOTE: I'm assuming that the object store will define an UUID for	 * persistent objects. I'm also assuming that UUIDs are unique across	 * schemas, and that the object store will be able to do efficient	 * lookups across schemas (i.e. that no schema descriptor parameter	 * is needed).	 *	 * @param tableID	The UUID of the table to get the descriptor for	 *	 * @return	The descriptor for the table, null if the table does	 *		not exist.	 *	 * @exception StandardException		Thrown on failure	 */	public TableDescriptor		getTableDescriptor(UUID tableID)						throws StandardException;	/**	 * Drop the table descriptor.	 *	 * @param descriptor	The table descriptor to drop	 * @param schema		A descriptor for the schema the table	 *						is a part of.  If this parameter is	 *						NULL, then the table is part of the	 *						current (default) schema	 * @param tc			TransactionController for the transaction	 *	 * @return	Nothing	 *	 * @exception StandardException		Thrown on error	 */	public void	dropTableDescriptor(TableDescriptor td, SchemaDescriptor schema,									TransactionController tc)		throws StandardException;	/**	 * Update the lockGranularity for the specified table.	 *	 * @param td				The TableDescriptor for the table	 * @param schema			The SchemaDescriptor for the table	 * @param lockGranularity	The new lockGranularity	 * @param tc				The TransactionController to use.	 *	 * @return Nothing.	 *	 * @exception StandardException		Thrown on error	 */	public void updateLockGranularity(TableDescriptor td, SchemaDescriptor schema,									  char lockGranularity, TransactionController tc)		throws StandardException;	/**	 * Drop all table descriptors for a schema.	 *	 * @param schema	A descriptor for the schema to drop the tables	 *			from.	 *	 * @exception StandardException		Thrown on failure	 */	/*	public void dropAllTableDescriptors(SchemaDescriptor schema)						throws StandardException;	*/	/**	 * Get a ColumnDescriptor given its Default ID.	 *	 * @param uuid	The UUID of the default	 *	 * @return The ColumnDescriptor for the column.	 *	 * @exception StandardException		Thrown on failure	 */	public ColumnDescriptor getColumnDescriptorByDefaultId(UUID uuid)				throws StandardException;	/**	 * Given a column name and a table ID, drops the column descriptor	 * from the table.	 *	 * @param tableID	The UUID of the table to drop the column from	 * @param columnName	The name of the column to drop	 * @param tc		TransactionController for the transaction	 *	 * @exception StandardException		Thrown on failure	 */	public void	dropColumnDescriptor(UUID tableID,				String columnName, TransactionController tc)						throws StandardException;	/**	 * Drops all column descriptors from the given table.  Useful for	 * DROP TABLE.	 *	 * @param tableID	The UUID of the table from which to drop	 *			all the column descriptors	 * @param tc		TransactionController for the transaction	 *	 * @exception StandardException		Thrown on failure	 */	public void	dropAllColumnDescriptors(UUID tableID, TransactionController tc)						throws StandardException;	/**	 * Gets the viewDescriptor for the view with the given UUID.	 *	 * @param uuid	The UUID for the view	 *	 * @return  A descriptor for the view	 *	 * @exception StandardException		Thrown on error	 */	public ViewDescriptor	getViewDescriptor(UUID uuid)		throws StandardException;	/**	 * Gets the viewDescriptor for the view given its TableDescriptor.	 *	 * @param td	The TableDescriptor for the view.	 *	 * @return	A descriptor for the view	 *	 * @exception StandardException		Thrown on error	 */	public ViewDescriptor	getViewDescriptor(TableDescriptor td) 						throws StandardException;	/**	 * Drops the view descriptor from the data dictionary.	 *	 * @param viewDescriptor	A descriptor for the view to be dropped	 * @param tc				TransactionController to use	 *	 * @exception StandardException		Thrown on failure	 */	public void	dropViewDescriptor(ViewDescriptor viewDescriptor,								   TransactionController tc)						throws StandardException;	/**	 * Get a ConstraintDescriptor given its UUID.	 *	 * @param uuid	The UUID	 *	 * @return The ConstraintDescriptor for the constraint.	 *	 * @exception StandardException		Thrown on failure	 */	public ConstraintDescriptor getConstraintDescriptor(UUID uuid)				throws StandardException;	/**	 * Get a ConstraintDescriptor given its name and schema ID.	 *	 * @param constraintName	Constraint name.	 * @param schemaID			The schema UUID	 *	 * @return The ConstraintDescriptor for the constraint.	 *	 * @exception StandardException		Thrown on failure	 */	public ConstraintDescriptor getConstraintDescriptor	(		String	constraintName,		UUID	schemaID    )		throws StandardException;	/**	 * Load up the constraint descriptor list for this table	 * descriptor and return it.  If the descriptor list	 * is already loaded up, it is retuned without further	 * ado.	 *	 * @param table			The table descriptor.	 *	 * @return The ConstraintDescriptorList for the table	 *	 * @exception StandardException		Thrown on failure	 */	public ConstraintDescriptorList getConstraintDescriptors(TableDescriptor td)		throws StandardException;	/**	 * Convert a constraint descriptor list into a list	 * of active constraints, that is, constraints which	 * must be enforced. For the Core product, these	 * are just the constraints on the original list.	 * However, during REFRESH we may have deferred some	 * constraints until statement end. This method returns	 * the corresponding list of constraints which AREN'T	 * deferred.	 *	 * @param cdl	The constraint descriptor list to wrap with	 *				an Active constraint descriptor list.	 *	 * @return The corresponding Active ConstraintDescriptorList	 *	 * @exception StandardException		Thrown on failure	 */	public ConstraintDescriptorList getActiveConstraintDescriptors(ConstraintDescriptorList cdl)		throws StandardException;	/**	 * Reports whether an individual constraint must be	 * enforced. For the Core product, this routine always	 * returns true.	 *	 * However, during REFRESH we may have deferred some	 * constraints until statement end. This method returns	 * false if the constraint deferred	 *	 * @param constraint	the constraint to check	 *	 *	 * @return The corresponding Active ConstraintDescriptorList	 *	 * @exception StandardException		Thrown on failure	 */	public boolean activeConstraint( ConstraintDescriptor constraint )		throws StandardException;	/** 	 * Get the constraint descriptor given a table and the UUID String	 * of the backing index.	 *	 * @param table			The table descriptor.	 * @param uuid			The UUID  for the backing index.	 *	 * @return The ConstraintDescriptor for the constraint.	 *	 * @exception StandardException		Thrown on failure	 */	public ConstraintDescriptor getConstraintDescriptor(TableDescriptor td, 														UUID uuid)				throws StandardException;	/**	 * Get the constraint descriptor given a table and the UUID String	 * of the constraint	 *	 * @param table			The table descriptor.	 * @param uuid			The UUID for the constraint	 *	 * @return The ConstraintDescriptor for the constraint.	 *	 * @exception StandardException		Thrown on failure	 */	public ConstraintDescriptor getConstraintDescriptorById	(		TableDescriptor	td,		UUID			uuid    )		throws StandardException;	/** 	 * Get the constraint descriptor given a TableDescriptor and the constraint name.	 *	 * @param table				The table descriptor.	 * @param sd				The schema descriptor for the constraint	 * @param constraintName	The constraint name.	 * @param forUpdate			Whether or not access is for update	 *	 * @return The ConstraintDescriptor for the constraint.	 *	 * @exception StandardException		Thrown on failure	 */	public ConstraintDescriptor getConstraintDescriptorByName(TableDescriptor td, 															  SchemaDescriptor sd,															  String constraintName,															  boolean forUpdate)				throws StandardException;	/**	 * Return a table descriptor corresponding to the TABLEID	 * field in SYSCONSTRAINTS where CONSTRAINTID matches	 * the constraintId passsed in.	 *	 * @param constraintId	The id of the constraint	 *	 * @return	the corresponding table descriptor	 *	 * @exception StandardException		Thrown on error	 */	public TableDescriptor getConstraintTableDescriptor(UUID constraintId)			throws StandardException;	/**	 * Return a list of foreign keys constraints referencing	 * this constraint.  Returns both enabled and disabled	 * constraints.  	 *	 * @param constraintId	The id of the referenced constraint	 *	 * @return	list of constraints	 *	 * @exception StandardException		Thrown on error	 */	public ConstraintDescriptorList getForeignKeys(UUID constraintId)			throws StandardException;	/**	 * Adds the given ConstraintDescriptor to the data dictionary,	 * associated with the given table and constraint type.	 *	 * @param descriptor	The descriptor to add	 * @param tc			The transaction controller	 *	 * @return	Nothing	 *	 * @exception StandardException		Thrown on error	 */	public void	addConstraintDescriptor(			ConstraintDescriptor descriptor,			TransactionController tc)						throws StandardException;	/**	 * Drops the given ConstraintDescriptor that is associated	 * with the given table and constraint type from the data dictionary.	 *	 * NOTE: Caller is responsible for dropping any backing index	 *	 * @param table	The table from which to drop the	 *			constraint descriptor	 * @param descriptor	The descriptor to drop	 * @param tc	The TransactionController.	 *	 * @exception StandardException		Thrown on failure	 */	public void	dropConstraintDescriptor(TableDescriptor table,			ConstraintDescriptor descriptor,			TransactionController tc)						throws StandardException;	/**	 * Drops all ConstraintDescriptors from the data dictionary	 * that are associated with the given table.	 *	 * NOTE: Caller is responsible for dropping any backing index	 *	 * @param table	The table from which to drop all	 *			constraint descriptors	 * @param tc	The TransactionController.	 *	 * @exception StandardException		Thrown on failure	 */	public void	dropAllConstraintDescriptors(TableDescriptor table,											 TransactionController tc)						throws StandardException;	/**	 * Update the constraint descriptor in question.  Updates	 * every row in the base conglomerate.  	 *	 * @param cd					The Constraintescriptor	 * @param formerUUID			The UUID for this column in SYSCONSTRAINTS,	 *								may differ from what is in cd if this	 *								is the column that is being set.	 * @param colsToSet 			Array of ints of columns to be modified,	 *								1 based.  May be null (all cols).	 * @param tc					The TransactionController to use	 *	 * @return Nothing.	 *	 * @exception StandardException		Thrown on failure	 */

⌨️ 快捷键说明

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