|
||||||||||
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.FullUpdate<R>
R
- class type which contains members for columns of a row in a table
@Deprecated public class FullUpdate<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.
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 |
---|
public FullUpdate(UpdateOperation<R> updateOperation)
Example:
UpdateOperation<Student> someUpdateOperation = ... List<Student> studentList = ... new FullListSelect<Student>(someUpdateOperation).executeAll(studentList);
updateOperation
- perform for this update operationpublic FullUpdate(Table<R> table) throws SormulaException
Table
to update by primary key.
Example:
A simpler alternative is to useDatabase database = ... Table<Student> table = database.getTable(Student.class); Student student = ... student.setGraduationDate(...); new FullUpdate<Student>(table).execute(student);
Table.update(Object)
or Table.updateAll(java.util.Collection)
.
table
- update this table
SormulaException
public FullUpdate(Table<R> table, java.lang.String whereConditionName) throws SormulaException
Table
. Updates a table based upon a where condition
and the values in a row object. This constructor is not typically used.
table
- update this tablewhereConditionName
- name of where condition to use; see SqlOperation.setWhere(String)
SormulaException
Method Detail |
---|
public UpdateOperation<R> getUpdateOperation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |