Package org.apache.derby.iapi.sql
Class StatementUtil
java.lang.Object
org.apache.derby.iapi.sql.StatementUtil
Utilities for dealing with statements.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaDescriptor
getSchemaDescriptor
(String schemaName, boolean raiseError, DataDictionary dataDictionary, LanguageConnectionContext lcc, CompilerContext cc) Get the descriptor for the named schema.static String
typeName
(int typeNumber)
-
Field Details
-
TypeNames
-
-
Constructor Details
-
StatementUtil
private StatementUtil()
-
-
Method Details
-
typeName
-
getSchemaDescriptor
public static SchemaDescriptor getSchemaDescriptor(String schemaName, boolean raiseError, DataDictionary dataDictionary, LanguageConnectionContext lcc, CompilerContext cc) throws StandardException Get the descriptor for the named schema. If the schemaName parameter is NULL, it gets the descriptor for the current compilation schema.- Parameters:
schemaName
- The name of the schema we're interested in. If the name is NULL, get the descriptor for the current compilation schema.raiseError
- True to raise an error if the schema does not exist, false to return null if the schema does not exist.- Returns:
- Valid SchemaDescriptor or null if raiseError is false and the schema does not exist.
- Throws:
StandardException
- Schema does not exist and raiseError is true.
-