org.objectweb.jonas_ejb.container.jorm
Class RdbFactory

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.JFactory
      extended by org.objectweb.jonas_ejb.container.JEntityFactory
          extended by org.objectweb.jonas_ejb.container.jorm.JormFactory
              extended by org.objectweb.jonas_ejb.container.jorm.MedorFactory
                  extended by org.objectweb.jonas_ejb.container.jorm.RdbFactory
All Implemented Interfaces:
javax.ejb.TimerService, BeanFactory, org.objectweb.jorm.api.PClassMapping, org.objectweb.jorm.api.PClassMappingCtrl

public abstract class RdbFactory
extends MedorFactory

Author:
Sebastien Chassande-Barrioz, Philippe Durieux (new Jorm mapping)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.objectweb.jorm.api.PClassMapping
org.objectweb.jorm.api.PClassMapping.ReferenceConfigurator
 
Field Summary
 
Fields inherited from class org.objectweb.jonas_ejb.container.jorm.MedorFactory
indexesGenerator, miManager, optimizeAtInit, queryTransformer
 
Fields inherited from class org.objectweb.jonas_ejb.container.jorm.JormFactory
ecd, mapped, mapper, relNonInit
 
Fields inherited from class org.objectweb.jonas_ejb.container.JEntityFactory
bctxlist, cmp2, datasource, hardLimit, home, instanceCount, localhome, lockPolicy, prefetch, readTimeout, reentrant, shared, txlist
 
Fields inherited from class org.objectweb.jonas_ejb.container.JFactory
beanclass, cont, dd, 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
RdbFactory()
           
 
Method Summary
 java.lang.Object getConnection(java.lang.Object hints)
           
 void init(EntityDesc dd, JContainer cont, java.lang.String mapperName)
          Initialization of the factory.
protected  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.
 void releaseConnection(java.lang.Object conn)
           
protected  void setMapper(java.lang.String mapperName)
           
 
Methods inherited from class org.objectweb.jonas_ejb.container.jorm.MedorFactory
evaluate, getOptimizedRequest
 
Methods inherited from class org.objectweb.jonas_ejb.container.jorm.JormFactory
configurePnc, createNewContext, decodePK, encodePK, getJEntitySwitch, getMapper, newGCMInstance, stop
 
Methods inherited from class org.objectweb.jonas_ejb.container.JEntityFactory
bindEJB, calculateAutomaticPk, checkTransaction, createNewInstance, createTimer, createTimer, createTimer, createTimer, dirtyInstances, dummyFinderException, existEJB, getCacheSize, getCurrentWaiters, getDataSource, getDeadlockTimeout, getEJB, getEntityCounters, getHome, getInactivityTimeout, getJContext, getLocalHome, getLockPolicy, getMaxWaitTime, getPassivationTimeout, getPoolSize, getReadTimeout, getSelectForUpdate, getTimers, getTimerService, init, initInstancePool, isCMP2, isDeadLocked, isHardLimit, isPrefetch, isReentrant, isShared, rebindEJB, reduceCache, registerContext, registerEJB, releaseJContext, releaseJContext, removeEJB, removeTxListener, setDeadlockTimeout, setInactivityTimeout, setMaxWaitTime, setPassivationTimeout, storeInstances, syncDirty, syncForFind, syncForSelect, synchronizeEntities, tooManyInstances, unregisterContext
 
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory
checkJonasVersion, checkSecurity, checkTransactionContainer, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEjbTimeoutSignature, getEnv, getInitialContext, getMaxCacheSize, getMinPoolSize, getPassivationDir, getTimerTxAttribute, getTransactionManager, getWorkManager, init, isClassAvailable, isStopped, isTxBeanManaged, myClassLoader, postInvoke, postInvokeRemote, preInvoke, preInvokeRemote, resetComponentContext, restartTimers, setComponentContext, stopContainer
 
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
 

Constructor Detail

RdbFactory

public RdbFactory()
Method Detail

init

public void init(EntityDesc dd,
                 JContainer cont,
                 java.lang.String mapperName)
Description copied from class: JormFactory
Initialization of the factory. This is called just after the newInstance() from the JContainer (addBean method)

Overrides:
init in class MedorFactory

getConnection

public java.lang.Object getConnection(java.lang.Object hints)
                               throws org.objectweb.jorm.api.PException
Specified by:
getConnection in class JormFactory
Throws:
org.objectweb.jorm.api.PException

releaseConnection

public void releaseConnection(java.lang.Object conn)
                       throws org.objectweb.jorm.api.PException
Specified by:
releaseConnection in class JormFactory
Throws:
org.objectweb.jorm.api.PException

setMapper

protected void setMapper(java.lang.String mapperName)
                  throws org.objectweb.jorm.api.PException
Specified by:
setMapper in class JormFactory
Throws:
org.objectweb.jorm.api.PException

initGenClassPrefetch

protected 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.

Specified by:
initGenClassPrefetch in class JormFactory
Parameters:
gcm - is the GenClassMapping to initialized
targetPCM - is the PClassMapping of the target class