001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2007-2009 Pentaho 008// All Rights Reserved. 009*/ 010package mondrian.olap.type; 011 012/** 013 * The type of an expression representing a date, time or timestamp. 014 * 015 * @author jhyde 016 * @since Jan 2, 2008 017 */ 018public class DateTimeType extends ScalarType { 019 /** 020 * Creates a DateTime type. 021 */ 022 public DateTimeType() { 023 super("DATETIME"); 024 } 025 026 public boolean equals(Object obj) { 027 return obj instanceof DateTimeType; 028 } 029 030 public boolean isInstance(Object value) { 031 return value instanceof java.util.Date; 032 } 033} 034 035// End DateTimeType.java