Class NowValueHolder
java.lang.Object
de.uplanet.lucy.server.dataobjects.impl.NowValueHolder
- All Implemented Interfaces:
IDateTimeValueHolder,IValueHolder<Date>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the canonical lexical representation of this value according to it's datatype.Get the current time with fractional seconds in millisecond resolution.getType()The type of data this value holder holds.getValue()Get the current time with fractional seconds set to zero.booleanhasValue()Check if this value holder currently holds data or not.
-
Constructor Details
-
NowValueHolder
public NowValueHolder()
-
-
Method Details
-
getType
Description copied from interface:IValueHolderThe type of data this value holder holds.- Specified by:
getTypein interfaceIValueHolder<Date>- Returns:
XSD_TYPE.DATETIME.
-
getValue
Get the current time with fractional seconds set to zero.Note that subsequent calls to
getValuewill return the same value.- Specified by:
getValuein interfaceIValueHolder<Date>- Returns:
- A
java.sql.Timestampthat represents the current time with fractional seconds set to zero.
-
getRawValue
Get the current time with fractional seconds in millisecond resolution.Note that subsequent calls to
getValuewill return the same value.- Specified by:
getRawValuein interfaceIValueHolder<Date>- Returns:
- A
java.sql.Timestampthat represents the current time.
-
hasValue
public boolean hasValue()Description copied from interface:IValueHolderCheck if this value holder currently holds data or not.- Specified by:
hasValuein interfaceIValueHolder<Date>- Returns:
- Always
true.
-
getCanonicalLexicalRepresentation
Description copied from interface:IValueHolderGet the canonical lexical representation of this value according to it's datatype.- Specified by:
getCanonicalLexicalRepresentationin interfaceIValueHolder<Date>- Returns:
- The canonical lexical representation of the current date.
- See Also:
-