|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicNameDef
The BasicNameDef object describes the mapping of a reference field, It can be the PName of a Class. It can be a Field which is an attribute of the class and is a reference; in this case, the reference can be to another Class (ClassObject) or to a GenClass.
| Constructor Summary | |
BasicNameDef(MetaObject parent)
Builds a new BasicNameDef objects. |
|
| Method Summary | |
boolean |
arePresents(java.lang.String mappingName)
Verifies if the tuple mappingname is present in the current namedef object. |
NameRef |
createNameRef(java.lang.String name,
CompositeName cn_Class)
Build a reference toward a composite name describing the namedef. |
java.lang.String |
getFieldName()
Retrieve the name of the field describing the namedef. |
int |
getFieldNumber()
Returns the number of hidden fields which composed the current object. |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.util.Iterator |
getMappNames()
Retrieve an iterator over the mapping name defined for this NameDef. |
NameRef |
getNameRef()
Retrieves the nameref if the namedef is a composite one. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
boolean |
isFieldName()
allow to know if the namedef is describe by a single field. |
boolean |
isNameRef()
allow to know if the namedef is describe by a composite name. |
boolean |
isSystem()
Allows to know if the mapping of the referenced field is defined by another system (could be defined by Versant system for instance). |
java.util.Iterator |
iterateField()
Returns an iterator on all fields (HiddenFields and FieldRef). |
void |
setFieldName(java.lang.String fieldname)
Allow to set the fieldname describing the namedef single field. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
void |
setMappNames(java.lang.String mappingName)
Sets the names of the mapper and the mapping defined for this NameDef. |
void |
setParent(MetaObject itsParent)
Set the parent of the current meta object if it is not yet done by the constructor of the meta object |
void |
setSystem(boolean system)
Allows to set if the current NameDef is system defined (defined outside jorm) or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicNameDef(MetaObject parent)
name - the name of the name definition objectisSystem - if true, the name is defined outside jorm, else false,
the name is defined by jormparent - the parent object of the current NameDef object| Method Detail |
public int getFieldNumber()
getFieldNumber in interface NameDefpublic boolean isSystem()
isSystem in interface NameDefpublic void setSystem(boolean system)
setSystem in interface NameDefsystem - true, if the mapping is defined by another system, else
false, if the mapping is defined inside JORM (by
ScalarField(s) and FieldName(s)).public boolean isNameRef()
isNameRef in interface NameDefpublic boolean isFieldName()
isFieldName in interface NameDef
public NameRef createNameRef(java.lang.String name,
CompositeName cn_Class)
createNameRef in interface NameDefname - the name of the compsoite namecn_Class - the meta object representing the composite name.public NameRef getNameRef()
getNameRef in interface NameDefpublic java.util.Iterator getMappNames()
getMappNames in interface NameDefpublic java.lang.String getFieldName()
getFieldName in interface NameDefpublic void setFieldName(java.lang.String fieldname)
setFieldName in interface NameDeffieldname - the fieldnamepublic java.util.Iterator iterateField()
iterateField in interface NameDefpublic void setMappNames(java.lang.String mappingName)
setMappNames in interface NameDefmapperName - the name of the used mappermappingName - the name of the used mappingpublic boolean arePresents(java.lang.String mappingName)
arePresents in interface NameDefmappingName - the name of the mappingpublic MetaObject getParent()
getParent in interface MetaObjectpublic void setParent(MetaObject itsParent)
setParent in interface MetaObjectitsParent - the parent MetaObject of the current objectpublic void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||