mondrian.spi
Enum Dialect.NullCollation

java.lang.Object
  extended by java.lang.Enum<Dialect.NullCollation>
      extended by mondrian.spi.Dialect.NullCollation
All Implemented Interfaces:
Serializable, Comparable<Dialect.NullCollation>
Enclosing interface:
Dialect

public static enum Dialect.NullCollation
extends Enum<Dialect.NullCollation>

Description of how NULL values are ordered in an ORDER BY clause.

Values such as FIRST, LAST, and BEFORE_ZERO are possible, but no known database that has these behaviors.


Enum Constant Summary
NEGINF
          Null values order as negative infinity.
POSINF
          Null values order as positive infinity.
 
Method Summary
static Dialect.NullCollation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Dialect.NullCollation[] 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

NEGINF

public static final Dialect.NullCollation NEGINF
Null values order as negative infinity. They appear first with ASC, last with DESC.


POSINF

public static final Dialect.NullCollation POSINF
Null values order as positive infinity. They appear last with ASC, first with DESC.

Method Detail

values

public static Dialect.NullCollation[] 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.NullCollation c : Dialect.NullCollation.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.NullCollation 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

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