org.eigenbase.sql
Class SqlIntervalLiteral.IntervalValue

java.lang.Object
  extended by org.eigenbase.sql.SqlIntervalLiteral.IntervalValue
Enclosing class:
SqlIntervalLiteral

public static class SqlIntervalLiteral.IntervalValue
extends Object

A Interval value.


Field Summary
private  SqlIntervalQualifier intervalQualifier
           
private  String intervalStr
           
private  int sign
           
 
Constructor Summary
SqlIntervalLiteral.IntervalValue(SqlIntervalQualifier intervalQualifier, int sign, String intervalStr)
          Creates an interval value.
 
Method Summary
 boolean equals(Object obj)
           
 String getIntervalLiteral()
           
 SqlIntervalQualifier getIntervalQualifier()
           
 int getSign()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

intervalQualifier

private final SqlIntervalQualifier intervalQualifier

intervalStr

private final String intervalStr

sign

private final int sign
Constructor Detail

SqlIntervalLiteral.IntervalValue

SqlIntervalLiteral.IntervalValue(SqlIntervalQualifier intervalQualifier,
                                 int sign,
                                 String intervalStr)
Creates an interval value.

Parameters:
intervalQualifier - Interval qualifier
sign - Sign (+1 or -1)
intervalStr -
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getIntervalQualifier

public SqlIntervalQualifier getIntervalQualifier()

getIntervalLiteral

public String getIntervalLiteral()

getSign

public int getSign()

toString

public String toString()
Overrides:
toString in class Object