Package org.eclnt.ccaddons.dof.util
Class DOFObjectListPersistor
java.lang.Object
org.eclnt.ccaddons.dof.util.DOFObjectListPersistor
- All Implemented Interfaces:
IDOFObjectPersistor
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.eclnt.ccaddons.dof.IDOFObjectPersistor
IDOFObjectPersistor.QueryResult
-
Constructor Summary
ConstructorsConstructorDescriptionDOFObjectListPersistor
(DOFObjectList dofObjectList) DOFObjectListPersistor
(DOFObjectList dofObjectList, boolean useInstancesList) Constructor iwth passing the list asDOFObjectList
.DOFObjectListPersistor
(DOFObjectType objectType) DOFObjectListPersistor
(DOFObjectType objectType, List<DOFObject> instances) DOFObjectListPersistor
(DOFObjectType objectType, List<DOFObject> instances, boolean useInstancesList) Constructor with directly passing a list of DOFObjects. -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery
(DOFObjectType objectType, DOFObjectFilter filter) void
boolean
boolean
boolean
readDistinctValues
(DOFObjectType objectType, DOFPropertyType property) void
void
void
setListener
(DOFObjectListPersistor.IListener listener)
-
Constructor Details
-
DOFObjectListPersistor
-
DOFObjectListPersistor
public DOFObjectListPersistor(DOFObjectType objectType, List<DOFObject> instances, boolean useInstancesList) Constructor with directly passing a list of DOFObjects.- Parameters:
objectType
-instances
- List of instances.useInstancesList
- If set to true then the list that is passed as instance-list in the instances-parameter is directly used by the persistor. Otherwise a parallel instances list is used.
-
DOFObjectListPersistor
-
DOFObjectListPersistor
Constructor iwth passing the list asDOFObjectList
.- Parameters:
dofObjectList
-useInstancesList
- If set to true then the persistor directly used the list of the dofObjectList- parameter.
-
DOFObjectListPersistor
-
-
Method Details
-
setListener
-
init
- Specified by:
init
in interfaceIDOFObjectPersistor
-
executeQuery
public IDOFObjectPersistor.QueryResult executeQuery(DOFObjectType objectType, DOFObjectFilter filter) - Specified by:
executeQuery
in interfaceIDOFObjectPersistor
-
readDistinctValues
- Specified by:
readDistinctValues
in interfaceIDOFObjectPersistor
-
getObjects
-
getRemovedObjects
-
save
- Specified by:
save
in interfaceIDOFObjectPersistor
-
remove
- Specified by:
remove
in interfaceIDOFObjectPersistor
-
isAbleToPersistInstances
public boolean isAbleToPersistInstances()- Specified by:
isAbleToPersistInstances
in interfaceIDOFObjectPersistor
-
isAbleToQuery
public boolean isAbleToQuery()- Specified by:
isAbleToQuery
in interfaceIDOFObjectPersistor
-
isPermanent
public boolean isPermanent()- Specified by:
isPermanent
in interfaceIDOFObjectPersistor
-