pt.ist.fenixframework.txintrospector
Interface TxIntrospector

Package class diagram package TxIntrospector
All Known Implementing Classes:
TxStats

public interface TxIntrospector

The TxIntrospector class allows access to internal details from transactions executed in the system.


Nested Class Summary
static class TxIntrospector.Entry
          Used to represent a read or write-set entry.
static class TxIntrospector.RelationChangelog
          Used to represent a change to a relationship between two objects.
 
Field Summary
static String TXINTROSPECTOR_ON_CONFIG_KEY
           
static String TXINTROSPECTOR_ON_CONFIG_VALUE
           
 
Method Summary
 void addModifiedRelation(TxIntrospector.RelationChangelog relationChangelog)
          Adds the RelationChangeLog to the list of relations changed during this transaction.
 Collection<DomainObject> getDirectlyModifiedObjects()
          Returns a Collection containing objects which had any of their slots modified, excluding those that only had relationship changes.
 Collection<DomainObject> getModifiedObjects()
          Returns a Collection containing both objects which had any of their slots modified and those that had relationship changes.
 Collection<DomainObject> getNewObjects()
          Returns a Collection containing new objects created during this transaction.
 Collection<TxIntrospector.Entry> getReadSetLog()
          Returns the read-set of this transaction.
 Collection<TxIntrospector.RelationChangelog> getRelationsChangelog()
          Returns a Collection containing the relations changed during this transaction.
 Collection<TxIntrospector.Entry> getWriteSetLog()
          Returns the write-set of this transaction.
 

Field Detail

TXINTROSPECTOR_ON_CONFIG_KEY

static final String TXINTROSPECTOR_ON_CONFIG_KEY
See Also:
Constant Field Values

TXINTROSPECTOR_ON_CONFIG_VALUE

static final String TXINTROSPECTOR_ON_CONFIG_VALUE
See Also:
Constant Field Values
Method Detail

getNewObjects

Collection<DomainObject> getNewObjects()
Returns a Collection containing new objects created during this transaction.

Returns:
Collection of new objects

getDirectlyModifiedObjects

Collection<DomainObject> getDirectlyModifiedObjects()
Returns a Collection containing objects which had any of their slots modified, excluding those that only had relationship changes.

Returns:
Collection of directly modified objects

getModifiedObjects

Collection<DomainObject> getModifiedObjects()
Returns a Collection containing both objects which had any of their slots modified and those that had relationship changes.

Returns:
Collection of modified objects

getReadSetLog

Collection<TxIntrospector.Entry> getReadSetLog()
Returns the read-set of this transaction.

Returns:
Read-set of the this transaction

getWriteSetLog

Collection<TxIntrospector.Entry> getWriteSetLog()
Returns the write-set of this transaction.

Returns:
Write-set of the this transaction

getRelationsChangelog

Collection<TxIntrospector.RelationChangelog> getRelationsChangelog()
Returns a Collection containing the relations changed during this transaction.

Returns:
Collection of relation changes

addModifiedRelation

void addModifiedRelation(TxIntrospector.RelationChangelog relationChangelog)
Adds the RelationChangeLog to the list of relations changed during this transaction.

Parameters:
relationChangelog - The change log to be added.


Copyright © 2013. All Rights Reserved.