Class Removable
java.lang.Object
org.operaton.bpm.engine.test.util.Removable
Class modeling the corresponding entity removal of Domain Classes.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Removableof(ProcessEngine engine) static Removableof(ProcessEngineTestRule rule) Static Creation method.voidRemoves the associated mapped entities from the db for the given class.voidRemoves the associated mapped entities from the db for the given classes.voidRemoves associated mapped entities for all known classes.
-
Method Details
-
of
Static Creation method.- Parameters:
rule- the process engine test rule, non-null.- Returns:
- the
Removable
-
of
-
remove
Removes the associated mapped entities from the db for the given class.- Parameters:
clazz- the given class to delete associated entities for- Throws:
org.operaton.bpm.engine.test.util.EntityRemoveException- in case anything fails during the process of deletion
-
remove
public void remove(Class<?>[] classes) throws org.operaton.bpm.engine.test.util.EntityRemoveException Removes the associated mapped entities from the db for the given classes.- Parameters:
classes- the given classes to delete associated entities for- Throws:
org.operaton.bpm.engine.test.util.EntityRemoveException- in case anything fails during the process of deletion for any of the classes
-
removeAll
public void removeAll() throws org.operaton.bpm.engine.test.util.EntityRemoveExceptionRemoves associated mapped entities for all known classes.- Throws:
org.operaton.bpm.engine.test.util.EntityRemoveException- in case anything fails during the process of deletion for any of the classes
-
isInitialized
public boolean isInitialized()
-