mondrian.spi
Enum Dialect.Datatype

java.lang.Object
  extended by java.lang.Enum<Dialect.Datatype>
      extended by 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.


Enum Constant Summary
Boolean
           
Date
           
Integer
           
Numeric
           
String
           
Time
           
Timestamp
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - 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 - Buffer
dialect - Dialect
value - Value

isNumeric

public boolean isNumeric()
Returns whether this is a numeric datatype.

Returns:
whether this is a numeric datatype.

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads