|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.dao.orm.ORMMappingConfig
class ORMMappingConfig
Package protected class to encapsulate the configuration of a Mapping for the default ORMQueryService implementation.
Constructor Summary | |
---|---|
ORMMappingConfig(java.lang.String ormConf,
XMLProperties props,
org.w3c.dom.Element mappingEl,
java.util.Map settings)
Construct a new instance with the provided XML configuration and ORM settings. |
Method Summary | |
---|---|
(package private) java.lang.Class |
getDaoBeanClass()
Return a Class instance of the DaoBean implementation configured for this mapping configuration. |
(package private) java.lang.Object |
getDaoBeanInstance()
Return an instance of the DaoBean implementation configured for this mapping configuration. |
(package private) java.lang.String |
getKey()
Return the key used to identify an entity in the table. |
(package private) java.lang.String |
getName()
Return the name of this mapping configuration. |
(package private) java.util.List |
getReferenceIds()
Return a List of the reference identifiers configured for this mapping configuration. |
(package private) java.util.List |
getReferences()
Return the List of ORMReferenceConfig instances configured for this mapping configuration. |
(package private) java.lang.String |
getSelectAll()
Return the SQL statement that must be used to obtain all entities and resolve all references. |
(package private) java.lang.String |
getSelectOne()
Return the SQL statement that must be used to obtain a single entity and resolve all references for the entity. |
(package private) java.lang.String |
getSelectRefs()
Return the SQL statement that must be used to obtain referenced entity instances. |
(package private) java.lang.String |
getTable()
Return the table of this mapping configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ORMMappingConfig(java.lang.String ormConf, XMLProperties props, org.w3c.dom.Element mappingEl, java.util.Map settings) throws ConfException
ormConf
- String containing the name of the ORM configuration
that this mapping belongs to.props
- XMLProperties instance.mappingEl
- Element containing mapping configuration.settings
- Map containing ORM configuration settings.
This implementation only supports one setting:
ConfException
- if the the mapping configuration cannot be
initialised.Method Detail |
---|
java.lang.String getName()
java.lang.String getTable()
java.lang.String getKey()
java.lang.Object getDaoBeanInstance() throws java.lang.Exception
java.lang.Exception
- if the DaoBean instance cannot be returned.java.lang.Class getDaoBeanClass() throws java.lang.Exception
java.lang.Exception
- if the DaoBean class cannot be returned.java.util.List getReferences()
java.util.List getReferenceIds()
java.lang.String getSelectAll()
java.lang.String getSelectOne()
java.lang.String getSelectRefs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |