|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.optim.lib.BasicRule
org.objectweb.medor.optim.jorm.JormRule
This class is a tool for the management of the JormExtent.
It is used for the replacement of JormExtent instances into specific QueryLeaf instances.
Nested Class Summary |
Nested classes inherited from class org.objectweb.medor.optim.lib.BasicRule |
BasicRule.ModifiedExpression |
Field Summary |
Fields inherited from class org.objectweb.medor.optim.lib.BasicRule |
debug, log |
Constructor Summary | |
JormRule(java.lang.String suffix)
|
Method Summary | |
protected ClassMapping |
getClassMapping(JormExtent extent)
Retrieves the jorm meta object describing the mapping of the persistent object representing by its extent. |
protected GenClassMapping |
getGenClassMapping(JormExtent extent)
Retrieves the jorm meta object describing the mapping of the persistent object representing by its extent. |
protected java.lang.String |
getJORMFieldName(java.lang.String fullName,
JormExtent ext)
Returns the field name without the extent name |
protected PrimitiveElementMapping |
getPEM(JormExtent extent,
java.lang.String fieldName)
Retrieves the RdbPrimitiveElementMapping of a field |
protected Operand |
getPNCOperand(JormExtent extent,
PNameField pnf)
Retrieves the Operand representing the PNameCoder needed to decode a pname. |
protected PrimitiveElement |
getPrimitiveElement(JormExtent extent,
java.lang.String fieldname)
Retrieves the primitive element corresponding to a field name of a jorm object (class or generic class). |
Methods inherited from class org.objectweb.medor.optim.lib.BasicRule |
replaceUsage, rewrite |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.optim.api.RewriteRule |
rewrite |
Constructor Detail |
public JormRule(java.lang.String suffix)
Method Detail |
protected PrimitiveElement getPrimitiveElement(JormExtent extent, java.lang.String fieldname) throws MedorException
extent
- represents the Jorm persistent class and references the
Jorm meta object containing the expected jorm meta object.fieldname
- is the name of the
MedorException
- if the field does not exist.protected PrimitiveElementMapping getPEM(JormExtent extent, java.lang.String fieldName) throws MedorException
extent
- the extent of a persistent class (ClassExtent
or GenClassExtent)fieldName
- is the name of the field which the mapping is expected
MedorException
- if the extent is not managed or if the field does
not have a mapping.protected java.lang.String getJORMFieldName(java.lang.String fullName, JormExtent ext)
fullName
- the full field name containing the extent nameext
- the extent
protected ClassMapping getClassMapping(JormExtent extent) throws MedorException
extent
- must be a ClassExtent instance.
MedorException
- if no class mapping has been found for the project
name and the mapper specified by the JormExtent.protected GenClassMapping getGenClassMapping(JormExtent extent) throws MedorException
extent
- must be a ClassExtent instance.
MedorException
- if no class mapping has been found for the project
name and the mapper specified by the JormExtent.protected Operand getPNCOperand(JormExtent extent, PNameField pnf)
extent
- can contain the mapperpnf
- is the field representing the PName to be decoded
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |