Class NowValueHolder
- java.lang.Object
-
- de.uplanet.lucy.server.dataobjects.impl.NowValueHolder
-
- All Implemented Interfaces:
IDateTimeValueHolder
,IValueHolder<Date>
public final class NowValueHolder extends Object implements IDateTimeValueHolder
-
-
Constructor Summary
Constructors Constructor Description NowValueHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCanonicalLexicalRepresentation()
Get the canonical lexical representation of this value according to it's datatype.Object
getRawValue()
Get the current time with fractional seconds in millisecond resolution.QName
getType()
The type of data this value holder holds.Date
getValue()
Get the current time with fractional seconds set to zero.boolean
hasValue()
Check if this value holder currently holds data or not.
-
-
-
Method Detail
-
getType
public QName getType()
Description copied from interface:IValueHolder
The type of data this value holder holds.- Specified by:
getType
in interfaceIValueHolder<Date>
- Returns:
XSD_TYPE.DATETIME
.
-
getValue
public Date getValue()
Get the current time with fractional seconds set to zero.Note that subsequent calls to
getValue
will return the same value.- Specified by:
getValue
in interfaceIValueHolder<Date>
- Returns:
- A
java.sql.Timestamp
that represents the current time with fractional seconds set to zero.
-
getRawValue
public Object getRawValue()
Get the current time with fractional seconds in millisecond resolution.Note that subsequent calls to
getValue
will return the same value.- Specified by:
getRawValue
in interfaceIValueHolder<Date>
- Returns:
- A
java.sql.Timestamp
that represents the current time.
-
hasValue
public boolean hasValue()
Description copied from interface:IValueHolder
Check if this value holder currently holds data or not.- Specified by:
hasValue
in interfaceIValueHolder<Date>
- Returns:
- Always
true
.
-
getCanonicalLexicalRepresentation
public String getCanonicalLexicalRepresentation()
Description copied from interface:IValueHolder
Get the canonical lexical representation of this value according to it's datatype.- Specified by:
getCanonicalLexicalRepresentation
in interfaceIValueHolder<Date>
- Returns:
- The canonical lexical representation of the current date.
- See Also:
Convert.getCanonicalLexicalRepresentationDateTime(Date)
-
-