|
||||||||||
| 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(Calendar value)
Construct an abstract temporal literal with given calendar. |
protected |
AbstractTemporalLiteral(Date value)
Construct an abstract temporal literal with given date. |
| Method Summary | |
|---|---|
static AbstractTemporalLiteral |
createInstance(TemporalType temporalType,
Calendar value)
Factory method to create a temporal literal for the calendar given that matches the temporal type given. |
static AbstractTemporalLiteral |
createInstance(TemporalType temporalType,
Date value)
Factory method to create a temporal literal for the date given that matches the temporal type given. |
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(Date value)
value - Date value for the temporal literal.protected AbstractTemporalLiteral(Calendar value)
value - Calendar value for the temporal literal.| Method Detail |
|---|
public static AbstractTemporalLiteral createInstance(TemporalType temporalType,
Date value)
temporalType - Temporal type of the temporal literal to return.value - Date value for the temporal literal.
public static AbstractTemporalLiteral createInstance(TemporalType temporalType,
Calendar value)
temporalType - Temporal type of the temporal literal to return.value - Calendar value for the temporal literal.
public final Date getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||