SPT Object Database API

com.sptci.prevayler.transaction
Class Save<P extends PrevalentObject>

java.lang.Object
  extended by com.sptci.prevayler.transaction.Transaction<P>
      extended by com.sptci.prevayler.transaction.Save<P>
All Implemented Interfaces:
Serializable, TransactionWithQuery

public class Save<P extends PrevalentObject>
extends Transaction<P>

A transaction for adding a new prevalent object instance to the prevalent system. This transaction merely makes it more convenient to add a new prevalent object than directly invoking Transaction.

© Copyright 2008 Sans Pareil Technologies, Inc.

Version:
$Id: Save.java 15 2008-07-12 13:39:16Z sptrakesh $
Author:
Rakesh Vidyadharan 2008-05-24
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sptci.prevayler.transaction.Transaction
Transaction.Parameter
 
Field Summary
private static String METHOD
          The name of the method in PrevalentSystem that is invoked in this transaction.
private static long serialVersionUID
           
 
Constructor Summary
Save(P object)
          Create a new instance of the transaction using the specified prevalent object.
 
Method Summary
 
Methods inherited from class com.sptci.prevayler.transaction.Transaction
executeAndQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

METHOD

private static final String METHOD
The name of the method in PrevalentSystem that is invoked in this transaction.

See Also:
Constant Field Values
Constructor Detail

Save

public Save(P object)
Create a new instance of the transaction using the specified prevalent object.

Parameters:
object - The new prevalent object to add to the system.

SPT Object Database API