Class DynOCreator<T extends DynO>
java.lang.Object
overit.geocallapp.utilities.core.data.DynOCreator<T>
- Type Parameters:
T- the generic type that extendsDynO
- Direct Known Subclasses:
BundleCreator,CapacityPlanningScenarioDetailCreator,CrewShellDailyPlanCreator,CrewShellMemberCreator,CrewShellUserCreator,DefaultDynOCreator,ExpectedMaterialCreator,HolidayCreator,InterventionAggregateCreator,MobileAttachmentCreator,SchedulingProposalDetailCreator,SerializedMaterialWithAccountCreator,SharedResourceWithLogCreator,SharedResourceWithLogCreator,StockSerializedMaterialDetailCreator,TeamShiftCompositionCreator,TransferRequestCreator,UnavailabilityMovementAddressCreator,WarehouseCreator,WarehouseMaterialDetailCreator,WarehouseMaterialStockCreator,WarehouseOperationCreator,WoAgendaMaterialCreator,WorkOrderOperationAccountedMaterialCreator
Abstract class that defines a generic creator for a
The
Provides a framework for creating specific
DynO object.The
DynO object is instantiated starting from the given ClassResolver of type T. Provides a framework for creating specific
DynO implementations through customizable class resolution.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class resolver.protected voidinitialize(DBView queryResult, PoolKit poolKit) Initialize the creator.abstract TCreates aDynOobject of type T from the provided values map.protected voidsetClassResolver(ClassResolver<T> classResolver) Sets the class resolver.
-
Constructor Details
-
DynOCreator
public DynOCreator()
-
-
Method Details
-
getClassResolver
Returns the class resolver.- Returns:
- the class resolver
-
setClassResolver
Sets the class resolver.- Parameters:
classResolver- the class resolver
-
initialize
Initialize the creator.- Parameters:
queryResult- the result of the querypoolKit- thePoolKitto use for the transaction
-
make
Creates aDynOobject of type T from the provided values map. Implementation-specific logic determines how the values are used to construct the object.- Parameters:
values- the map of values to use for object creation- Returns:
- the
DynOobject of type T
-