2.17.2: 2011-06-17

net.sf.basedb.core.query
Enum QuerySection

java.lang.Object
  extended by java.lang.Enum<QuerySection>
      extended by net.sf.basedb.core.query.QuerySection
All Implemented Interfaces:
Serializable, Comparable<QuerySection>

public enum QuerySection
extends Enum<QuerySection>

Indicates which part of a query that is currently beeing built.

Version:
2.0
Author:
nicklas
See Also:
Query.getQuerySection()
Last modified
$Date: 2008-09-11 22:09:17 +0200 (Thu, 11 Sep 2008) $

Enum Constant Summary
FROM
           
GROUPBY
           
HAVING
           
JOIN
           
ORDERBY
           
SELECT
           
WHERE
           
 
Method Summary
abstract  boolean supportsColumnAlias(DbEngine engine)
          If the current database supports column aliases in that part of the query.
static QuerySection valueOf(String name)
          Returns the enum constant of this type with the specified name.
static QuerySection[] 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

SELECT

public static final QuerySection SELECT

FROM

public static final QuerySection FROM

JOIN

public static final QuerySection JOIN

WHERE

public static final QuerySection WHERE

GROUPBY

public static final QuerySection GROUPBY

HAVING

public static final QuerySection HAVING

ORDERBY

public static final QuerySection ORDERBY
Method Detail

values

public static QuerySection[] 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 (QuerySection c : QuerySection.values())
    System.out.println(c);

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

valueOf

public static QuerySection valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

supportsColumnAlias

public abstract boolean supportsColumnAlias(DbEngine engine)
If the current database supports column aliases in that part of the query.

Parameters:
engine -
Returns:
TRUE if column alias is supported, FALSE otherwise.

2.17.2: 2011-06-17