public static <T, ID> int deleteIds(Dao<T, ID> dao, TableInfo<T, ID> tableInfo,
			DatabaseConnection databaseConnection, Collection<ID> ids, ObjectCache objectCache) throws SQLException {
		MappedDeleteCollection<T, ID> deleteCollection = MappedDeleteCollection.build(dao, tableInfo, ids.size());
		Object[] fieldObjects = new Object[ids.size()];
		FieldType idField = tableInfo.getIdField();
		int objC = 0;
		for (ID id : ids) {
			fieldObjects[objC] = idField.convertJavaFieldToSqlArgValue(id);
			objC++;
		}
		return updateRows(databaseConnection, tableInfo.getDataClass(), deleteCollection, fieldObjects, objectCache);
	}
public static < T , ID > int deleteIds ( Dao < T , ID > dao , TableInfo < T , ID > tableInfo , DatabaseConnection databaseConnection , Collection < ID > ids , ObjectCache objectCache ) throws SQLException { MappedDeleteCollection < T , ID > deleteCollection = MappedDeleteCollection . build ( dao , tableInfo , ids . size ( ) ) ; Object [ ] fieldObjects = new Object [ ids . size ( ) ] ; FieldType idField = tableInfo . getIdField ( ) ; int objC = 0 ; for ( ID id : ids ) { fieldObjects [ objC ] = idField . convertJavaFieldToSqlArgValue ( id ) ; objC ++ ; } return updateRows ( databaseConnection , tableInfo . getDataClass ( ) , deleteCollection , fieldObjects , objectCache ) ; }
Delete all of the objects in the collection. This builds a {@link MappedDeleteCollection} on the fly because the
ids could be variable sized.