de.greenrobot.dao
Class DeleteQuery
java.lang.Object
de.greenrobot.dao.DeleteQuery
- Type Parameters:
-
T
- The enitity class the query will delete from.
-
public class DeleteQuery
- extends java.lang.Object
-
A repeatable query for deleting entities.
New API note: this is more likely to change.
Method Summary |
void |
executeDeleteWithoutDetachingEntities()
Deletes all matching entities without detaching them from the identity scope (aka session/cache). |
void |
setParameter(int index, java.lang.Object parameter)
Sets the parameter (0 based) using the position in which it was added during building the query. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteQuery
public DeleteQuery(AbstractDao<T,?> dao,
java.lang.String sql,
java.util.Collection valueList)
executeDeleteWithoutDetachingEntities
public void executeDeleteWithoutDetachingEntities()
-
Deletes all matching entities without detaching them from the identity scope (aka session/cache). Note that this method may lead to stale entity objects in the session cache. Stale entities may be returned when loaded by their primary key, but not using queries.
-
setParameter
public void setParameter(int index,
java.lang.Object parameter)
-
Sets the parameter (0 based) using the position in which it was added during building the query.
-
Copyright © 2011-2012 greenrobot.de. All Rights Reserved.