|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.query.object.AbstractQueryObject
org.castor.cpa.query.object.expression.AbstractExpression
org.castor.cpa.query.object.literal.AbstractLiteral
org.castor.cpa.query.object.literal.AbstractTemporalLiteral
public abstract class AbstractTemporalLiteral
Abstract immutable base class for temporal literals.
Constructor Summary | |
---|---|
protected |
AbstractTemporalLiteral(java.util.Calendar value)
Construct an abstract temporal literal with given calendar. |
protected |
AbstractTemporalLiteral(java.util.Date value)
Construct an abstract temporal literal with given date. |
Method Summary | |
---|---|
static AbstractTemporalLiteral |
createInstance(TemporalType temporalType,
java.util.Calendar value)
Factory method to create a temporal literal for the calendar given that matches the temporal type given. |
static AbstractTemporalLiteral |
createInstance(TemporalType temporalType,
java.util.Date value)
Factory method to create a temporal literal for the date given that matches the temporal type given. |
java.util.Date |
getValue()
Get date value of the temporal literal. |
Methods inherited from class org.castor.cpa.query.object.AbstractQueryObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.castor.cpa.query.QueryObject |
---|
toString |
Constructor Detail |
---|
protected AbstractTemporalLiteral(java.util.Date value)
value
- Date value for the temporal literal.protected AbstractTemporalLiteral(java.util.Calendar value)
value
- Calendar value for the temporal literal.Method Detail |
---|
public static AbstractTemporalLiteral createInstance(TemporalType temporalType, java.util.Date value)
temporalType
- Temporal type of the temporal literal to return.value
- Date value for the temporal literal.
public static AbstractTemporalLiteral createInstance(TemporalType temporalType, java.util.Calendar value)
temporalType
- Temporal type of the temporal literal to return.value
- Calendar value for the temporal literal.
public final java.util.Date getValue()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |