|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.objectweb.jorm.metainfo.lib.BasicMetaObject
|
+--org.objectweb.jorm.metainfo.lib.BasicMappingStructure
|
+--org.objectweb.jorm.metainfo.lib.BasicHelperClassMapping
Description
| Field Summary |
| Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure |
logger |
| Constructor Summary | |
BasicHelperClassMapping(java.lang.String ruleName,
MetaObject linkedMO,
MetaObject parent)
Builds a new BasicHelperClassMapping object. |
|
| Method Summary | |
void |
addDependency(java.lang.String jormClassName)
|
void |
addPrimitiveElementMapping(PrimitiveElementMapping peMapping)
Adds a PrimitiveElementMapping object. |
void |
addPrimitiveElementMapping(java.lang.String fieldName,
PrimitiveElementMapping peMapping)
Adds a PrimitiveElementMapping object. |
IdentifierMapping |
createIdentifierMapping(NameDef nd)
Creates a new IdentifierMapping object. |
ReferenceMapping |
createReferenceMapping(java.lang.String ruleName,
NameDef nd)
Creates a new ReferenceMapping object. |
java.util.Collection |
getDependencies()
|
IdentifierMapping |
getIdentifierMapping()
Returns the IdentifierMapping object. |
PrimitiveElementMapping |
getPrimitiveElementMapping(java.lang.String fieldName)
Returns the PrimitiveElementMapping objects matching to the fieldName specified. |
java.util.Collection |
getPrimitiveElementMappings()
Returns a collection of PrimitiveElementMapping objects. |
java.lang.String |
getRuleName()
Returns the name of the rule used to map the class. |
java.util.Iterator |
iteratePrimitiveElementMappings()
Returns an Iterator over PrimitiveElementMapping objects. |
void |
removeDependency(java.lang.String jormClassName)
|
void |
setIdentifierMapping(IdentifierMapping idmapping)
Sets the IdentifierMapping object. |
void |
setRuleName(java.lang.String rulename)
Sets the name of the rule used to map the class. |
| Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure |
getLinkedMO, getLogger, getLoggerFactory, getMapperName, getProjectName, setLinkedMO, setLogger, setLoggerFactory |
| Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
getManager, getParent, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.MappingStructure |
getLinkedMO, getLogger, getLoggerFactory, getMapperName, getProjectName, setLinkedMO, setLogger, setLoggerFactory |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
| Constructor Detail |
public BasicHelperClassMapping(java.lang.String ruleName,
MetaObject linkedMO,
MetaObject parent)
ruleName - the name of the rule used to map the class,
linkedMO the object referenced by the current object,
parent the parent of the current object.| Method Detail |
public java.lang.String getRuleName()
getRuleName in interface HelperClassMappingpublic void setRuleName(java.lang.String rulename)
setRuleName in interface HelperClassMappingrulename - the name of the rule.public IdentifierMapping getIdentifierMapping()
getIdentifierMapping in interface HelperClassMappingpublic void setIdentifierMapping(IdentifierMapping idmapping)
setIdentifierMapping in interface HelperClassMappingidmapping - the IdentifierMapping object.public java.util.Collection getPrimitiveElementMappings()
getPrimitiveElementMappings in interface HelperClassMappingpublic PrimitiveElementMapping getPrimitiveElementMapping(java.lang.String fieldName)
HelperClassMapping
getPrimitiveElementMapping in interface HelperClassMappingfieldName - is a name of a primitivite field (hidden or not) of
the class
public void addPrimitiveElementMapping(PrimitiveElementMapping peMapping)
addPrimitiveElementMapping in interface HelperClassMappingpeMapping - the PrimitiveElementMapping object to add to the list.
public void addPrimitiveElementMapping(java.lang.String fieldName,
PrimitiveElementMapping peMapping)
addPrimitiveElementMapping in interface HelperClassMappingpeMapping - the PrimitiveElementMapping object to add to the list.public java.util.Iterator iteratePrimitiveElementMappings()
iteratePrimitiveElementMappings in interface HelperClassMappingpublic IdentifierMapping createIdentifierMapping(NameDef nd)
createIdentifierMapping in interface HelperClassMappingnd - the NameDef object that defines an object identifier.
public ReferenceMapping createReferenceMapping(java.lang.String ruleName,
NameDef nd)
createReferenceMapping in interface HelperClassMappingruleName - the name of the rule used to map the reference,
nd the NameDef object that defines an object reference.
public void addDependency(java.lang.String jormClassName)
addDependency in interface HelperClassMappingpublic void removeDependency(java.lang.String jormClassName)
removeDependency in interface HelperClassMappingpublic java.util.Collection getDependencies()
getDependencies in interface HelperClassMapping
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||