Interface EntityBeanRebinder
- All Known Implementing Classes:
EntityBeanRebinderImpl
public interface EntityBeanRebinder
This service is due to apply incoming entity data.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Entity
rebind
(EntityRebindingData entityData, RebindMode rebindMode) Create or update an entity.default Entity
rebind
(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration) Create or update an entity.rebind
(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration, boolean setDefaultValues) Create or update an entity.rebindAndCollect
(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration) same asrebind(EntityRebindingData, RebindMode, RebindLimitConfiguration)
, but collect all entities that are created or updatedrebindAndCollect
(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration, EntityBeanRebinder.RebindCollector rebindCollector) same asrebindAndCollect(EntityRebindingData, RebindMode, RebindLimitConfiguration)
but using an existing collectorrebindAndCollect
(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration, EntityBeanRebinder.RebindCollector rebindCollector, boolean setDefaultValues) same asrebindAndCollect(EntityRebindingData, RebindMode, RebindLimitConfiguration)
but using an existing collector
-
Method Details
-
rebind
Create or update an entity. The givenRebindMode
controls the rebinding.- Parameters:
entityData
- The entity data to rebind.rebindMode
- The mode of the rebinding.- Returns:
- the rebound entity
-
rebind
default Entity rebind(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration) Create or update an entity. The givenRebindMode
controls the rebinding. The givenRebindLimitConfiguration
controls which entities are created or adjusted- Parameters:
entityData
- The entity data to rebind.rebindMode
- The mode of the rebinding.limitConfiguration
- Caller defined limits on what is allowed to get rebound- Returns:
- the rebound entity
-
rebind
Entity rebind(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration, boolean setDefaultValues) Create or update an entity. The givenRebindMode
controls the rebinding. The givenRebindLimitConfiguration
controls which entities are created or adjusted- Parameters:
entityData
- The entity data to rebind.rebindMode
- The mode of the rebinding.limitConfiguration
- Caller defined limits on what is allowed to get reboundsetDefaultValues
- define if default values should be set for new entities (default true)- Returns:
- the rebound entity
-
rebindAndCollect
Tuple2<Entity,EntityBeanRebinder.RebindCollector> rebindAndCollect(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration) same asrebind(EntityRebindingData, RebindMode, RebindLimitConfiguration)
, but collect all entities that are created or updated- Returns:
- a tuple containing the main entity that was rebound and all entities that were created or updated
-
rebindAndCollect
default Tuple2<Entity,EntityBeanRebinder.RebindCollector> rebindAndCollect(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration, EntityBeanRebinder.RebindCollector rebindCollector) same asrebindAndCollect(EntityRebindingData, RebindMode, RebindLimitConfiguration)
but using an existing collector- Parameters:
rebindCollector
- the collector to use- Returns:
- a tuple containing the main entity that was rebound and all entities that were created or updated
-
rebindAndCollect
Tuple2<Entity,EntityBeanRebinder.RebindCollector> rebindAndCollect(EntityRebindingData entityData, RebindMode rebindMode, RebindLimitConfiguration limitConfiguration, EntityBeanRebinder.RebindCollector rebindCollector, boolean setDefaultValues) same asrebindAndCollect(EntityRebindingData, RebindMode, RebindLimitConfiguration)
but using an existing collector- Parameters:
rebindCollector
- the collector to usesetDefaultValues
- define if default values should be set for new entities (default true)- Returns:
- a tuple containing the main entity that was rebound and all entities that were created or updated
-