|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.ejb21.JFactory org.ow2.jonas.lib.ejb21.JEntityFactory org.ow2.jonas.lib.ejb21.jorm.JormFactory
public abstract class JormFactory
This class is an extension of the JEntityFactory class. It initializes the persitant class (the bean) in the jorm mapper. This class is abstract in order to be extended by the PClassMapping generated for the Bean.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.objectweb.jorm.api.PClassMapping |
---|
org.objectweb.jorm.api.PClassMapping.ReferenceConfigurator |
Field Summary | |
---|---|
protected EntityCmp2Desc |
ecd
|
protected boolean |
mapped
|
protected org.objectweb.jorm.api.PMapper |
mapper
|
protected int |
relNonInit
|
Fields inherited from class org.ow2.jonas.lib.ejb21.JEntityFactory |
---|
bctxlist, cmp2, datasource, hardLimit, home, instanceCount, localhome, lockPolicy, prefetch, readTimeout, reentrant, shared, txlist |
Fields inherited from class org.ow2.jonas.lib.ejb21.JFactory |
---|
beanclass, cont, dd, dispatcher, ejb10Env, ejbname, ejbTimeoutSignature, isClusterReplicated, JNDICtx, maxCacheSize, minPoolSize, myTimerService, naming, passivationDir, stopped, timerTxAttr, tm, txbeanmanaged, wm |
Fields inherited from interface org.objectweb.jorm.api.PClassMapping |
---|
CLEANUP_DONOTHING, CLEANUP_REMOVEALL, CLEANUP_REMOVEDATA, CREATE_STRUCTURE_IF_NEEDED |
Constructor Summary | |
---|---|
JormFactory()
constructor |
Method Summary | |
---|---|
void |
configurePnc(String n,
org.objectweb.jorm.naming.api.PNamingContext pnc,
JormFactory target,
boolean isMultiple)
It assignes the PNamingContext which manages a relation. |
protected JEntityContext |
createNewContext(EntityBean bean)
This method is overrided in order to specify the JEntityContext class which must be instanciated. |
Serializable |
decodePK(Serializable strpk)
Decode String to a PName |
Serializable |
encodePK(Serializable pk)
Encode PK in case of CMP2 |
abstract Object |
getConnection(Object hints)
|
JEntitySwitch |
getJEntitySwitch()
This method allocates a new JEntitySwitch. |
org.objectweb.jorm.api.PMapper |
getMapper()
|
void |
init(EntityDesc ed,
JContainer c,
String mapperName)
Initialization of the factory. |
protected abstract void |
initGenClassPrefetch(org.objectweb.jorm.api.PClassMapping gcm,
org.objectweb.jorm.api.PClassMapping targetPCM)
It initializes the prefetching of a genclassMapping with the PClassMapping of the target class of the multivalued CMR. |
protected org.objectweb.jorm.api.PClassMapping |
newGCMInstance(String mapperName)
Create a GenClassMapping |
abstract void |
releaseConnection(Object conn)
|
protected abstract void |
setMapper(String mapperName)
|
void |
stop()
stop this EJB. |
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.api.PClassMapping |
---|
addAssociation, classDefined, configureRefFields, createPBinding, exist, getAssociationTable, getClassName, getClassPNameCoder, getDecodedPName, getGenClassMapping, getGenClassMapping, getIndexesTable, getMetaInfo, getPBinder, getPMapper, getPNameCoder, getPNameCoder, getPNameIterator, getPNameIterator, getProjectName, getPType, getSubPCMs, init, init, isConform, match, read, read, read, resolve, setPBinder, write |
Methods inherited from interface org.objectweb.jorm.api.PClassMappingCtrl |
---|
setClassPNameCoder, setGenClassMapping, setGenClassMapping, setPNameCoder, setPNameCoder, setProjectName |
Field Detail |
---|
protected int relNonInit
protected boolean mapped
protected org.objectweb.jorm.api.PMapper mapper
protected EntityCmp2Desc ecd
Constructor Detail |
---|
public JormFactory()
Method Detail |
---|
protected abstract void setMapper(String mapperName) throws org.objectweb.jorm.api.PException
org.objectweb.jorm.api.PException
public abstract Object getConnection(Object hints) throws org.objectweb.jorm.api.PException
org.objectweb.jorm.api.PException
public abstract void releaseConnection(Object conn) throws org.objectweb.jorm.api.PException
org.objectweb.jorm.api.PException
public void init(EntityDesc ed, JContainer c, String mapperName)
public org.objectweb.jorm.api.PMapper getMapper()
public void configurePnc(String n, org.objectweb.jorm.naming.api.PNamingContext pnc, JormFactory target, boolean isMultiple) throws org.objectweb.jorm.api.PException
n
- pnc
- isMultiple
-
org.objectweb.jorm.api.PException
public void stop()
JEntityFactory
stop
in interface BeanFactory
stop
in class JEntityFactory
protected JEntityContext createNewContext(EntityBean bean)
createNewContext
in class JEntityFactory
public JEntitySwitch getJEntitySwitch()
JEntityFactory
getJEntitySwitch
in class JEntityFactory
protected org.objectweb.jorm.api.PClassMapping newGCMInstance(String mapperName) throws Exception
mapperName
- name of the mapper
Exception
public Serializable encodePK(Serializable pk)
encodePK
in class JEntityFactory
public Serializable decodePK(Serializable strpk)
decodePK
in class JEntityFactory
protected abstract void initGenClassPrefetch(org.objectweb.jorm.api.PClassMapping gcm, org.objectweb.jorm.api.PClassMapping targetPCM)
gcm
- is the GenClassMapping to initializedtargetPCM
- is the PClassMapping of the target class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |