com.simba.dsi.exceptions
Enum ParsingErrorID

java.lang.Object
  extended by java.lang.Enum<ParsingErrorID>
      extended by com.simba.dsi.exceptions.ParsingErrorID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ParsingErrorID>

public enum ParsingErrorID
extends java.lang.Enum<ParsingErrorID>

Defines constants which are used as keys for ParsingExceptions. Only these values should be passed into the constructor of a ParsingException.


Enum Constant Summary
BASE_TABLE_OR_VIEW_EXISTS
          The query contained a CREATE TABLE or CREATE VIEW statement and the table name or view name specified already exists.
BASE_TABLE_OR_VIEW_MISSING
          The query attempted to perform an operation on a table or view that does not exist.
COLUMN_EXISTS
          The query contained an ALTER TABLE statement and the column specified in the ADD clause is not unique or identifies an existing column in the base table.
COLUMN_MISSING
          The query attempted to perform an operation on a column that does not exist.
DEGREE_DERIVED_TABLE_COL_LIST_MISMATCH
          The query contained a CREATE VIEW statement and the number of names specified is not the same degree as the derived table defined by the query specification.
INDEX_EXISTS
          The query contained a CREATE INDEX statement and the specified index name already existed.
INDEX_MISSING
          The query contained a DROP INDEX statement and the specified index name did not exist.
INSERT_VAL_LIST_COL_LIST_MISMATCH
          The query contained an INSERT statement and the number of values to be inserted did not match the degree of the derived table.
INVALID_CATALOG_NAME
          The catalog name specified in the query was invalid.
INVALID_CHAR_VAL_FOR_CAST
          The query contained an SQL statement that contained a literal or parameter and the value was incompatible with the data type of the associated table column.
INVALID_CURSOR_NAME
          The query contained a positioned DELETE or a positioned UPDATE and the cursor referenced by the statement being prepared was not open.
INVALID_ESC_CHAR
          The query contained a LIKE predicate with an ESCAPE in the WHERE clause and the length of the escape character following ESCAPE was not equal to 1.
INVALID_ESC_SQNCE
          The query contained "LIKE pattern value ESCAPE escape character" in the WHERE clause and the character following the escape character in the pattern value was neither "%" nor "_".
INVALID_SCHEMA_NAME
          The schema name specified in the query was invalid.
SYNTAX_ERR_OR_ACCESS_VIOLATION
          The query contained an SQL statement that was not preparable due to a syntax error or lack of privileges for the operation.
 
Method Summary
 int getIdentifier()
          Get the ParserErrorID associated with the given integer value.
static ParsingErrorID valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ParsingErrorID[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSERT_VAL_LIST_COL_LIST_MISMATCH

public static final ParsingErrorID INSERT_VAL_LIST_COL_LIST_MISMATCH
The query contained an INSERT statement and the number of values to be inserted did not match the degree of the derived table.


DEGREE_DERIVED_TABLE_COL_LIST_MISMATCH

public static final ParsingErrorID DEGREE_DERIVED_TABLE_COL_LIST_MISMATCH
The query contained a CREATE VIEW statement and the number of names specified is not the same degree as the derived table defined by the query specification.


INVALID_CHAR_VAL_FOR_CAST

public static final ParsingErrorID INVALID_CHAR_VAL_FOR_CAST
The query contained an SQL statement that contained a literal or parameter and the value was incompatible with the data type of the associated table column.


INVALID_ESC_CHAR

public static final ParsingErrorID INVALID_ESC_CHAR
The query contained a LIKE predicate with an ESCAPE in the WHERE clause and the length of the escape character following ESCAPE was not equal to 1.


INVALID_ESC_SQNCE

public static final ParsingErrorID INVALID_ESC_SQNCE
The query contained "LIKE pattern value ESCAPE escape character" in the WHERE clause and the character following the escape character in the pattern value was neither "%" nor "_".


INVALID_CURSOR_NAME

public static final ParsingErrorID INVALID_CURSOR_NAME
The query contained a positioned DELETE or a positioned UPDATE and the cursor referenced by the statement being prepared was not open.


INVALID_CATALOG_NAME

public static final ParsingErrorID INVALID_CATALOG_NAME
The catalog name specified in the query was invalid.


INVALID_SCHEMA_NAME

public static final ParsingErrorID INVALID_SCHEMA_NAME
The schema name specified in the query was invalid.


SYNTAX_ERR_OR_ACCESS_VIOLATION

public static final ParsingErrorID SYNTAX_ERR_OR_ACCESS_VIOLATION
The query contained an SQL statement that was not preparable due to a syntax error or lack of privileges for the operation.


BASE_TABLE_OR_VIEW_EXISTS

public static final ParsingErrorID BASE_TABLE_OR_VIEW_EXISTS
The query contained a CREATE TABLE or CREATE VIEW statement and the table name or view name specified already exists.


BASE_TABLE_OR_VIEW_MISSING

public static final ParsingErrorID BASE_TABLE_OR_VIEW_MISSING
The query attempted to perform an operation on a table or view that does not exist.


INDEX_EXISTS

public static final ParsingErrorID INDEX_EXISTS
The query contained a CREATE INDEX statement and the specified index name already existed.


INDEX_MISSING

public static final ParsingErrorID INDEX_MISSING
The query contained a DROP INDEX statement and the specified index name did not exist.


COLUMN_EXISTS

public static final ParsingErrorID COLUMN_EXISTS
The query contained an ALTER TABLE statement and the column specified in the ADD clause is not unique or identifies an existing column in the base table.


COLUMN_MISSING

public static final ParsingErrorID COLUMN_MISSING
The query attempted to perform an operation on a column that does not exist.

Method Detail

values

public static ParsingErrorID[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ParsingErrorID c : ParsingErrorID.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ParsingErrorID valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getIdentifier

public int getIdentifier()
Get the ParserErrorID associated with the given integer value.

Returns:
The associated integer value for the ParserErrorID.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.