public class SQLIntervalImpl extends org.atp.spi.TypeableImpl<SQLDataType,SQLInterval> implements SQLInterval
| Constructor and Description |
|---|
SQLIntervalImpl(IntervalDataType startField,
Integer startFieldPrecision,
IntervalDataType endField,
Integer secondFracs) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doesEqual(SQLInterval another) |
IntervalDataType |
getEndField()
Returns the end field precision for this
INTERVAL. |
Integer |
getSecondFracs()
Returns the fraction seconds precision for this
INTERVAL. |
IntervalDataType |
getStartField()
Returns the start field type for this
INTERVAL. |
Integer |
getStartFieldPrecision()
Return the start field precision for this
INTERVAL. |
public SQLIntervalImpl(IntervalDataType startField, Integer startFieldPrecision, IntervalDataType endField, Integer secondFracs)
protected boolean doesEqual(SQLInterval another)
doesEqual in class org.atp.spi.TypeableImpl<SQLDataType,SQLInterval>public IntervalDataType getStartField()
INTERVAL.getStartField in interface SQLIntervalINTERVAL.public Integer getStartFieldPrecision()
INTERVAL. May be null if none specified.getStartFieldPrecision in interface SQLIntervalINTERVAL.public IntervalDataType getEndField()
INTERVAL. Will always be null for single datetime field
intervals.getEndField in interface SQLIntervalINTERVAL.public Integer getSecondFracs()
INTERVAL. Will always be null if the end field
type is not IntervalDataType.SECOND, or if this is single datetime field interval, and its start type is
not IntervalDataType.SECOND.getSecondFracs in interface SQLIntervalINTERVAL.Copyright © 2010-2012. All Rights Reserved.