mondrian.rolap.sql
Enum SqlQuery.Datatype

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

 

Enum Constant Summary
Boolean
           
Date
           
Integer
           
Numeric
           
String
           
Time
           
Timestamp
           
 
Method Summary
 boolean isNumeric()
           
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.
static SqlQuery.Datatype valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SqlQuery.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 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
Method Detail

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

isNumeric

public boolean isNumeric()

SourceForge.net_Logo