|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prevayler.implementation.Capsule
public abstract class Capsule
| Constructor Summary | |
|---|---|
protected |
Capsule(byte[] serialized)
|
protected |
Capsule(Object transaction,
Serializer journalSerializer,
boolean transactionDeepCopyMode)
|
| Method Summary | |
|---|---|
abstract Capsule |
cleanCopy()
Makes a clean copy of this capsule that will have its own query result fields. |
Object |
deserialize(Serializer journalSerializer)
Deserializes the contained Transaction or TransactionWithQuery. |
void |
executeOn(Object prevalentSystem,
Date executionTime,
Serializer journalSerializer)
Executes a freshly deserialized copy of the transaction by default. |
protected abstract void |
justExecute(Object transaction,
Object prevalentSystem,
Date executionTime)
Actually executes the Transaction or TransactionWithQuery. |
byte[] |
serialized()
Gets the serialized representation of the transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Capsule(Object transaction,
Serializer journalSerializer,
boolean transactionDeepCopyMode)
protected Capsule(byte[] serialized)
| Method Detail |
|---|
public byte[] serialized()
public Object deserialize(Serializer journalSerializer)
public void executeOn(Object prevalentSystem,
Date executionTime,
Serializer journalSerializer)
configureTransactionDeepCopy was set to true on your PrevaylerFactory, this will execute the transaction directly. The execution will synchronize on the prevalentSystem.
protected abstract void justExecute(Object transaction,
Object prevalentSystem,
Date executionTime)
public abstract Capsule cleanCopy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||