org.sql.generation.api.grammar.common.datatypes
Interface SQLInterval

All Superinterfaces:
ParametrizableDataType, SQLDataType, org.atp.api.Typeable<SQLDataType>

public interface SQLInterval
extends SQLDataType, ParametrizableDataType

This class represents the INTEGER type, sometimes abbreviated as INT (typically 32-bit integer).

Author:
Stanislav Muhametsin

Method Summary
 IntervalDataType getEndField()
          Returns the end field precision for this INTERVAL.
 java.lang.Integer getSecondFracs()
          Returns the fraction seconds precision for this INTERVAL.
 IntervalDataType getStartField()
          Returns the start field type for this INTERVAL.
 java.lang.Integer getStartFieldPrecision()
          Return the start field precision for this INTERVAL.
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Method Detail

getStartField

IntervalDataType getStartField()
Returns the start field type for this INTERVAL.

Returns:
The start field type for this INTERVAL.

getStartFieldPrecision

java.lang.Integer getStartFieldPrecision()
Return the start field precision for this INTERVAL. May be null if none specified.

Returns:
The start field precision for this INTERVAL.

getEndField

IntervalDataType getEndField()
Returns the end field precision for this INTERVAL. Will always be null for single datetime field intervals.

Returns:
The end field precision for this INTERVAL.

getSecondFracs

java.lang.Integer getSecondFracs()
Returns the fraction seconds precision for this 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.

Returns:
The fraction seconds precision for this INTERVAL.


Copyright © 2010. All Rights Reserved.