|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory
Command factory for the JAWS JDBC layer. This class is primarily responsible for creating instances of the JDBC implementations for the various JPM commands so that the JAWSPersistenceManager (actually an persistence store) can delegate to them in a decoupled manner.
This class also acts as the manager for the read-ahead buffer added in version 2.3/2.4. In order to manage this buffer, it must register itself with any transaction that is active when a finder is called so that the data that was read ahead can be discarded before completion of the transaction. The read ahead buffer is managed using Soft references, with a ReferenceQueue being used to tell when the VM has garbage collected an object so that we can keep the hashtables clean.
Revisions:
20010621 Bill Burke:
20010621 danch:
20010812 vincent.harcq@hubmethods.com:
| Constructor Summary | |
JDBCCommandFactory(EntityContainer container)
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCCommandFactory(EntityContainer container) throws Exception
| Method Detail |
public void destroy()
destroy in interface JPMCommandFactorypublic EntityContainer getContainer()
public JawsEntityMetaData getMetaData()
public JDBCBeanExistsCommand createBeanExistsCommand()
public JPMFindEntitiesCommand createFindAllCommand(FinderMetaData f)
public JPMFindEntitiesCommand createDefinedFinderCommand(FinderMetaData f)
public JPMFindEntitiesCommand createFindByCommand(Method finderMethod, FinderMetaData f) throws IllegalArgumentException
IllegalArgumentExceptionpublic JPMInitCommand createInitCommand()
createInitCommand in interface JPMCommandFactorypublic JPMStartCommand createStartCommand()
createStartCommand in interface JPMCommandFactorypublic JPMStopCommand createStopCommand()
createStopCommand in interface JPMCommandFactorypublic JPMDestroyCommand createDestroyCommand()
createDestroyCommand in interface JPMCommandFactorypublic JPMFindEntityCommand createFindEntityCommand()
createFindEntityCommand in interface JPMCommandFactorypublic JPMFindEntitiesCommand createFindEntitiesCommand()
createFindEntitiesCommand in interface JPMCommandFactorypublic JPMCreateEntityCommand createCreateEntityCommand()
createCreateEntityCommand in interface JPMCommandFactorypublic JPMRemoveEntityCommand createRemoveEntityCommand()
createRemoveEntityCommand in interface JPMCommandFactorypublic JPMLoadEntityCommand createLoadEntityCommand()
createLoadEntityCommand in interface JPMCommandFactorypublic JPMStoreEntityCommand createStoreEntityCommand()
createStoreEntityCommand in interface JPMCommandFactorypublic JPMActivateEntityCommand createActivateEntityCommand()
createActivateEntityCommand in interface JPMCommandFactorypublic JPMPassivateEntityCommand createPassivateEntityCommand()
createPassivateEntityCommand in interface JPMCommandFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||