Package com.storedobject.core
Class TimePeriod
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTimePeriod(Time from, Time to) Create fromTimeobjects.TimePeriod(Calendar from, Calendar to) Create fromCalendarobjects.TimePeriod(Date from, Date to) Create fromDateobjects. -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeClones the given time.protected booleanChecks if two times are the same.protected StringtoDBString(Time data) Converts the given time to a database-compatible string format.protected StringConverts the time 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
-
TimePeriod
-
TimePeriod
-
TimePeriod
-
-
Method Details
-
clone
-
same
-
toString
-
toDBString
Converts the given time to a database-compatible string format.- Overrides:
toDBStringin classAbstractPeriod<Time>- Parameters:
data- The time to be converted.- Returns:
- A string representation of the time formatted according to database requirements.
-