|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.data.XDataSource
net.xoetrope.optional.data.pojo.XPojoDataSource
net.xoetrope.optional.data.pojo.XPojoHibernateDataSource
public class XPojoHibernateDataSource
A data source for working with Hibernate POJOs. When the application is loaded the
datasources are instantiated and in the case of a XPojoDataSource the
XPojoRoot instance specified by the root element is
instantiated and configured. The configuration project involves traversing
the class hierarchy and setting up XPojoModel nodes or proxies for each class
in the pojo hierarchy. The configuration can specify naming overrides if the
names established by reflection are not suitable
Copyright (c) Xoetrope Ltd., 2001-2006
License: see license.txt
| Field Summary |
|---|
| Fields inherited from class net.xoetrope.optional.data.pojo.XPojoDataSource |
|---|
adapters, overrides, pojoContext, pojoRootModel |
| Fields inherited from class net.xoetrope.data.XDataSource |
|---|
currentProject |
| Constructor Summary | |
|---|---|
XPojoHibernateDataSource(XProject project)
Creates a new instance of XPojoHibernateDataSource |
|
| Method Summary | |
|---|---|
protected XPojoAdapter |
createAdapter(java.lang.Class pojoClass)
Creates and returns a new instance of XPojoHibernateAdapter |
protected XPojoModel |
createPojoModel(XModel parent,
java.lang.Object pojo)
Creates and returns the new instance of XPojoModel |
protected XPojoModel |
createPojoModel(XModel parent,
java.lang.String subPath)
Creates and returns a new instance of XPojoModel |
protected void |
customizeProperty(XPojoAdapter adapter,
XmlElement propertyElement)
|
protected XPojoContext |
instantiatePojoContext(java.lang.String className,
java.lang.ClassLoader classLoader)
Creates and returns new XPojoHibernateContext object |
protected void |
overrideAdapter(XPojoAdapter adapter)
Override the adapter specification loaded via reflection and add the customization specified by the configuration |
| Methods inherited from class net.xoetrope.optional.data.pojo.XPojoDataSource |
|---|
getAdapter, getPojoContext, loadTable |
| Methods inherited from class net.xoetrope.data.XDataSource |
|---|
outputModel, outputModel, outputModel, read, read, readDataSource, setUseValueAsId, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XPojoHibernateDataSource(XProject project)
project - the owner project| Method Detail |
|---|
protected XPojoContext instantiatePojoContext(java.lang.String className,
java.lang.ClassLoader classLoader)
throws java.lang.Exception
instantiatePojoContext in class XPojoDataSourcethe - name of the class, the instance of which should
be returnedclassLoader - ClassLoader object to load the specified
class defintion
java.lang.Exceptionprotected XPojoAdapter createAdapter(java.lang.Class pojoClass)
createAdapter in class XPojoDataSourcepojoClass - the class to be adapted by the returned
adapter
protected XPojoModel createPojoModel(XModel parent,
java.lang.String subPath)
createPojoModel in class XPojoDataSourceparent - the parent model of the model node
which is to be createdsubpath - String consisting of pojo properties,
must be in the format: propertyName(arguments...)[idx]
protected XPojoModel createPojoModel(XModel parent,
java.lang.Object pojo)
createPojoModel in class XPojoDataSourceparent - the parent model node
protected void overrideAdapter(XPojoAdapter adapter)
overrideAdapter in class XPojoDataSourceadapter - the adapter being customized
protected void customizeProperty(XPojoAdapter adapter,
XmlElement propertyElement)
customizeProperty in class XPojoDataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||