| org.objectweb.jonas_ejb.container.JEntityFactory org.objectweb.jonas_ejb.container.jorm.JormFactory
All known Subclasses: org.objectweb.jonas_ejb.container.jorm.MedorFactory,
JormFactory | abstract public class JormFactory extends JEntityFactory implements PClassMapping,PClassMappingCtrl(Code) | | 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.
author: Sebastien Chassande-Barrioz |
mapped | protected boolean mapped(Code) | | |
mapper | protected PMapper mapper(Code) | | |
relNonInit | protected int relNonInit(Code) | | |
JormFactory | public JormFactory()(Code) | | constructor
|
configurePnc | public void configurePnc(String n, PNamingContext pnc, JormFactory target, boolean isMultiple) throws PException(Code) | | It assignes the PNamingContext which manages a relation.
Parameters: n - Parameters: pnc - Parameters: isMultiple - |
createNewContext | protected org.objectweb.jonas_ejb.container.JEntityContext createNewContext(EntityBean bean)(Code) | | This method is overrided in order to specify the JEntityContext class
which must be instanciated.
Create a new instance of the bean and its EntityContext
In case of CMP, the bean class is derived to manage entity persistence.
|
getMapper | public PMapper getMapper()(Code) | | mapper |
init | public void init(EntityDesc ed, JContainer c, String mapperName)(Code) | | Initialization of the factory. This is called just after the newInstance()
from the JContainer (addBean method)
|
initGenClassPrefetch | abstract protected void initGenClassPrefetch(PClassMapping gcm, PClassMapping targetPCM)(Code) | | It initializes the prefetching of a genclassMapping with the
PClassMapping of the target class of the multivalued CMR.
Parameters: gcm - is the GenClassMapping to initialized Parameters: targetPCM - is the PClassMapping of the target class |
newGCMInstance | protected PClassMapping newGCMInstance(String mapperName) throws Exception(Code) | | Create a GenClassMapping
Parameters: mapperName - name of the mapper |
releaseConnection | abstract public void releaseConnection(Object conn) throws PException(Code) | | |
setMapper | abstract protected void setMapper(String mapperName) throws PException(Code) | | |
Methods inherited from org.objectweb.jonas_ejb.container.JEntityFactory | public synchronized void bindEJB(Object pk, JEntitySwitch bs)(Code)(Java Doc) public int calculateAutomaticPk()(Code)(Java Doc) public void checkTransaction(RequestCtx rctx)(Code)(Java Doc) protected JEntityContext createNewContext(EntityBean bean)(Code)(Java Doc) protected JEntityContext createNewInstance(JEntitySwitch es) throws Exception(Code)(Java Doc) public Timer createTimer(long arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc) public Timer createTimer(long arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc) public Timer createTimer(Date arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc) public Timer createTimer(Date arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc) public Serializable decodePK(Serializable strpk)(Code)(Java Doc) public boolean dirtyInstances()(Code)(Java Doc) public void dummyFinderException(boolean dummy) throws FinderException(Code)(Java Doc) public Serializable encodePK(Serializable pk)(Code)(Java Doc) public synchronized JEntitySwitch existEJB(Object pk, JEntitySwitch bs)(Code)(Java Doc) public int getCacheSize()(Code)(Java Doc) public int getCurrentWaiters()(Code)(Java Doc) public Object getDataSource()(Code)(Java Doc) public int getDeadlockTimeout()(Code)(Java Doc) public synchronized JEntitySwitch getEJB(Object pk)(Code)(Java Doc) public synchronized EntityCounters getEntityCounters()(Code)(Java Doc) public JHome getHome()(Code)(Java Doc) public int getInactivityTimeout()(Code)(Java Doc) public JEntityContext getJContext(JEntitySwitch es)(Code)(Java Doc) public JEntitySwitch getJEntitySwitch()(Code)(Java Doc) public JLocalHome getLocalHome()(Code)(Java Doc) public int getLockPolicy()(Code)(Java Doc) public int getMaxWaitTime()(Code)(Java Doc) public int getPassivationTimeout()(Code)(Java Doc) public int getPoolSize()(Code)(Java Doc) public int getReadTimeout()(Code)(Java Doc) public boolean getSelectForUpdate()(Code)(Java Doc) public TimerService getTimerService()(Code)(Java Doc) public Collection getTimers() throws IllegalStateException, EJBException(Code)(Java Doc) public void init(EntityDesc dd, JContainer cont)(Code)(Java Doc) public void initInstancePool()(Code)(Java Doc) public boolean isCMP2()(Code)(Java Doc) public boolean isDeadLocked(Transaction suspect)(Code)(Java Doc) public boolean isHardLimit()(Code)(Java Doc) public boolean isPrefetch()(Code)(Java Doc) public boolean isReentrant()(Code)(Java Doc) public boolean isShared()(Code)(Java Doc) public boolean rebindEJB(Transaction tx, JEntityContext bctx, Object pk)(Code)(Java Doc) public void reduceCache()(Code)(Java Doc) public boolean registerContext(Transaction tx, JEntityContext ec) throws IllegalStateException(Code)(Java Doc) public synchronized void registerEJB(JEntitySwitch ejb)(Code)(Java Doc) public void releaseJContext(JContext ctx, int poolaction)(Code)(Java Doc) public void releaseJContext(JContext ctx)(Code)(Java Doc) public synchronized void removeEJB(Object pk)(Code)(Java Doc) public void removeTxListener(Transaction tx)(Code)(Java Doc) public void setDeadlockTimeout(int i)(Code)(Java Doc) public void setInactivityTimeout(int i)(Code)(Java Doc) public void setMaxWaitTime(int sec)(Code)(Java Doc) public void setPassivationTimeout(int i)(Code)(Java Doc) public void stop()(Code)(Java Doc) public void storeInstances(Transaction tx)(Code)(Java Doc) public void syncDirty(boolean alwaysStore)(Code)(Java Doc) public void syncForFind(Transaction tx)(Code)(Java Doc) public void syncForSelect()(Code)(Java Doc) public void synchronizeEntities()(Code)(Java Doc) public boolean tooManyInstances()(Code)(Java Doc) public void unregisterContext(Transaction tx, JEntityContext ec) throws IllegalStateException(Code)(Java Doc)
|
|
|