|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sormula.operation.FullModify<R> org.sormula.operation.FullDelete<R>
R
- class type which contains members for columns of a row in a table
@Deprecated public class FullDelete<R>
Use DeleteOperation.delete(Object)
or
DeleteOperation.deleteAll(Collection)
or
DeleteOperation.delete(Object...)
instead of this class.
DeleteOperation
performed as prepare, execute, and close in one method.
Constructor Summary | |
---|---|
FullDelete(DeleteOperation<R> deleteOperation)
Deprecated. Constructs for a delete operation. |
|
FullDelete(Table<R> table)
Deprecated. Constructs for a Table to delete by primary key. |
|
FullDelete(Table<R> table,
java.lang.String whereConditionName)
Deprecated. Constructs for a Table . |
Method Summary | |
---|---|
DeleteOperation<R> |
getDeleteOperation()
Deprecated. Gets delect operation supplied in constructor. |
Methods inherited from class org.sormula.operation.FullModify |
---|
execute, executeAll, executeObject, getModifyOperation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullDelete(DeleteOperation<R> deleteOperation)
Example:
DeleteOperation<Student> someDeleteOperation = ... List<Student> studentList = ... new FullDelete<Student>(someDeleteOperation).executeAll(studentList);
deleteOperation
- perform for this delete operationpublic FullDelete(Table<R> table) throws SormulaException
Table
to delete by primary key.
Example:
A simpler alternative is to useDatabase database = ... Table<Student> table = database.getTable(Student.class); Student student = ... new FullDelete<Student>(table).execute(student);
Table.delete(Object)
or Table.deleteAll(java.util.Collection)
.
table
- delete from this table
SormulaException
public FullDelete(Table<R> table, java.lang.String whereConditionName) throws SormulaException
Table
. Deletes a table based upon a where condition
and the values in a row object. This constructor is not typically used.
table
- delete from this tablewhereConditionName
- name of where condition to use; see SqlOperation.setWhere(String)
SormulaException
Method Detail |
---|
public DeleteOperation<R> getDeleteOperation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |