org.sormula.operation
Class FullSave<R>

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

Deprecated.

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

Since:
1.0
Author:
Jeff Miller

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

FullSave

public FullSave(SaveOperation<R> saveOperation)
Deprecated. 
Constructs for a save operation. Use this constructor when save operation is already created.

Example:

 SaveOperation<Student> someSaveOperation = ...
 List<Student> studentList = ...
 new FullSave<Student>(someSaveOperation).executeAll(studentList);
 

Parameters:
saveOperation - perform for this operation

FullSave

public FullSave(Table<R> table)
         throws SormulaException
Deprecated. 
Constructs for a Table to insert new rows and update exitsting rows by primary key.

Example:

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

Parameters:
table - save to this table
Throws:
SormulaException

FullSave

public FullSave(Table<R> table,
                java.lang.String whereConditionName)
         throws SormulaException
Deprecated. 
Constructs for a Table to insert new rows and update exitsting rows by using where condition. This constructor is not typically used.

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

getSaveOperation

public SaveOperation<R> getSaveOperation()
Deprecated. 
Gets the save operation supplied in constructor.

Returns:
operation that will save rows