Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / derby-10.3.2.1 / java / engine / org / apache / derby / impl / sql / compile / RoutineDesignator.java
diff --git a/JMCR-Stable/real-world application/derby-10.3.2.1/java/engine/org/apache/derby/impl/sql/compile/RoutineDesignator.java b/JMCR-Stable/real-world application/derby-10.3.2.1/java/engine/org/apache/derby/impl/sql/compile/RoutineDesignator.java
new file mode 100644 (file)
index 0000000..9de9996
--- /dev/null
@@ -0,0 +1,71 @@
+/*\r
+\r
+   Derby - Class org.apache.derby.impl.sql.compile.RoutineDesignator\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.impl.sql.compile;\r
+\r
+import org.apache.derby.iapi.error.StandardException;\r
+\r
+import org.apache.derby.impl.sql.execute.PrivilegeInfo;\r
+import org.apache.derby.impl.sql.execute.RoutinePrivilegeInfo;\r
+import org.apache.derby.iapi.sql.dictionary.AliasDescriptor;\r
+\r
+import java.util.List;\r
+\r
+/**\r
+ * This node represents a routine signature.\r
+ */\r
+public class RoutineDesignator\r
+{\r
+       boolean isSpecific;\r
+       TableName name; // TableName is a misnomer it is really just a schema qualified name\r
+       boolean isFunction; // else a procedure\r
+       /**\r
+        * A list of DataTypeDescriptors\r
+        * if null then the signature is not specified and this designator is ambiguous if there is\r
+        * more than one function (procedure) with this name.\r
+        */\r
+       List paramTypeList;\r
+       AliasDescriptor aliasDescriptor;\r
+\r
+       public RoutineDesignator( boolean isSpecific,\r
+                                                         TableName name,\r
+                                                         boolean isFunction,\r
+                                                         List paramTypeList)\r
+       {\r
+               this.isSpecific = isSpecific;\r
+               this.name = name;\r
+               this.isFunction = isFunction;\r
+               this.paramTypeList = paramTypeList;\r
+       }\r
+\r
+       void setAliasDescriptor( AliasDescriptor aliasDescriptor)\r
+       {\r
+               this.aliasDescriptor = aliasDescriptor;\r
+       }\r
+       \r
+       /**\r
+        * @return PrivilegeInfo for this node\r
+        */\r
+       PrivilegeInfo makePrivilegeInfo()\r
+       {\r
+               return new RoutinePrivilegeInfo( aliasDescriptor);\r
+       }\r
+}\r