Package net.sf.basedb.core.query
Enum Class QuerySection
- All Implemented Interfaces:
Serializable
,Comparable<QuerySection>
,Constable
Indicates which part of a query that is currently beeing built.
- Version:
- 2.0
- Author:
- nicklas
- See Also:
- Last modified
- $Date: 2015-05-12 11:27:08 +0200 (ti, 12 maj 2015) $
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
supportsColumnAlias
(DbEngine engine) If the current database supports column aliases in that part of the query.static QuerySection
Returns the enum constant of this class with the specified name.static QuerySection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELECT
-
FROM
-
JOIN
-
WHERE
-
GROUPBY
-
HAVING
-
ORDERBY
-
-
Constructor Details
-
QuerySection
private QuerySection()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
supportsColumnAlias
If the current database supports column aliases in that part of the query.- Returns:
- TRUE if column alias is supported, FALSE otherwise.
-