Class DateDelimitationConfigBuilder
java.lang.Object
ch.tocco.nice2.entityoperation.api.datedelimited.DateDelimitationConfigBuilder
builder used to create a
DateDelimitationConfigBuilder.DateDelimitationConfig
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindNext()
calls findNext(boolean findNext) with truefindNext
(boolean findNext) find the next active entity from the start OR end date based on the order given to the configwithDate
(org.joda.time.LocalDate date) withEndField
(String endField) add a field that needs to be set on active entitywithOrder
(String ordering, Ordering.Direction direction) withRelation
(String relationName, Entity entity) add a relation that needs to be set on active entitywithStartField
(String startField)
-
Method Details
-
forEntity
-
withStartField
- Parameters:
startField
- field to use as start date
-
withEndField
- Parameters:
endField
- field to use as end date
-
withRelation
add a relation that needs to be set on active entity- Parameters:
entity
- entity that needs to be related
-
withField
add a field that needs to be set on active entity- Parameters:
fieldName
- field that needs to be setvalue
- value that needs to be set
-
findNext
calls findNext(boolean findNext) with true -
findNext
find the next active entity from the start OR end date based on the order given to the config -
withOrder
-
withOrder
-
withDate
- Parameters:
date
- the date to use as the reference date
-
getConfig
- Throws:
PersistException
-