org.formaria.data.pojo
Class HibernatePojoModel
java.lang.Object
org.formaria.aria.data.DataModel
org.formaria.data.pojo.PojoModel
org.formaria.data.pojo.PersistentPojoModel
org.formaria.data.pojo.HibernatePojoModel
public class HibernatePojoModel
- extends PersistentPojoModel
A model node for interacting with Hibernate POJOs.
Copyright (c) Formaria Ltd., 2008
License: see license.txt
| Fields inherited from class org.formaria.data.pojo.PojoModel |
adapter, collectionElements, dataSource, dirty, elIdx, getterArgTypes, getterArgValues, pojo, properties, propertyKey, propertyName |
|
Method Summary |
protected boolean |
getterRequiresTransaction(PojoModel childNode)
Check if an active transaciton is required before invoking a getter
method that is used to obtain the POJO stored in the specified model node |
protected boolean |
setterRequiresTransaction(PojoModel childNode,
java.lang.Object value)
Check if an active transaction is required before invoking a setter
method that is used to obtain the POJO stored in the specified model node |
| Methods inherited from class org.formaria.data.pojo.PojoModel |
append, append, clear, get, get, get, getAttribName, getAttribute, getAttribValue, getAttribValueAsDouble, getAttribValueAsDouble, getAttribValueAsInt, getAttribValueAsString, getCollectionElements, getDataSource, getElIdx, getGetterArgTypes, getGetterArgValues, getId, getNumAttributes, getNumChildren, getPojo, getPropertyKey, getPropertyName, getValueAsDouble, getValueAsInt, getValueAsString, hasAutoId, hashCode, hasSetter, isAlwaysDirty, isCollection, isDirty, isTransient, isTransient, markSubtreeAsAlwaysDirty, markSubtreeAsDirty, retrieveModelNode, saveModelNode, set, set, setAlwaysDirty, setAttribValue, setAttribValue, setDirty, setId, setNumChildren, setPojo, sync |
| Methods inherited from class org.formaria.aria.data.DataModel |
addModelListener, fireModelUpdated, getParent, getTagName, hasAutoId, prefixOutputPath, removeChildren, reset, resetAttributes, setNumAttributes, setParent, setTagName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
HibernatePojoModel
public HibernatePojoModel(DataModel parent,
java.lang.String subPath,
PojoDataSource ds)
- Creates a new instance of HibernatePojoModel
- Parameters:
parent - the parent model nodesubPath - string in the format:
propertyName(property arguments)[ collection idx]
as it appears in a binding path.ds - the data source object
HibernatePojoModel
protected HibernatePojoModel(DataModel parent,
java.lang.Object pojo,
PojoDataSource ds)
- Creates a new instance of HibernatePojoModel
- Parameters:
parent - the parent model nodeobject - the underlying pojods - the data source object
getterRequiresTransaction
protected boolean getterRequiresTransaction(PojoModel childNode)
- Check if an active transaciton is required before invoking a getter
method that is used to obtain the POJO stored in the specified model node
- Overrides:
getterRequiresTransaction in class PersistentPojoModel
- Parameters:
childNode - the POJO model node whose getter is to be queried
- Returns:
- true if an active transaction is required, false otherwise
setterRequiresTransaction
protected boolean setterRequiresTransaction(PojoModel childNode,
java.lang.Object value)
- Check if an active transaction is required before invoking a setter
method that is used to obtain the POJO stored in the specified model node
- Overrides:
setterRequiresTransaction in class PersistentPojoModel
- Parameters:
childNode - the POJO model node whose setter is to be queriedvalue - the value of the setter argument
- Returns:
- true if an active transactio is required, false otherwise