|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.objectweb.jorm.genclass.lib.GenClassMapping
|
+--org.objectweb.jorm.mapper.rdb.genclass.RdbGenClassMapping
This class provides the implementation of PClassMapping for RDBMS.
| Nested Class Summary |
| Nested classes inherited from class org.objectweb.jorm.api.PClassMapping |
PClassMapping.ReferenceConfigurator |
| Field Summary | |
protected boolean |
colocated
|
protected boolean |
colocatedMaster
|
protected boolean |
readOnly
|
protected java.lang.String |
tableName
The name of the table into which to store generic class object elements. |
protected RdbAdapter |
typeConverter
This is the type converter defined for a particular kind of RDB. |
protected boolean |
useBatch
|
| Fields inherited from class org.objectweb.jorm.genclass.lib.GenClassMapping |
binder, elemClassMapping, elemFields, elemNameCoder, genClassMetaInfo, genClassPType, identifierFields, indexFields, jormClassName, logger, loggerFactory, mapper, projectName |
| Fields inherited from interface org.objectweb.jorm.api.PClassMapping |
CLEANUP_DONOTHING, CLEANUP_REMOVEALL, CLEANUP_REMOVEDATA, CREATE_STRUCTURE_IF_NEEDED |
| Constructor Summary | |
RdbGenClassMapping()
|
|
| Method Summary | |
PBinding |
createPBinding()
It creates a new PBinding. |
java.util.Iterator |
getPNameIterator(java.lang.Object conn)
It returns an iterator over all pname of persitent objects availlable in this class. |
void |
init(PMappingCallback mapper,
MetaObject metaclass)
It intialises the class mapping. |
boolean |
isConform(java.lang.String mappername)
It specifies if the given kind of PMapper is supported by this PClassMapping. |
void |
setColocated(boolean colocated)
Indicates if the table of the genclass is colocated |
void |
setColocatedMaster(boolean cm)
Indicates if the table of the genclass is colocated |
void |
setReadOnly(boolean readonly)
Indicates if the table must be only read. |
void |
setTableName(java.lang.String tn)
Defines the table name property of a generic class instance mapped to a RDB. |
void |
setTypeConverter(RdbAdapter tc)
Defines the type converter property of a generic class instance mapped to a RDB. |
| Methods inherited from class org.objectweb.jorm.genclass.lib.GenClassMapping |
configureRefFields, getClassName, getElemFields, getGenClassMapping, getGenClassMapping, getIdentifierFields, getIndexFields, getLogger, getLoggerFactory, getMetaInfo, getPBinder, getPMapper, getPNameCoder, getPNameCoder, getProjectName, getPType, setElemDesc, setGenClassMapping, setGenClassMapping, setIdentifierDesc, setIndexDesc, setLogger, setLoggerFactory, setPBinder, setPNameCoder, setPNameCoder, setProjectName, setPType |
| 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.genclass.api.GenClassProp |
setElemDesc, setIdentifierDesc, setIndexDesc, setPType |
| Field Detail |
protected java.lang.String tableName
protected RdbAdapter typeConverter
protected boolean useBatch
protected boolean colocated
protected boolean colocatedMaster
protected boolean readOnly
| Constructor Detail |
public RdbGenClassMapping()
| Method Detail |
public PBinding createPBinding()
throws PException
createPBinding in interface PClassMappingPException
public java.util.Iterator getPNameIterator(java.lang.Object conn)
throws PExceptionProtocol,
PExceptionIO
getPNameIterator in interface PClassMappingconn - is the connection which permits to access to the support
PExceptionProtocol - A problem occured during the request
that is not related to I/O.
PExceptionIO - A problem occured during the request.public boolean isConform(java.lang.String mappername)
isConform in interface PClassMappingmappername - The name defining the PMapper kind.
public void setTableName(java.lang.String tn)
setTableName in interface RdbGenClassProptn - The associated type.public void setColocated(boolean colocated)
RdbGenClassProp
setColocated in interface RdbGenClassProppublic void setColocatedMaster(boolean cm)
RdbGenClassProp
setColocatedMaster in interface RdbGenClassProppublic void setReadOnly(boolean readonly)
RdbGenClassProp
setReadOnly in interface RdbGenClassPropreadonly - public void setTypeConverter(RdbAdapter tc)
setTypeConverter in interface RdbGenClassProptc - The associated type converter.
public void init(PMappingCallback mapper,
MetaObject metaclass)
throws PException
init in interface PClassMappinginit in class GenClassMappingmapper - The mapper to be assigned to this class mapping.metaclass - The meta-object describing the associated class. It may
be null.
PException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||