Package mondrian.spi
Enum Dialect.Datatype
- java.lang.Object
-
- java.lang.Enum<Dialect.Datatype>
-
- mondrian.spi.Dialect.Datatype
-
- All Implemented Interfaces:
Serializable
,Comparable<Dialect.Datatype>
- Enclosing interface:
- Dialect
public static enum Dialect.Datatype extends Enum<Dialect.Datatype>
Datatype of a column.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
isNumeric()
Returns whether this is a numeric datatype.abstract void
quoteValue(StringBuilder buf, Dialect dialect, String value)
Appends to a buffer a value of this type, in the appropriate format for this dialect.static Dialect.Datatype
valueOf(String name)
Returns the enum constant of this type with the specified name.static Dialect.Datatype[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
String
public static final Dialect.Datatype String
-
Numeric
public static final Dialect.Datatype Numeric
-
Integer
public static final Dialect.Datatype Integer
-
Boolean
public static final Dialect.Datatype Boolean
-
Date
public static final Dialect.Datatype Date
-
Time
public static final Dialect.Datatype Time
-
Timestamp
public static final Dialect.Datatype Timestamp
-
-
Method Detail
-
values
public static Dialect.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 (Dialect.Datatype c : Dialect.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 Dialect.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.)- 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 nameNullPointerException
- if the argument is null
-
quoteValue
public abstract void quoteValue(StringBuilder buf, 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()
Returns whether this is a numeric datatype.- Returns:
- whether this is a numeric datatype.
-
-