org.formaria.editor.data.pojo
Class PersistentPojoDataSourceEx
java.lang.Object
org.formaria.data.DataSource
org.formaria.editor.data.pojo.PojoDataSourceEx
org.formaria.editor.data.pojo.PersistentPojoDataSourceEx
- Direct Known Subclasses:
- HibernatePojoDataSourceEx
public class PersistentPojoDataSourceEx
- extends PojoDataSourceEx
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistentPojoDataSourceEx
public PersistentPojoDataSourceEx(Project project)
- Creates a new instance of PersistentPojoDataSourceEx
- Parameters:
project - the owner project
adaptPojo
public PojoModelVis adaptPojo(java.lang.Object pojo,
DataModel parentNode)
- Adapts a POJO for use in the data visualiser.
- Overrides:
adaptPojo in class PojoDataSourceEx
- Parameters:
pojo - the POJO to be adaptedparentNode - the parent model node
- Returns:
- model node wrapping the specified pojo
adaptPojo
public PojoModelVis adaptPojo(java.lang.reflect.Method gtr,
java.lang.reflect.Method str,
java.lang.String propertyName,
DataModel parentNode)
- Adapts a POJO for use in the data visualiser
- Overrides:
adaptPojo in class PojoDataSourceEx
- Parameters:
method - the method, the invocation of which returns the POJO
to be adaptedpropertyName - the property name of the parent node whose
value is to be adaptedparentNode - the parent model node
- Returns:
- model node wrapping the specified pojo
adaptPojo
public PojoModelVis adaptPojo(java.lang.Class pojoClass,
java.lang.String propertyName,
DataModel parentNode)
- Adapts the specified POJO for use in the data visualizer.
- Overrides:
adaptPojo in class PojoDataSourceEx
- Parameters:
pojoClass - the type of the POJO to be adaptedpropertyName - the property name of the parent node whose
value is to be adaptedparentNode - the parent model node
- Returns:
- model node wrapping the specified pojo
customizeProperty
protected void customizeProperty(PojoAdapterEx adapter,
XmlElement propertyElement)
- Cutsomizes the specified adapter applying the changes from the propertyElement
- Overrides:
customizeProperty in class PojoDataSourceEx
- Parameters:
adapter - the adapter to be customizedpropertyElement - xml node describing customization
createAdapter
protected PojoAdapterEx createAdapter(java.lang.Class pojoClass)
- Creates a new instance of PersistentPojoAdapterEx
- Overrides:
createAdapter in class PojoDataSourceEx
- Parameters:
pojoClass - the class to be adapted