com.j256.ormlite.stmt.mapped
Class MappedDeleteCollection<T,ID>
java.lang.Object
com.j256.ormlite.stmt.mapped.BaseMappedStatement<T,ID>
com.j256.ormlite.stmt.mapped.MappedDeleteCollection<T,ID>
public class MappedDeleteCollection<T,ID>
- extends BaseMappedStatement<T,ID>
A mapped statement for deleting objects that correspond to a collection of IDs.
- Author:
- graywatson
Method Summary |
static
|
deleteIds(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<ID> ids,
ObjectCache objectCache)
Delete all of the objects in the collection. |
static
|
deleteObjects(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<T> datas,
ObjectCache objectCache)
Delete all of the objects in the collection. |
deleteObjects
public static <T,ID> int deleteObjects(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<T> datas,
ObjectCache objectCache)
throws SQLException
- Delete all of the objects in the collection. This builds a
MappedDeleteCollection
on the fly because the
datas could be variable sized.
- Throws:
SQLException
deleteIds
public static <T,ID> int deleteIds(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<ID> ids,
ObjectCache objectCache)
throws SQLException
- Delete all of the objects in the collection. This builds a
MappedDeleteCollection
on the fly because the
ids could be variable sized.
- Throws:
SQLException
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.