toolbox.dao.orm
Class ORMConfig

Package class diagram package ORMConfig
java.lang.Object
  extended by toolbox.dao.orm.ORMConfig

 class ORMConfig
extends java.lang.Object

Package protected class to encapsulate the ORM XML configuration document for the default ORMQueryService implementation.


Constructor Summary
ORMConfig(XMLProperties props)
          Construct a new ORMConfig instance using the provide XML configuration properties.
 
Method Summary
(package private)  ORMMappingConfig getMapping(java.lang.String name)
          Return the named ORM mapping configuration.
(package private)  java.lang.String getSetting(java.lang.String name)
          Return the value of the named setting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORMConfig

ORMConfig(XMLProperties props)
    throws ConfException
Construct a new ORMConfig instance using the provide XML configuration properties.

Parameters:
props - XMLProperties instance containing the ORM mapping configuration.
Throws:
ConfException - if the configuration cannot be created.
Method Detail

getMapping

ORMMappingConfig getMapping(java.lang.String name)
Return the named ORM mapping configuration.

Parameters:
name - String containing the name of the mapping to return.
Returns:
ORMMappingConfig instance.

getSetting

java.lang.String getSetting(java.lang.String name)
Return the value of the named setting.

Parameters:
name - String containing the name of the setting to return.
Returns:
String containing the value of the setting.