org.sormula.operation
Class FullModify<R>

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

Deprecated.

@Deprecated
public class FullModify<R>
extends java.lang.Object

Use ModifyOperation.modify(Object) or ModifyOperation.modifyAll(Collection) or ModifyOperation.modify(Object...) instead of this class. ModifyOperation performed as prepare, execute, and close in one method. Base class for FullInsert, FullUpdate, and FullDelete.

Since:
1.0
Author:
Jeff Miller

Constructor Summary
FullModify(ModifyOperation<R> modifyOperation)
          Deprecated. Constructs for a modify operation.
 
Method Summary
 int execute(R row)
          Deprecated. Modifies one row.
 int executeAll(java.util.Collection<R> rows)
          Deprecated. Modifies a collection of rows.
 int executeObject(java.lang.Object... parameters)
          Deprecated. Modifies row(s) with sql parametes as Objects
 ModifyOperation<R> getModifyOperation()
          Deprecated. Gets modify operation supplied in constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullModify

public FullModify(ModifyOperation<R> modifyOperation)
Deprecated. 
Constructs for a modify operation.

Parameters:
modifyOperation - perform for this modify operation
Method Detail

getModifyOperation

public ModifyOperation<R> getModifyOperation()
Deprecated. 
Gets modify operation supplied in constructor.

Returns:
operation that will modify rows

execute

public int execute(R row)
            throws OperationException
Deprecated. 
Modifies one row. Set parameters, executes, closes.

Parameters:
row - row to use for parameters
Returns:
ModifyOperation.getRowsAffected()
Throws:
OperationException - if error

executeAll

public int executeAll(java.util.Collection<R> rows)
               throws OperationException
Deprecated. 
Modifies a collection of rows. Set parameters, executes, closes.

Parameters:
rows - collection of rows to use as parameters
Returns:
ModifyOperation.getRowsAffected()
Throws:
OperationException - if error

executeObject

public int executeObject(java.lang.Object... parameters)
                  throws OperationException
Deprecated. 
Modifies row(s) with sql parametes as Objects

Parameters:
parameters - operation parameters as objects (see ModifyOperation.setParameters(Object...))
Returns:
count of rows affected
Throws:
OperationException - if error