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
deleteObjects
public static <T,ID> int deleteObjects(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<T> datas)
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)
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
Copyright © 2011. All Rights Reserved.