net.sf.farrago.type.runtime
Class EncodedSqlInterval.EncodedSqlIntervalDT
java.lang.Object
  
net.sf.farrago.type.runtime.EncodedSqlInterval
      
net.sf.farrago.type.runtime.EncodedSqlInterval.EncodedSqlIntervalDT
- All Implemented Interfaces: 
 - AssignableValue, DataValue
 
- Enclosing class:
 - EncodedSqlInterval
 
public abstract static class EncodedSqlInterval.EncodedSqlIntervalDT
- extends EncodedSqlInterval
 
 
 
 
 
 
 
 
 
 
MS_PER_SECOND
public static final long MS_PER_SECOND
- See Also:
 - Constant Field Values
 
MS_PER_MINUTE
public static final long MS_PER_MINUTE
- See Also:
 - Constant Field Values
 
MS_PER_HOUR
public static final long MS_PER_HOUR
- See Also:
 - Constant Field Values
 
MS_PER_DAY
public static final long MS_PER_DAY
- See Also:
 - Constant Field Values
 
EncodedSqlInterval.EncodedSqlIntervalDT
public EncodedSqlInterval.EncodedSqlIntervalDT()
assignFrom
public void assignFrom(Object obj)
- Description copied from interface: 
AssignableValue 
- Assigns value from an Object.
- Specified by:
 assignFrom in interface AssignableValue- Overrides:
 assignFrom in class EncodedSqlInterval
 
- Parameters:
 obj - value to assign, or null to set null
 
 
floor
public void floor(SqlIntervalQualifier.TimeUnit timeUnit)
- Rounds this interval value down to a unit of time. All smaller units
 of time are zeroed also.
 
For example, floor(MINUTE) applied to INTERVAL
 '7 11:23:45' DAY TO SECOND returns INTERVAL '7 11:23:00'
 DAY TO SECOND.
- Overrides:
 floor in class EncodedSqlInterval
 
- Parameters:
 timeUnit - Time unit
 
 
ceil
public void ceil(SqlIntervalQualifier.TimeUnit timeUnit)
- Rounds this interval value up to a unit of time. All smaller units of
 time are zeroed also.
 
For example, floor(MINUTE) applied to INTERVAL
 '7 11:23:45' DAY TO SECOND returns INTERVAL '7 11:24:00'
 DAY TO SECOND.
- Overrides:
 ceil in class EncodedSqlInterval
 
- Parameters:
 timeUnit - Time unit
 
 
parse
protected void parse(String interval)
- Specified by:
 parse in class EncodedSqlInterval
 
 
toString
public String toString()
- Overrides:
 toString in class Object