|
|||||||||||
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 JPMCommandFactory
public 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
IllegalArgumentException
public JPMInitCommand createInitCommand()
createInitCommand
in interface JPMCommandFactory
public JPMStartCommand createStartCommand()
createStartCommand
in interface JPMCommandFactory
public JPMStopCommand createStopCommand()
createStopCommand
in interface JPMCommandFactory
public JPMDestroyCommand createDestroyCommand()
createDestroyCommand
in interface JPMCommandFactory
public JPMFindEntityCommand createFindEntityCommand()
createFindEntityCommand
in interface JPMCommandFactory
public JPMFindEntitiesCommand createFindEntitiesCommand()
createFindEntitiesCommand
in interface JPMCommandFactory
public JPMCreateEntityCommand createCreateEntityCommand()
createCreateEntityCommand
in interface JPMCommandFactory
public JPMRemoveEntityCommand createRemoveEntityCommand()
createRemoveEntityCommand
in interface JPMCommandFactory
public JPMLoadEntityCommand createLoadEntityCommand()
createLoadEntityCommand
in interface JPMCommandFactory
public JPMStoreEntityCommand createStoreEntityCommand()
createStoreEntityCommand
in interface JPMCommandFactory
public JPMActivateEntityCommand createActivateEntityCommand()
createActivateEntityCommand
in interface JPMCommandFactory
public JPMPassivateEntityCommand createPassivateEntityCommand()
createPassivateEntityCommand
in interface JPMCommandFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |