|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.dao.orm.ORMReferenceConfig
class ORMReferenceConfig
Package protected class to encapsulate the configuration of a single reference within an ORMMappingConfig configuration.
Constructor Summary | |
---|---|
ORMReferenceConfig(java.lang.String table,
java.lang.String daoBean,
java.lang.String daoBeanMapping,
java.lang.String refId,
java.lang.String entityId)
Construct a new reference instance with the given configuration settings. |
Method Summary | |
---|---|
(package private) java.lang.Class |
getDaoBeanClass()
Return a Class instance of the DaoBean implementation configured for this reference. |
(package private) java.lang.Object |
getDaoBeanInstance()
Return an instance of the DaoBean implementation configured for this reference. |
(package private) java.lang.String |
getDaoBeanMapping()
Return the DaoBean map key configured for this reference. |
(package private) java.lang.String |
getEntityId()
Return the name of the column to uniquely identify the referenced entity. |
(package private) java.lang.String |
getRefId()
Return the name of the reference column on the parent table. |
(package private) java.lang.String |
getTable()
Return the referenced table name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ORMReferenceConfig(java.lang.String table, java.lang.String daoBean, java.lang.String daoBeanMapping, java.lang.String refId, java.lang.String entityId)
table
- String containing referenced table name.daoBean
- Fully qualified class name of the DaoBean
implementation that must encapsulate the
referenced data.daoBeanMapping
- String containing the name of the map key that
must be populated in the parent DaoBean
instance.refId
- The name of the column containing reference
identifier on the parent table.entityId
- The name of the column to identify the
referenced entity.Method Detail |
---|
java.lang.String getTable()
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.lang.String getDaoBeanMapping()
java.lang.String getRefId()
java.lang.String getEntityId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |