org.eigenbase.sql.validate
Enum SqlMonikerType
java.lang.Object
java.lang.Enum<SqlMonikerType>
org.eigenbase.sql.validate.SqlMonikerType
- All Implemented Interfaces:
- Serializable, Comparable<SqlMonikerType>
public enum SqlMonikerType
- extends Enum<SqlMonikerType>
An enumeration of moniker types.
Used in SqlMoniker
.
- Since:
- May 24, 2005
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/validate/SqlMonikerType.java#9 $
- Author:
- tleung
Method Summary |
static SqlMonikerType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SqlMonikerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Column
public static final SqlMonikerType Column
Table
public static final SqlMonikerType Table
View
public static final SqlMonikerType View
Schema
public static final SqlMonikerType Schema
Repository
public static final SqlMonikerType Repository
Function
public static final SqlMonikerType Function
Keyword
public static final SqlMonikerType Keyword
values
public static final SqlMonikerType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(SqlMonikerType c : SqlMonikerType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static SqlMonikerType 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