org.sormula.operation
Class FullInsert<R>

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

Deprecated.

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

Use InsertOperation.insert(Object) or InsertOperation.insertAll(Collection) or InsertOperation.insert(Object...) instead of this class. InsertOperation performed as prepare, execute, and close in one method.

Since:
1.0
Author:
Jeff Miller

Constructor Summary
FullInsert(InsertOperation<R> insertOperation)
          Deprecated. Constructs for a insert operation.
FullInsert(Table<R> table)
          Deprecated. Constructs for a Table to insert into table.
 
Method Summary
 InsertOperation<R> getInsertOperation()
          Deprecated. Gets insert 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

FullInsert

public FullInsert(InsertOperation<R> insertOperation)
Deprecated. 
Constructs for a insert operation. Use this constructor when insert operation is already created.

Example:

 InsertOperation<Student> someInsertOperation = ...
 List<Student> studentList = ...
 new FullInsert<Student>(someInsertOperation).executeAll(studentList);
 

Parameters:
insertOperation - perform for this insert operation

FullInsert

public FullInsert(Table<R> table)
           throws SormulaException
Deprecated. 
Constructs for a Table to insert into table.

Example:

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

Parameters:
table - insert into this table
Throws:
SormulaException
Method Detail

getInsertOperation

public InsertOperation<R> getInsertOperation()
Deprecated. 
Gets insert operation supplied in constructor.

Returns:
operation to insert rows