Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / MyDerby-10.3 / java / engine / org / apache / derby / iapi / sql / dictionary / ConsInfo.java
diff --git a/JMCR-Stable/real-world application/MyDerby-10.3/java/engine/org/apache/derby/iapi/sql/dictionary/ConsInfo.java b/JMCR-Stable/real-world application/MyDerby-10.3/java/engine/org/apache/derby/iapi/sql/dictionary/ConsInfo.java
new file mode 100644 (file)
index 0000000..653345f
--- /dev/null
@@ -0,0 +1,95 @@
+/*\r
+\r
+   Derby - Class org.apache.derby.iapi.sql.dictionary.ConsInfo\r
+\r
+   Licensed to the Apache Software Foundation (ASF) under one or more\r
+   contributor license agreements.  See the NOTICE file distributed with\r
+   this work for additional information regarding copyright ownership.\r
+   The ASF licenses this file to you under the Apache License, Version 2.0\r
+   (the "License"); you may not use this file except in compliance with\r
+   the License.  You may obtain a copy of the License at\r
+\r
+      http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+   Unless required by applicable law or agreed to in writing, software\r
+   distributed under the License is distributed on an "AS IS" BASIS,\r
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+   See the License for the specific language governing permissions and\r
+   limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.iapi.sql.dictionary;\r
+\r
+import org.apache.derby.iapi.services.io.Formatable;\r
+\r
+import org.apache.derby.iapi.error.StandardException;\r
+\r
+/**\r
+ *     This interface describes the columns in a referenced constraint. Added\r
+ *     to be the protocol version of ConstraintInfo.\r
+ *\r
+ * @version 0.1\r
+ */\r
+\r
+public interface ConsInfo      extends Formatable\r
+{\r
+       /**\r
+         *     This ConsInfo describes columns in a referenced table. What is\r
+         *     the schema that the referenced table lives in?\r
+         *\r
+         *     @param  dd      data dictionary to search for schema\r
+         *\r
+         *     @return schema that referenced table lives in\r
+         *     @exception      StandardException thrown on oops\r
+         */\r
+       public SchemaDescriptor getReferencedTableSchemaDescriptor(DataDictionary dd)\r
+               throws StandardException;\r
+\r
+       /**\r
+         *     This ConsInfo describes columns in a referenced table. What is\r
+         *     that table?\r
+         *\r
+         *     @param  dd      data dictionary to search for table\r
+         *\r
+         *     @return referenced table\r
+         *     @exception      StandardException thrown on oops\r
+         */\r
+       public TableDescriptor getReferencedTableDescriptor(DataDictionary dd)\r
+               throws StandardException;\r
+\r
+       /**\r
+         *     This ConsInfo describes columns in a referenced table. What are\r
+         *     their names?\r
+         *\r
+         *     @return array of referenced column names\r
+         */\r
+       public String[] getReferencedColumnNames();\r
+\r
+       /**\r
+         *     Get the name of the table that these column live in.\r
+         *\r
+         *     @return referenced table name\r
+         */\r
+       public String getReferencedTableName();\r
+\r
+\r
+       /**\r
+         *     Get the referential Action for an Update.\r
+         *\r
+         *     @return referential Action for update\r
+         */\r
+\r
+       public int getReferentialActionUpdateRule();\r
+       \r
+       /**\r
+         *     Get the referential Action for a Delete.\r
+         *\r
+         *     @return referential Action Delete rule\r
+         */\r
+       public int getReferentialActionDeleteRule();\r
+\r
+}\r
+\r
+\r
+\r