Class StatementUtil

java.lang.Object
org.apache.derby.iapi.sql.StatementUtil

public class StatementUtil extends Object
Utilities for dealing with statements.
  • Field Details

    • TypeNames

      private static final String[] TypeNames
  • Constructor Details

    • StatementUtil

      private StatementUtil()
  • Method Details

    • typeName

      public static String typeName(int typeNumber)
    • 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.