Uses of Class
net.pricefx.common.util.CalendarUtil.TimePeriod
Package
Description
Provides set of util classes.
Defines set of domain object classes.
Provides Formula Engine API classes.
-
Uses of CalendarUtil.TimePeriod in net.pricefx.common.util
Modifier and TypeMethodDescriptionCalendarUtil.TimePeriod.getEndPeriod()
CalendarUtil.TimePeriod.getStartPeriod()
CalendarUtil.getTimePeriod
(String periodAsString) CalendarUtil.getTimePeriodByDate
(String dateAsString, String unitAsString) CalendarUtil.newTimePeriod
(String startDateAsString, String unitAsString) CalendarUtil.newTimePeriod
(String startDateAsString, String endDateAsString, String unitAsString) CalendarUtil.parseTimePeriod
(String period) Modifier and TypeMethodDescriptionCalendarUtil.getTimePeriods
(String startPeriodAsString, String endPeriodAsString, String unitAsString) CalendarUtil.getTimePeriods
(Date startDate, Date endDate, CalendarUtil.TimeUnit unit) ModifierConstructorDescriptionTimePeriod
(CalendarUtil.TimePeriod startPeriod, CalendarUtil.TimePeriod endPeriod, CalendarUtil.TimeUnit unit) -
Uses of CalendarUtil.TimePeriod in net.pricefx.domain
Modifier and TypeMethodDescriptionvoid
DMDataSlice.exclude
(CalendarUtil.TimePeriod timePeriod) DMCalendar.getTimePeriodAsFilter
(CalendarUtil.TimePeriod timePeriod, String dateDimFieldName) void
DMDataSlice.include
(CalendarUtil.TimePeriod timePeriod) DMCalendar.timePeriodAsFilter
(CalendarUtil.TimePeriod timePeriod, String dateDimFieldName) -
Uses of CalendarUtil.TimePeriod in net.pricefx.formulaengine
Modifier and TypeMethodDescriptionDatamartContext.Calendar.getTimePeriod
(String periodAsString) Returns the TimePeriod object matching its string representation.DatamartContext.Calendar.getTimePeriodByDate
(String dateAsString, String unitAsString) Parses a date, as well as a named TimeUnit, resulting in a TimePeriod with that unit that encompasses the given date.Modifier and TypeMethodDescriptionDatamartContext.Calendar.getTimePeriods
(String startPeriodAsString, String endPeriodAsString, String unitAsString) The same asDatamartContext.Calendar.getTimePeriodNames(String, String, String)
but it returns a list of TimePeriod objects, rather than the corresponding period names.DatamartContext.Calendar.getTimePeriods
(Date startDate, Date endDate, CalendarUtil.TimeUnit unit) Modifier and TypeMethodDescriptionModelCalcFormulaContext.addRecord
(String name, CalendarUtil.TimePeriod period, Map<String, ?> attributeValues, Map<String, FieldFormatType> fieldFormatTypesByColLabel, boolean... calculate) Adds a new record with the given name if none exist yet with that name in the DRAFT status (workflowStatus == WorkflowStatus.DRAFT
).void
DatamartContext.DataSlice.exclude
(CalendarUtil.TimePeriod timePeriod) void
DatamartContext.DataSlice.include
(CalendarUtil.TimePeriod timePeriod) DatamartContext.Calendar.timePeriodAsFilter
(CalendarUtil.TimePeriod timePeriod, String dateDimFieldName) Helper method to build a filter representingdateDimFieldName
in[timePeriod.startPeriod, timePeriod.endPeriod]
Note the inclusion on both ends; this is to accommodate the most frequent use case where the TimePeriod is a single period, for example InvoiceDate in [2015,2015].