org.formaria.editor.data.pojo
Class HibernatePojoDataSourceEx

java.lang.Object
  extended by org.formaria.data.DataSource
      extended by org.formaria.editor.data.pojo.PojoDataSourceEx
          extended by org.formaria.editor.data.pojo.PersistentPojoDataSourceEx
              extended by org.formaria.editor.data.pojo.HibernatePojoDataSourceEx

public class HibernatePojoDataSourceEx
extends PersistentPojoDataSourceEx


Field Summary
protected  java.util.Hashtable hibernateConfiguration
           
protected  JaxpXmlParser xmlParser
           
 
Fields inherited from class org.formaria.editor.data.pojo.PojoDataSourceEx
adapters, GETTER_PREFIXES, modelListeners, overrides, pojoContext, pojoRootModel, propertiesRetriever, SETTER_PREFIXES
 
Fields inherited from class org.formaria.data.DataSource
currentProject
 
Constructor Summary
HibernatePojoDataSourceEx(Project project)
          Creates a new instance of HibernatePojODataSourceEx
 
Method Summary
 void overrideAdapter(PojoAdapterEx adapter)
          Overrides the adapter, adds the customization specified by the configuration and Hibernate mapping files.
protected  void readMappingFile(java.lang.String fileName)
          Configures the POJO adapters of the classes whose mapping configuration is contained in the specified Hibernate mapping file.
protected  void readMappingFiles()
          Reads the Hibernate mapping files and configures the adapters
 
Methods inherited from class org.formaria.editor.data.pojo.PersistentPojoDataSourceEx
adaptPojo, adaptPojo, adaptPojo, createAdapter, customizeProperty
 
Methods inherited from class org.formaria.editor.data.pojo.PojoDataSourceEx
getAdapter, getDispValue, getPojoContext, getProjectClassLoader, getPropertiesRetriever, getterSupported, loadTable, setterSupported
 
Methods inherited from class org.formaria.data.DataSource
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
 

Field Detail

hibernateConfiguration

protected java.util.Hashtable hibernateConfiguration

xmlParser

protected JaxpXmlParser xmlParser
Constructor Detail

HibernatePojoDataSourceEx

public HibernatePojoDataSourceEx(Project project)
Creates a new instance of HibernatePojODataSourceEx

Parameters:
project - the owner project
Method Detail

readMappingFiles

protected void readMappingFiles()
Reads the Hibernate mapping files and configures the adapters


readMappingFile

protected void readMappingFile(java.lang.String fileName)
Configures the POJO adapters of the classes whose mapping configuration is contained in the specified Hibernate mapping file.

Parameters:
fileName - the name of the Hibernate mapping file

overrideAdapter

public void overrideAdapter(PojoAdapterEx adapter)
Overrides the adapter, adds the customization specified by the configuration and Hibernate mapping files.

Overrides:
overrideAdapter in class PojoDataSourceEx
Parameters:
adapter - the adpater to be customized