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

📄 subconstraintdescriptor.java

📁 derby database source code.good for you.
💻 JAVA
字号:
/*   Derby - Class org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor   Copyright 1997, 2004 The Apache Software Foundation or its licensors, as applicable.   Licensed under the Apache License, Version 2.0 (the "License");   you may not use this file except in compliance with the License.   You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License. */package org.apache.derby.iapi.sql.dictionary;import org.apache.derby.catalog.UUID;import org.apache.derby.iapi.services.sanity.SanityManager;/** * This interface is used to get information from a SubConstraintDescriptor. * A SubKeyConstraintDescriptor is used within the DataDictionary to  * get auxiliary constraint information from the system table * that is auxiliary to sysconstraints. * * @version 0.1 * @author Jerry Brenner */public abstract class SubConstraintDescriptor extends TupleDescriptor	implements UniqueTupleDescriptor{	/**	   public interface for this class:	   <ol>	   <li> public void	setConstraintId(UUID constraintId);</li>	   <li>public boolean hasBackingIndex();</li>	   <li>public void	setTableDescriptor(TableDescriptor td);</li>	   <li>public TableDescriptor getTableDescriptor();</li>	   </ol>	*/	// Implementation	TableDescriptor			td;	UUID					constraintId;	/**	 * Constructor for a SubConstraintDescriptorImpl	 *	 * @param constraintID		The UUID of the constraint.	 */	SubConstraintDescriptor(UUID constraintId)	{		this.constraintId = constraintId;	}	/**	 * Sets the UUID of the constraint.	 *	 * @param constraintId	The constraint Id.	 * @return	Nothing.	 */	public void	setConstraintId(UUID constraintId)	{		this.constraintId = constraintId;	}	/**	 * Gets the UUID of the constraint.	 *	 * @return	The UUID of the constraint.	 */	public UUID	getUUID()	{		return constraintId;	}	/**	 * Does this constraint have a backing index?	 *	 * @return boolean	Whether or not there is a backing index for this constraint.	 */	public abstract boolean hasBackingIndex();	/**	 * Caches the TableDescriptor of the 	 * table that the constraint is on.	 *	 * @param td	The TableDescriptor.	 * @return	Nothing.	 */	public void	setTableDescriptor(TableDescriptor td)	{		this.td = td;	}	/** 	 * Returns the cached TableDescriptor, if	 * supplied, that the constraint is on.	 *	 * @return The cached TableDescriptor, 	 * if supplied.	 */	public TableDescriptor getTableDescriptor()	{		return td;	}	/**	 * Convert the SubConstraintDescriptor to a String.	 *	 * @return	A String representation of this SubConstraintDescriptor	 */	public String	toString()	{		if (SanityManager.DEBUG)		{			return "constraintId: " + constraintId + "\n";		}		else		{			return "";		}	}}

⌨️ 快捷键说明

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