|
||||||||||
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.FullInsert<R>
R
- class type which contains members for columns of a row in a table
@Deprecated public class FullInsert<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.
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 |
---|
public FullInsert(InsertOperation<R> insertOperation)
Example:
InsertOperation<Student> someInsertOperation = ... List<Student> studentList = ... new FullInsert<Student>(someInsertOperation).executeAll(studentList);
insertOperation
- perform for this insert operationpublic FullInsert(Table<R> table) throws SormulaException
Table
to insert into table.
Example:
A simpler alternative is to useDatabase database = ... Table<Student> table = database.getTable(Student.class); Student student = ... new FullInsert<Student>(table).execute(student);
Table.insert(Object)
or Table.insertAll(java.util.Collection)
.
table
- insert into this table
SormulaException
Method Detail |
---|
public InsertOperation<R> getInsertOperation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |