|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.prevayler.transaction.Transaction<P>
public class Transaction<P>
A general purpose transaction used to execute transactional methods on the prevalent system.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Nested Class Summary | |
|---|---|
static class |
Transaction.Parameter
A mapping object used to capture the class type and instance of a parameter to a method defined on the prevalent system. |
| Field Summary | |
|---|---|
private String |
method
The name of the transactional method being invoked. |
private static long |
serialVersionUID
|
private Class[] |
types
The types of the parameters for the transactional method. |
private Object[] |
values
The values for types to specify in the method invocation. |
| Constructor Summary | |
|---|---|
Transaction(String method,
Collection<Transaction.Parameter> parameters)
Create a new instance of the transaction with the specified values. |
|
Transaction(String method,
Transaction.Parameter parameter)
Create a new instance of the transaction with the specified values. |
|
Transaction(String method,
Transaction.Parameter[] parameters)
Create a new instance of the transaction with the specified values. |
|
| Method Summary | |
|---|---|
P |
executeAndQuery(Object prevalentSystem,
Date executionTime)
Implementation of the interface method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final String method
private final Class[] types
private final Object[] values
types to specify in the method invocation.
| Constructor Detail |
|---|
public Transaction(String method,
Transaction.Parameter parameter)
method - The method name to use.parameter - The parameter for the method.
public Transaction(String method,
Collection<Transaction.Parameter> parameters)
method - The method name to use.parameters - The parameters for the method.
public Transaction(String method,
Transaction.Parameter[] parameters)
method - The method name to use.parameters - The array of parameters for the method.| Method Detail |
|---|
public P executeAndQuery(Object prevalentSystem,
Date executionTime)
throws Exception
method
on the prevalent system with the specified values.
executeAndQuery in interface TransactionWithQueryprevalentSystem - The prevalent system on which the transaction
is to be performed and the query executed.executionTime - The timestamp for the transaction.
PrevalentException - Usually thrown when the prevalent system
traps errors that are checked by the system.
Exception - If unknown errors are encountered while executing the
transaction or query.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||