|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A Class interface defines methods to describe a Class meta object. A Class is composed by a set of fields (primitive, reference class or reference generic class), a set of inherited classes, a mapping class, can be abstract or not and has a name.
| Method Summary | |
void |
addAllInheritedClass(java.util.Map table)
Constructs an Hashtable with inherited class |
void |
addInheritedClass(Class class_)
Adds a new inherited class to the list of the inherited classes for the current class object. |
ClassMapping |
createClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
Creates a new ClassMapping object for the current class. |
ClassRef |
createClassRef(java.lang.String fieldName,
Class class_)
Allows to obtain a new ClassRef from a field name an its class. |
GenClassRef |
createGenClassRef(java.lang.String fieldName,
java.lang.String genName)
Allows to obtain a new GenClassRef from a field name an its generic class. |
ScalarField |
createHiddenField(java.lang.String fieldName,
PType type)
Creates an hiddenfield for the current Class object. |
NameDef |
createNameDef()
Creates a new NameDef object for the current Class object. |
PrimitiveElement |
createPrimitiveElement(java.lang.String fieldName,
PType type)
Allows to obtain a new PrimitiveElement from a class field name an its type. |
ClassMapping |
getClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
Returns an existing ClassMapping object for the current class object. |
int |
getFieldRefNumber()
Returns the number of fields which are references to classes. |
java.lang.String |
getFQName()
|
ScalarField |
getHiddenField(java.lang.String fieldName)
Retrieve the hiddenfield identified by its name in the current class. |
int |
getInheritedClassNumber()
Returns the number of inherited classes for the current Class object. |
java.lang.String |
getName()
Allows to know the name of the current class object. |
NameDef |
getNameDef(java.lang.String mappingName)
Returns a NameDef object from a given mapperName and mappingName. |
TypedElement |
getTypedElement(java.lang.String fieldName)
Allows to obtain an existing Field. |
boolean |
isAbstract()
Allows to know if the current class is an abstract class or not. |
boolean |
isInherited()
Tests if this class is inherited by another one. |
java.util.Iterator |
iterateAllField()
Returns an iterator on existing class fields + fields from super classes. |
java.util.Iterator |
iterateAllHiddenField()
Provides an iterator over the all the hiddenfield of the class including inherited fields. |
java.util.Iterator |
iterateClassMapping()
Allows to know all the ClassMapping object used for the current class. |
java.util.Iterator |
iterateField()
Returns an iterator on existing class fields. |
java.util.Iterator |
iterateHiddenField()
Provides an iterator over the all the hiddenfield of the class excluding inherited fields. |
java.util.Iterator |
iterateInheritedClass()
Allows to obtain all the inherited classes from the current class object. |
java.util.Iterator |
iterateNameDef()
Returns an iterator on existing NameDef for the current Class. |
void |
setInherited()
Specifies that this class is inherited by another one within the set of compiled ones. |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
| Method Detail |
public boolean isAbstract()
public java.lang.String getName()
public java.lang.String getFQName()
public TypedElement getTypedElement(java.lang.String fieldName)
fieldName - the name of the class fieldpublic NameDef createNameDef()
nameDefName - the name of the nameDef read in the persistence
description fileisSystem - true, the namedef is defined outside jorm, and false,
the namedef is define inside jorm
public ScalarField createHiddenField(java.lang.String fieldName,
PType type)
fieldname - the name of the hiddenfieldtype - the ptype of the hiddenfieldpublic java.util.Iterator iterateAllHiddenField()
public java.util.Iterator iterateHiddenField()
public ScalarField getHiddenField(java.lang.String fieldName)
fieldname - the name of the hiddenfield.public java.util.Iterator iterateNameDef()
public NameDef getNameDef(java.lang.String mappingName)
mappingName - the name of the mapping
public PrimitiveElement createPrimitiveElement(java.lang.String fieldName,
PType type)
fieldName - the name of the primitive fieldtype - the PType of the primitive field
public ClassRef createClassRef(java.lang.String fieldName,
Class class_)
fieldName - the name of the fieldclassName - the string representation of the class which represents
the reference of the field
public GenClassRef createGenClassRef(java.lang.String fieldName,
java.lang.String genName)
fieldName - the name of the fieldgenName - the GenClass object which represents the reference of
the fieldpublic java.util.Iterator iterateField()
public java.util.Iterator iterateAllField()
public java.util.Iterator iterateInheritedClass()
public void addInheritedClass(Class class_)
class_ - the inherited class to add to inherited classes listpublic int getInheritedClassNumber()
public ClassMapping getClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
mapperName - the name of the mapper class name
public ClassMapping createClassMapping(java.lang.String mapperName,
java.lang.String mappingName)
mapperName - the name of the class mappermappingName - the name of the class mappingpublic java.util.Iterator iterateClassMapping()
public void addAllInheritedClass(java.util.Map table)
table - the hashtable to buildpublic int getFieldRefNumber()
public void setInherited()
public boolean isInherited()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||