|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.ist.fenixframework.txintrospector.TxStats
public class TxStats
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface pt.ist.fenixframework.txintrospector.TxIntrospector |
---|
TxIntrospector.Entry, TxIntrospector.RelationChangelog |
Field Summary | |
---|---|
static boolean |
ENABLED
|
static RelationListener |
STATS_LISTENER
|
Fields inherited from interface pt.ist.fenixframework.txintrospector.TxIntrospector |
---|
TXINTROSPECTOR_ON_CONFIG_KEY, TXINTROSPECTOR_ON_CONFIG_VALUE |
Method Summary | |
---|---|
void |
addModifiedObject(DomainObject object)
|
void |
addModifiedRelation(TxIntrospector.RelationChangelog relation)
Adds the RelationChangeLog to the list of relations changed
during this transaction. |
void |
addNewObject(DomainObject object)
|
static boolean |
checkEnabled()
|
Collection<DomainObject> |
getDirectlyModifiedObjects()
Returns a Collection containing objects which had any of their slots modified, excluding those that only had relationship changes. |
static TxStats |
getInstance(TxStats txStats)
|
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. |
static TxStats |
newInstance()
|
String |
toString()
|
String |
unsafeToString()
Version of toString() that may fail because it uses the DomainObject's toString() operation to print them, as calling toString() on a DomainObject may cause further changes to objects or relations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean ENABLED
public static final RelationListener STATS_LISTENER
Method Detail |
---|
public static boolean checkEnabled()
public static TxStats newInstance()
public static TxStats getInstance(TxStats txStats)
public void addNewObject(DomainObject object)
public void addModifiedObject(DomainObject object)
public void addModifiedRelation(TxIntrospector.RelationChangelog relation)
TxIntrospector
RelationChangeLog
to the list of relations changed
during this transaction.
addModifiedRelation
in interface TxIntrospector
relation
- The change log to be added.public String toString()
toString
in class Object
public String unsafeToString()
public Collection<DomainObject> getNewObjects()
TxIntrospector
getNewObjects
in interface TxIntrospector
public Collection<DomainObject> getDirectlyModifiedObjects()
TxIntrospector
getDirectlyModifiedObjects
in interface TxIntrospector
public Collection<DomainObject> getModifiedObjects()
TxIntrospector
getModifiedObjects
in interface TxIntrospector
public Collection<TxIntrospector.Entry> getReadSetLog()
TxIntrospector
getReadSetLog
in interface TxIntrospector
public Collection<TxIntrospector.Entry> getWriteSetLog()
TxIntrospector
getWriteSetLog
in interface TxIntrospector
public Collection<TxIntrospector.RelationChangelog> getRelationsChangelog()
TxIntrospector
getRelationsChangelog
in interface TxIntrospector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |