SPT Object Database API

com.sptci.prevayler.transaction
Class Transaction.Parameter

java.lang.Object
  extended by com.sptci.prevayler.transaction.Transaction.Parameter
All Implemented Interfaces:
Serializable
Enclosing class:
Transaction<P>

public static class Transaction.Parameter
extends Object
implements Serializable

A mapping object used to capture the class type and instance of a parameter to a method defined on the prevalent system.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  Class type
          The class of the parameter.
private  Object value
          The instance of the parameter.
 
Constructor Summary
Transaction.Parameter(Class type, Object value)
          Craete a new instance of the parameter with the specified values.
Transaction.Parameter(Object value)
          Create a new instance using the specified parameter value.
 
Method Summary
 Class getType()
          Return the type field.
 Object getValue()
          Return the value field.
 
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

type

private final Class type
The class of the parameter.


value

private final Object value
The instance of the parameter.

Constructor Detail

Transaction.Parameter

public Transaction.Parameter(Class type,
                             Object value)
Craete a new instance of the parameter with the specified values.

Parameters:
type - The type to use.
value - The value to use.

Transaction.Parameter

public Transaction.Parameter(Object value)
Create a new instance using the specified parameter value. The method declaration should use the class of the specified value and not a super-class.

Parameters:
value - The value to use. The type is set from Object.getClass() method.
Method Detail

getType

public Class getType()
Return the type field.

Returns:
The reference to type.

getValue

public Object getValue()
Return the value field.

Returns:
The reference to value.

SPT Object Database API