Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.db.sql
Class SQLQueryClauseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.javatools.db.DBException
              extended by oracle.javatools.db.sql.SQLQueryException
                  extended by oracle.javatools.db.sql.SQLQueryClauseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AliasInUseException, AmbiguousColumnException, InvalidAliasException

public class SQLQueryClauseException
extends SQLQueryException

Exception thrown by a SQLQueryBuilder when there is an error with a clause in the query, but that this error doesn't stop the query being declarative. Example: missing a group by statement, an expression needs an alias, etc.

Since:
11
See Also:
Serialized Form

Constructor Summary
SQLQueryClauseException(SQLFragment obj, java.lang.String message)
           
 
Method Summary
 void addType(java.lang.String type)
          Adds an extra object type for this exception to be concerning, other than the type for the object that was created.
 boolean isForType(java.lang.String type)
          Queries whether this problem is relevant to the given type of clause.
 
Methods inherited from class oracle.javatools.db.DBException
getNextException, getObject, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLQueryClauseException

public SQLQueryClauseException(SQLFragment obj,
                               java.lang.String message)
Method Detail

addType

public void addType(java.lang.String type)
Adds an extra object type for this exception to be concerning, other than the type for the object that was created.

See Also:
isForType(String)

isForType

public boolean isForType(java.lang.String type)
Queries whether this problem is relevant to the given type of clause. e.g. SelectObject.TYPE, GroupByObject.TYPE etc.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.