org.sormula.operation
Class FullUpdate<R>

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

Deprecated.

@Deprecated
public class FullUpdate<R>
extends FullModify<R>

Use UpdateOperation.update(Object) or UpdateOperation.updateAll(Collection) or UpdateOperation.update(Object...) instead of this class. UpdateOperation performed as prepare, execute, and close in one method.

Since:
1.0
Author:
Jeff Miller

Constructor Summary
FullUpdate(Table<R> table)
          Deprecated. Constructs for a Table to update by primary key.
FullUpdate(Table<R> table, java.lang.String whereConditionName)
          Deprecated. Constructs for a Table.
FullUpdate(UpdateOperation<R> updateOperation)
          Deprecated. Constructs for a update operation.
 
Method Summary
 UpdateOperation<R> getUpdateOperation()
          Deprecated. Gets the update 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

FullUpdate

public FullUpdate(UpdateOperation<R> updateOperation)
Deprecated. 
Constructs for a update operation. Use this constructor when update operation is already created.

Example:

 UpdateOperation<Student> someUpdateOperation = ...
 List<Student> studentList = ...
 new FullListSelect<Student>(someUpdateOperation).executeAll(studentList);
 

Parameters:
updateOperation - perform for this update operation

FullUpdate

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

Example:

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

Parameters:
table - update this table
Throws:
SormulaException

FullUpdate

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

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

getUpdateOperation

public UpdateOperation<R> getUpdateOperation()
Deprecated. 
Gets the update operation supplied in constructor.

Returns:
operation that will update rows