|
||||||||||
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.FullSave<R>
R
- class type which contains members for columns of a row in a table
@Deprecated public class FullSave<R>
Use SaveOperation.save(Object)
or
SaveOperation.saveAll(Collection)
or
SaveOperation.save(Object...)
instead of this class.
SaveOperation
performed as prepare, execute, and close in one method.
Constructor Summary | |
---|---|
FullSave(SaveOperation<R> saveOperation)
Deprecated. Constructs for a save operation. |
|
FullSave(Table<R> table)
Deprecated. Constructs for a Table to insert new rows and update exitsting rows by primary key. |
|
FullSave(Table<R> table,
java.lang.String whereConditionName)
Deprecated. Constructs for a Table to insert new rows and update exitsting rows by
using where condition. |
Method Summary | |
---|---|
SaveOperation<R> |
getSaveOperation()
Deprecated. Gets the save 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 FullSave(SaveOperation<R> saveOperation)
Example:
SaveOperation<Student> someSaveOperation = ... List<Student> studentList = ... new FullSave<Student>(someSaveOperation).executeAll(studentList);
saveOperation
- perform for this operationpublic FullSave(Table<R> table) throws SormulaException
Table
to insert new rows and update exitsting rows by primary key.
Example:
A simpler alternative is to useDatabase database = ... Table<Student> table = database.getTable(Student.class); Student student = ... student.setGraduationDate(...); new FullSave<Student>(table).execute(student);
Table.save(Object)
or Table.saveAll(java.util.Collection)
.
table
- save to this table
SormulaException
public FullSave(Table<R> table, java.lang.String whereConditionName) throws SormulaException
Table
to insert new rows and update exitsting rows by
using where condition. This constructor is not typically used.
table
- save to this tablewhereConditionName
- name of where condition to use; see SqlOperation.setWhere(String)
SormulaException
Method Detail |
---|
public SaveOperation<R> getSaveOperation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |