Package org.apache.derby.iapi.sql
Class StatementUtil
- java.lang.Object
-
- org.apache.derby.iapi.sql.StatementUtil
-
public class StatementUtil extends java.lang.Object
Utilities for dealing with statements.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
TypeNames
-
Constructor Summary
Constructors Modifier Constructor Description private
StatementUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaDescriptor
getSchemaDescriptor(java.lang.String schemaName, boolean raiseError, DataDictionary dataDictionary, LanguageConnectionContext lcc, CompilerContext cc)
Get the descriptor for the named schema.static java.lang.String
typeName(int typeNumber)
-
-
-
Method Detail
-
typeName
public static java.lang.String typeName(int typeNumber)
-
getSchemaDescriptor
public static SchemaDescriptor getSchemaDescriptor(java.lang.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.
-
-