com.j256.ormlite.stmt.mapped
Class MappedDeleteCollection<T,ID>

java.lang.Object
  extended by com.j256.ormlite.stmt.mapped.BaseMappedStatement<T,ID>
      extended by 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

Field Summary
 
Fields inherited from class com.j256.ormlite.stmt.mapped.BaseMappedStatement
argFieldTypes, idField, logger, statement, tableInfo
 
Method Summary
static
<T,ID> int
deleteIds(DatabaseType databaseType, TableInfo<T,ID> tableInfo, DatabaseConnection databaseConnection, Collection<ID> ids)
          Delete all of the objects in the collection.
static
<T,ID> int
deleteObjects(DatabaseType databaseType, TableInfo<T,ID> tableInfo, DatabaseConnection databaseConnection, Collection<T> datas)
          Delete all of the objects in the collection.
 
Methods inherited from class com.j256.ormlite.stmt.mapped.BaseMappedStatement
convertIdToFieldObject, delete, extractIdToFieldObject, getFieldObjects, getStatement, insert, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.