|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A GenClassRef is an interface which describes method to define a class field which can be a reference to a generic class. A GenClassRef object is composed by a PrimitiveElement (a primitive type), or a ClassRef (a reference to a Class), or an another GenClassRef (a reference to a generic class. A recursion is defined when a GenClassRef object is composed by an other GenClassRef object. A final object of the recursion is a PrimitiveElement or a ClassRef objects.
| Method Summary | |
ClassMapping |
createClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
Creates a new ClassMapping object for the current reference. |
ClassRef |
createClassRef(Class clazz)
Creates a new ClassRef object, and attach it to the current GenClassRef This method must be used when the recursion is finished (we are on final object which is a ClassRef). |
GenClassRef |
createGenClassRef(java.lang.String genClassRefName)
Creates a new GenClassRef object. |
ScalarField |
createHiddenField(java.lang.String fieldName,
PType type)
Create a new hidden field for the refgenclass. |
PrimitiveElement |
createPrimitiveElement(PType type)
Creates a new PrimitiveElement object, and attach it to the current GenClassRef This method must be used when the recursion is finished (we are on final object which is a PrimitiveElement). |
NameDef |
createRefNameDef()
Creates a new NameDef object for the new GenClassRef object. |
ClassMapping |
getClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
Returns an existing ClassMapping object for the current reference object from a given mapper name and mapping name. |
ClassRef |
getClassRef()
Returns the ClassRef object which defines the current GenClassRef object. |
GenClass |
getGenClass()
Returns the underlying GenClass object which describes the generic class object used. |
java.lang.String |
getGenClassName()
Returns the name of the GenClass object. |
GenClassRef |
getGenClassRef()
Returns the GenClassRef object which defines the current GenClassRef object. |
ScalarField |
getHiddenField(java.lang.String fieldName)
retrieve an hiddenfield from its name. |
PrimitiveElement |
getPrimitiveElement()
Returns the PrimitiveElement object which defines the current GenClassRef object. |
NameDef |
getRefNameDef(java.lang.String mappingName)
Returns a NameDef object from a given mapperName and mappingName. |
boolean |
isClassRef()
Allows to know if the current object is a reference to a Class or not. |
boolean |
isGenClassRef()
Allows to know if the current object is a reference to a generic class or not. |
boolean |
isPrimitive()
Allows to know if the current object is primitive or not (final and "basic"). |
java.util.Iterator |
iterateClassMapping()
Allows to know all the ClassMapping objects used for the current reference. |
java.util.Iterator |
iterateHiddenField()
return an iterator over the hiddenfield of the refgenclass definition. |
java.util.Iterator |
iterateRefNameDef()
Returns an iterator on existing NameDef of GenClassRef object. |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.Reference |
createNameDef, getNameDef, iterateNameDef |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.TypedElement |
getName, getType |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
| Method Detail |
public PrimitiveElement createPrimitiveElement(PType type)
type - is the PType of the primitive element which will be createdpublic ClassRef createClassRef(Class clazz)
clazz - the reference to the Class object which defines the
current GenClassRef object. This object is the final
object of the recursion.public GenClassRef createGenClassRef(java.lang.String genClassRefName)
genClassRefName - the name of the generic class used to create a
new GenClassRef objectpublic PrimitiveElement getPrimitiveElement()
public ClassRef getClassRef()
public GenClassRef getGenClassRef()
public boolean isPrimitive()
public boolean isClassRef()
public boolean isGenClassRef()
public NameDef createRefNameDef()
nameDefName - the name of the nameDef read in the persistence
description fileisSystem - true, the namedef is defined outside jorm, else
false, the namedef is define inside jormpublic java.util.Iterator iterateRefNameDef()
public NameDef getRefNameDef(java.lang.String mappingName)
mapperName - the name of the mappermappingName - the name of the mappingpublic GenClass getGenClass()
public ClassMapping getClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
mapperName - the name of the mapper reference namemappingName - the name of the mapping reference name
public ClassMapping createClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
mapperName - the name of the reference mappermappingName - the name of the reference mappingpublic java.util.Iterator iterateClassMapping()
public java.lang.String getGenClassName()
public ScalarField createHiddenField(java.lang.String fieldName,
PType type)
public java.util.Iterator iterateHiddenField()
public ScalarField getHiddenField(java.lang.String fieldName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||