Package mondrian.spi
Enum Class Dialect.Datatype
- All Implemented Interfaces:
Serializable
,Comparable<Dialect.Datatype>
,Constable
- Enclosing interface:
- Dialect
Datatype of a column.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Returns the enum constant of this class with the specified name.static Dialect.Datatype[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
String
-
Numeric
-
Integer
-
Boolean
-
Date
-
Time
-
Timestamp
-
-
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
-
quoteValue
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.
-