mondrian.olap.type
Class DateTimeType

java.lang.Object
  extended by mondrian.olap.type.ScalarType
      extended by mondrian.olap.type.DateTimeType
All Implemented Interfaces:
Type

public class DateTimeType
extends ScalarType

The type of an expression representing a date, time or timestamp.

Since:
Jan 2, 2008
Version:
$Id: //open/mondrian/src/main/mondrian/olap/type/DateTimeType.java#4 $
Author:
jhyde

Constructor Summary
DateTimeType()
          Creates a DateTime type.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean isInstance(java.lang.Object value)
          Returns whether a value is valid for a type.
 
Methods inherited from class mondrian.olap.type.ScalarType
computeCommonType, getDimension, getHierarchy, getLevel, hashCode, toString, usesDimension, usesHierarchy
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimeType

public DateTimeType()
Creates a DateTime type.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ScalarType

isInstance

public boolean isInstance(java.lang.Object value)
Description copied from interface: Type
Returns whether a value is valid for a type.

Specified by:
isInstance in interface Type
Overrides:
isInstance in class ScalarType
Parameters:
value - Value
Returns:
Whether value is valid for this type

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