Inherited by org.objectweb.jonas_ejb.container.jorm.JormFactory.
Inheritance diagram for org.objectweb.jonas_ejb.container.JEntityFactory:
Public Member Functions | |
JEntityFactory () | |
void | init (EntityDesc dd, JContainer cont) |
void | initInstancePool () |
synchronized JEntitySwitch | getEJB (Object pk) |
synchronized JEntitySwitch | existEJB (Object pk) |
boolean | rebindEJB (Transaction tx, JEntityContext bctx, Object pk) |
synchronized void | bindEJB (Object pk, JEntitySwitch bs) |
JEntitySwitch | getJEntitySwitch () |
synchronized void | removeEJB (Object pk) |
synchronized void | registerEJB (JEntitySwitch ejb) |
void | synchronizeEntities () |
boolean | dirtyInstances () |
int | getInactivityTimeout () |
int | getPoolSize () |
void | stop () |
void | sync () |
void | reduceCache () |
JHome | getHome () |
JLocalHome | getLocalHome () |
JEntityContext | getJContext (JEntitySwitch es) |
void | releaseJContext (JContext ctx) |
TimerService | getTimerService () |
int | getMinPoolSize () |
int | getMaxCacheSize () |
int | getCacheSize () |
boolean | isReentrant () |
boolean | isShared () |
int | lockPolicy () |
boolean | isPrefetch () |
Object | getDataSource () |
void | checkTransaction (RequestCtx rctx) |
void | syncForFind (Transaction tx) |
boolean | isBlocking (Transaction tx) |
boolean | isBlocked (Transaction tx) |
void | removeTxListener (Transaction tx) |
boolean | registerContext (Transaction tx, JEntityContext ec) throws IllegalStateException |
synchronized EntityCounters | getEntityCounters () |
int | calculateAutomaticPk () |
void | dummyFinderException (boolean dummy) throws FinderException |
void | printAllPks () |
Serializable | encodePK (Serializable pk) |
Serializable | decodePK (Serializable strpk) |
Protected Member Functions | |
JEntityContext | createNewInstance (JEntitySwitch es) throws Exception |
Protected Attributes | |
JEntityHome | home = null |
JEntityLocalHome | localhome = null |
boolean | reentrant |
boolean | shared = false |
int | lockPolicy |
boolean | prefetch = false |
List | bctxlist = new ArrayList() |
int | minPoolSize |
HashMap | pklist = new HashMap() |
HashMap | txlist = new HashMap() |
Package Attributes | |
String | dsname = null |
Definition at line 66 of file JEntityFactory.java.
|
constructor must be without parameters (required by Jorm) Definition at line 151 of file JEntityFactory.java. |
|
Bind a PK with a JEntitySwitch
Definition at line 374 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.init(), and org.objectweb.jonas_ejb.container.JEntityFactory.pklist. |
Here is the call graph for this function:
|
Calculate a new uid for automatic pk creation Used by JEntityCmpJdbc.vm
Definition at line 875 of file JEntityFactory.java. |
|
Check Transaction before calling a method on a bean. For Entity beans, the only possible case is "Container Managed Tx"
Implements org.objectweb.jonas_ejb.container.JFactory. Definition at line 739 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JFactory.checkTransactionContainer(). |
Here is the call graph for this function:
|
Create a new instance of the bean and its EntityContext In case of CMP, the bean class is derived to manage entity persistence.
Definition at line 938 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JContainer.registerBF(), and org.objectweb.jonas_ejb.container.JContext.setState(). Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.getJContext(), and org.objectweb.jonas_ejb.container.JEntityFactory.initInstancePool(). |
Here is the call graph for this function:
|
Decode PK. This does nothing, except in case of CMP2
Reimplemented in org.objectweb.jonas_ejb.container.jorm.JormFactory. Definition at line 990 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JTimerHandle.getTimer(). |
|
Definition at line 444 of file JEntityFactory.java. |
|
Dummy method that defines the FinderException in the throws clause to can catch this exception in any case in the JentityHome.vm
Definition at line 891 of file JEntityFactory.java. |
|
Encode PK. This does nothing, except in case of CMP2
Reimplemented in org.objectweb.jonas_ejb.container.jorm.JormFactory. Definition at line 982 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JTimerService.getPK(). |
|
get EJB by its PK
Definition at line 320 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.pklist. Referenced by org.objectweb.jonas_ejb.container.JTimerHandle.getTimer(). |
|
Definition at line 692 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.reduceCache(), and org.objectweb.jonas_ejb.container.JEntityFactory.sync(). |
|
Definition at line 727 of file JEntityFactory.java. |
|
get EJB by its PK Creates if not exist yet.
Definition at line 297 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.getJEntitySwitch(), org.objectweb.jonas_ejb.container.JEntitySwitch.init(), and org.objectweb.jonas_ejb.container.JEntityFactory.pklist. |
Here is the call graph for this function:
|
Take a dump of current entity counters and return them
Definition at line 845 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getState(), org.objectweb.jonas_ejb.container.EntityCounters.idle, org.objectweb.jonas_ejb.container.EntityCounters.inTx, org.objectweb.jonas_ejb.container.EntityCounters.outTx, org.objectweb.jonas_ejb.container.EntityCounters.passive, org.objectweb.jonas_ejb.container.JEntityFactory.pklist, and org.objectweb.jonas_ejb.container.EntityCounters.removed. |
Here is the call graph for this function:
|
Implements org.objectweb.jonas_ejb.container.BeanFactory. Definition at line 587 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityRemote.getEJBHome(), org.objectweb.jonas_ejb.container.JEntitySwitch.init(), and org.objectweb.jonas_ejb.container.JEntityContext.JEntityContext(). |
|
Definition at line 451 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.init(). |
|
Get a Context from the pool, or create a new one if no more available in the pool. This JContext must be initialized then by the caller.
Definition at line 608 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.bctxlist, org.objectweb.jonas_ejb.container.JEntityFactory.createNewInstance(), and org.objectweb.jonas_ejb.container.JEntityContext.getEntitySwitch(). Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchRO.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitchCRU.mapICtx(), and org.objectweb.jonas_ejb.container.JEntitySwitch.mapICtx(). |
Here is the call graph for this function:
|
This method allocates a new JEntitySwitch. But no association has been done between the primary key and the new JEntitySwitch. Therefore the initialisation is not done.
Reimplemented in org.objectweb.jonas_ejb.container.jorm.JormFactory. Definition at line 390 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.getEJB(). |
|
Implements org.objectweb.jonas_ejb.container.BeanFactory. Definition at line 594 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityLocal.getEJBLocalHome(), org.objectweb.jonas_ejb.container.JEntitySwitch.init(), and org.objectweb.jonas_ejb.container.JEntityContext.JEntityContext(). |
|
Definition at line 685 of file JEntityFactory.java. |
|
Definition at line 678 of file JEntityFactory.java. |
|
Implements org.objectweb.jonas_ejb.container.JFactory. Definition at line 462 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.bctxlist. |
|
Obtains the TimerService associated for this Bean
Implements org.objectweb.jonas_ejb.container.JFactory. Definition at line 671 of file JEntityFactory.java. |
|
Here is the call graph for this function:
|
Init the pool of instances Implements org.objectweb.jonas_ejb.container.JFactory. Definition at line 273 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.bctxlist, org.objectweb.jonas_ejb.container.JEntityFactory.createNewInstance(), org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), and org.objectweb.jonas_ejb.container.JFactory.setComponentContext(). |
Here is the call graph for this function:
|
Return True if this Tx is blocked waiting an instance Definition at line 785 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getBlockedTx(), and org.objectweb.jonas_ejb.container.JEntityFactory.pklist. |
Here is the call graph for this function:
|
Return True if this Tx is blocking an instance Definition at line 766 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getBlockingTx(), and org.objectweb.jonas_ejb.container.JEntityFactory.pklist. |
Here is the call graph for this function:
|
Definition at line 720 of file JEntityFactory.java. |
|
Definition at line 699 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.init(). |
|
Definition at line 706 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.init(). |
|
Definition at line 713 of file JEntityFactory.java. |
|
print the list of PKs for DEBUG only Definition at line 901 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getPrimaryKey(), and org.objectweb.jonas_ejb.container.JEntityFactory.pklist. |
Here is the call graph for this function:
|
rebind a PK with a JEntitySwitch (called by create methods)
Definition at line 338 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityContext.getEntitySwitch(), org.objectweb.jonas_ejb.container.JEntitySwitch.init(), org.objectweb.jonas_ejb.container.JEntityFactory.pklist, and org.objectweb.jonas_ejb.container.JEntitySwitch.terminate(). |
Here is the call graph for this function:
|
Reduce number of instances in memory Implements org.objectweb.jonas_ejb.container.BeanFactory. Definition at line 529 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.bctxlist, org.objectweb.jonas_ejb.container.JEntityFactory.getCacheSize(), org.objectweb.jonas_ejb.container.JEntityFactory.minPoolSize, org.objectweb.jonas_ejb.container.JFactory.myClassLoader(), org.objectweb.jonas_ejb.container.JEntitySwitch.passivateIH(), org.objectweb.jonas_ejb.container.JEntityFactory.pklist, org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), and org.objectweb.jonas_ejb.container.JFactory.setComponentContext(). |
Here is the call graph for this function:
|
Register a Context/Instance in the transaction.
Definition at line 816 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.TxListener.addInstance(), and org.objectweb.jonas_ejb.container.JEntityFactory.txlist. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.registerCtx(). |
Here is the call graph for this function:
|
Register an EntitySwitch in the dirty list. should be called each time a new instance is modified outside transaction
Definition at line 423 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.mapICtx(). |
|
Release a Context
Definition at line 647 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.bctxlist, and org.objectweb.jonas_ejb.container.JEntityContext.razEntityContext(). Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.discardContext(), org.objectweb.jonas_ejb.container.JEntitySwitchRO.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitchCRU.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitch.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitchCS.passivateIH(), org.objectweb.jonas_ejb.container.JEntitySwitchCRC.passivateIH(), and org.objectweb.jonas_ejb.container.JEntitySwitch.txCompleted(). |
Here is the call graph for this function:
|
remove an EJB by its PK
Definition at line 409 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.pklist. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.discardContext(). |
|
Remove a Transaction Listener from the list.
Definition at line 805 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.txlist. Referenced by org.objectweb.jonas_ejb.container.TxListener.afterCompletion(). |
|
stop this EJB. Mainly unregister it in JNDI. Implements org.objectweb.jonas_ejb.container.BeanFactory. Reimplemented in org.objectweb.jonas_ejb.container.jorm.JormFactory. Definition at line 470 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.home, org.objectweb.jonas_ejb.container.JEntityFactory.localhome, org.objectweb.jonas_ejb.container.JLocalHome.unregister(), and org.objectweb.jonas_ejb.container.JHome.unregister(). |
Here is the call graph for this function:
|
Synchronize all dirty instances Implements org.objectweb.jonas_ejb.container.BeanFactory. Definition at line 486 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.endIH(), org.objectweb.jonas_ejb.container.JEntityFactory.getCacheSize(), org.objectweb.jonas_ejb.container.JEntitySwitch.passivateIH(), org.objectweb.jonas_ejb.container.JLocalHome.remove(), org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), and org.objectweb.jonas_ejb.container.JFactory.setComponentContext(). Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.syncForFind(). |
Here is the call graph for this function:
|
synchronize data modified in this transaction. this is necessary in case of finder method, because ejb-ql looks for on disk.
Definition at line 749 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JEntityFactory.lockPolicy, org.objectweb.jonas_ejb.container.TxListener.storeInstances(), org.objectweb.jonas_ejb.container.JEntityFactory.sync(), and org.objectweb.jonas_ejb.container.JEntityFactory.txlist. |
Here is the call graph for this function:
|
Ask swapper to synchronize all dirty EntitySwitch Definition at line 436 of file JEntityFactory.java. References org.objectweb.jonas_ejb.container.JContainer.registerBFS(). |
Here is the call graph for this function:
|
instance pool management (list of available JEntityContext objects) Definition at line 103 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.getJContext(), org.objectweb.jonas_ejb.container.JEntityFactory.getPoolSize(), org.objectweb.jonas_ejb.container.JEntityFactory.initInstancePool(), org.objectweb.jonas_ejb.container.JEntityFactory.reduceCache(), and org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext(). |
|
datasource name Definition at line 146 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(). |
|
optional home Definition at line 71 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JEntityFactory.stop(). |
|
optional local home Definition at line 76 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JEntityFactory.stop(). |
|
lock policy Definition at line 93 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JEntityFactory.syncForFind(). |
|
initial value for pool size Definition at line 108 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JEntityFactory.reduceCache(). |
|
List of JEntitySwitch objects At each PK is associated a JEntitySwitch object Definition at line 120 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.bindEJB(), org.objectweb.jonas_ejb.container.JEntityFactory.existEJB(), org.objectweb.jonas_ejb.container.JEntityFactory.getEJB(), org.objectweb.jonas_ejb.container.JEntityFactory.getEntityCounters(), org.objectweb.jonas_ejb.container.JEntityFactory.isBlocked(), org.objectweb.jonas_ejb.container.JEntityFactory.isBlocking(), org.objectweb.jonas_ejb.container.JEntityFactory.printAllPks(), org.objectweb.jonas_ejb.container.JEntityFactory.rebindEJB(), org.objectweb.jonas_ejb.container.JEntityFactory.reduceCache(), and org.objectweb.jonas_ejb.container.JEntityFactory.removeEJB(). |
|
enable the prefetch for CMP2 bean Definition at line 98 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(). |
|
reentrant if instance can be used concurrently Definition at line 81 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(). |
|
shared if the EJB container is not the only one to modify the bean state on the database, or if a cluster of container access the bean concurrently. Definition at line 88 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(). |
|
List of Transaction Listeners. At each Transaction is associated a TxListener object Definition at line 126 of file JEntityFactory.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.registerContext(), org.objectweb.jonas_ejb.container.JEntityFactory.removeTxListener(), and org.objectweb.jonas_ejb.container.JEntityFactory.syncForFind(). |