org.sormula.operation
Class FullDelete<R>

java.lang.Object
  extended by org.sormula.operation.FullModify<R>
      extended by org.sormula.operation.FullDelete<R>
Type Parameters:
R - class type which contains members for columns of a row in a table

Deprecated.

@Deprecated
public class FullDelete<R>
extends FullModify<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.

Since:
1.0
Author:
Jeff Miller

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

FullDelete

public FullDelete(DeleteOperation<R> deleteOperation)
Deprecated. 
Constructs for a delete operation. Use this constructor when delete operation is already created.

Example:

 DeleteOperation<Student> someDeleteOperation = ...
 List<Student> studentList = ...
 new FullDelete<Student>(someDeleteOperation).executeAll(studentList);
 

Parameters:
deleteOperation - perform for this delete operation

FullDelete

public FullDelete(Table<R> table)
           throws SormulaException
Deprecated. 
Constructs for a Table to delete by primary key.

Example:

 Database database = ...
 Table<Student> table = database.getTable(Student.class);
 Student student = ...
 new FullDelete<Student>(table).execute(student);
 
A simpler alternative is to use Table.delete(Object) or Table.deleteAll(java.util.Collection).

Parameters:
table - delete from this table
Throws:
SormulaException

FullDelete

public FullDelete(Table<R> table,
                  java.lang.String whereConditionName)
           throws SormulaException
Deprecated. 
Constructs for a Table. Deletes a table based upon a where condition and the values in a row object. This constructor is not typically used.

Parameters:
table - delete from this table
whereConditionName - name of where condition to use; see SqlOperation.setWhere(String)
Throws:
SormulaException
Method Detail

getDeleteOperation

public DeleteOperation<R> getDeleteOperation()
Deprecated. 
Gets delect operation supplied in constructor.

Returns:
operation to delete rows