org.formaria.editor.data.pojo
Class PersistentPojoAdapterEx

java.lang.Object
  extended by org.formaria.editor.data.pojo.PojoAdapterEx
      extended by org.formaria.editor.data.pojo.PersistentPojoAdapterEx

public class PersistentPojoAdapterEx
extends PojoAdapterEx


Field Summary
 
Fields inherited from class org.formaria.editor.data.pojo.PojoAdapterEx
clazz, dataSource, getters, properties, setters
 
Constructor Summary
PersistentPojoAdapterEx(java.lang.Class cl, PersistentPojoDataSourceEx ds)
          Creates a new instance of PersistentPojoAdapterEx class.
 
Method Summary
protected  boolean requiresTransaction(java.lang.String propertyName)
          Indicates whether the property (its getter and setter )requires an active transaction
protected  void setTransaction(java.lang.String propertyName)
          Marks the the invocation of either the getter or the setter of the specified property requires an active transaction.
protected  void unsetTransaction(java.lang.String propertyName)
          Marks that the invocation of the getter or the setter of the specified property does not require an active transaction.
 
Methods inherited from class org.formaria.editor.data.pojo.PojoAdapterEx
addCollectionType, addTransientCollectionType, addTransientProperty, customizePojoProperty, findAccessors, findProperties, getAdaptedClass, getGettersBySig, getMethod, getNumChildren, getPojoDataSourceEx, getProperties, getProperty, getSetters, getSettersBySig, getSignature, getSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentPojoAdapterEx

public PersistentPojoAdapterEx(java.lang.Class cl,
                               PersistentPojoDataSourceEx ds)
Creates a new instance of PersistentPojoAdapterEx class.

Method Detail

setTransaction

protected void setTransaction(java.lang.String propertyName)
Marks the the invocation of either the getter or the setter of the specified property requires an active transaction.

Parameters:
propertyName - the name of the property whose getter requires an active transaction.

requiresTransaction

protected boolean requiresTransaction(java.lang.String propertyName)
Indicates whether the property (its getter and setter )requires an active transaction

Parameters:
propertyName - the name of the property whose getter is to be queried
Returns:
true if the specified getter exists and requires an active transaction, false otherwise

unsetTransaction

protected void unsetTransaction(java.lang.String propertyName)
Marks that the invocation of the getter or the setter of the specified property does not require an active transaction.