Top Description Fields Constructors Methods
org.apache.derby.iapi.sql

public Class StatementUtil

extends Object
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.sql.compile.CompilerContext, org.apache.derby.iapi.sql.dictionary.DataDictionary, .SchemaDescriptor, org.apache.derby.iapi.sql.conn.LanguageConnectionContext

Utilities for dealing with statements.

Field Summary

Modifier and TypeField and Description
private static final String[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SchemaDescriptor

Returns:

Valid SchemaDescriptor or null if raiseError is false and the schema does not exist.
getSchemaDescriptor
(String
The name of the schema we're interested in. If the name is NULL, get the descriptor for the current compilation schema.
schemaName
,
boolean
True to raise an error if the schema does not exist, false to return null if the schema does not exist.
raiseError
,
DataDictionary dataDictionary, LanguageConnectionContext lcc, CompilerContext cc)

Get the descriptor for the named schema.

public static String
typeName(int typeNumber)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

TypeNamesback to summary
private static final String[] TypeNames

Constructor Detail

StatementUtilback to summary
private StatementUtil()

Method Detail

getSchemaDescriptorback to summary
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:String

The name of the schema we're interested in. If the name is NULL, get the descriptor for the current compilation schema.

raiseError:boolean

True to raise an error if the schema does not exist, false to return null if the schema does not exist.

Returns:SchemaDescriptor

Valid SchemaDescriptor or null if raiseError is false and the schema does not exist.

Exceptions
StandardException:
Schema does not exist and raiseError is true.
typeNameback to summary
public static String typeName(int typeNumber)