Package com.storedobject.core
Class TimestampPeriod
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTimestampPeriod(Timestamp from, Timestamp to) Create fromTimestampobjects.TimestampPeriod(Calendar from, Calendar to) Create fromCalendarobjects.TimestampPeriod(Date from, Date to) Create fromDateobjects. -
Method Summary
Modifier and TypeMethodDescriptionprotected TimestampClones the given timestamp.protected booleanChecks if two timestamps are the same.protected StringtoDBString(Timestamp data) Converts the given timestamp to a database-compatible string format.protected StringConverts the timestamp to a string.Methods inherited from class com.storedobject.core.AbstractPeriod
getCalendarFrom, getCalendarTo, getDBCondition, getDBCondition, getDBTimeCondition, getDBTimeCondition, getMonth, getMonthFrom, getMonthTo, getPeriodInDays, getPeriodInMonths, getYear, getYearFrom, getYearTo, inside, inside, overlaps, toShortString, toString, value
-
Constructor Details
-
TimestampPeriod
-
TimestampPeriod
-
TimestampPeriod
-
-
Method Details
-
clone
-
same
-
toString
-
toDBString
Converts the given timestamp to a database-compatible string format.- Overrides:
toDBStringin classAbstractPeriod<Timestamp>- Parameters:
data- The timestamp to be converted.- Returns:
- A string representation of the timestamp formatted according to database requirements.
-