mondrian.rolap.sql
Enum SqlQuery.Datatype
java.lang.Object
java.lang.Enum<SqlQuery.Datatype>
mondrian.rolap.sql.SqlQuery.Datatype
- All Implemented Interfaces:
- Serializable, Comparable<SqlQuery.Datatype>
- Enclosing class:
- SqlQuery
public static enum SqlQuery.Datatype
- extends Enum<SqlQuery.Datatype>
Datatype of a column.
-
-
String
public static final SqlQuery.Datatype String
Numeric
public static final SqlQuery.Datatype Numeric
Integer
public static final SqlQuery.Datatype Integer
Boolean
public static final SqlQuery.Datatype Boolean
Date
public static final SqlQuery.Datatype Date
Time
public static final SqlQuery.Datatype Time
Timestamp
public static final SqlQuery.Datatype Timestamp
values
public static SqlQuery.Datatype[] 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 (SqlQuery.Datatype c : SqlQuery.Datatype.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SqlQuery.Datatype 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.)
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
quoteValue
public abstract void quoteValue(StringBuilder buf,
SqlQuery.Dialect dialect,
String value)
- Appends to a buffer a value of this type, in the appropriate format
for this dialect.
- Parameters:
buf
- Bufferdialect
- Dialectvalue
- Value
isNumeric
public boolean isNumeric()