| java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.jdo.support.JdoDaoSupport
Method Summary | |
final protected void | checkDaoConfig() | final protected DataAccessException | convertJdoAccessException(JDOException ex) Convert the given JDOException to an appropriate exception from the
org.springframework.dao hierarchy. | protected JdoTemplate | createJdoTemplate(PersistenceManagerFactory persistenceManagerFactory) Create a JdoTemplate for the given PersistenceManagerFactory. | final public JdoTemplate | getJdoTemplate() Return the JdoTemplate for this DAO, pre-initialized
with the PersistenceManagerFactory or set explicitly. | final protected PersistenceManager | getPersistenceManager() Get a JDO PersistenceManager, either from the current transaction or
a new one. | final protected PersistenceManager | getPersistenceManager(boolean allowCreate) Get a JDO PersistenceManager, either from the current transaction or
a new one. | final public PersistenceManagerFactory | getPersistenceManagerFactory() Return the JDO PersistenceManagerFactory used by this DAO. | final protected void | releasePersistenceManager(PersistenceManager pm) Close the given JDO PersistenceManager, created via this DAO's
PersistenceManagerFactory, if it isn't bound to the thread. | final public void | setJdoTemplate(JdoTemplate jdoTemplate) Set the JdoTemplate for this DAO explicitly,
as an alternative to specifying a PersistenceManagerFactory. | final public void | setPersistenceManagerFactory(PersistenceManagerFactory persistenceManagerFactory) Set the JDO PersistenceManagerFactory to be used by this DAO. |
checkDaoConfig | final protected void checkDaoConfig()(Code) | | |
createJdoTemplate | protected JdoTemplate createJdoTemplate(PersistenceManagerFactory persistenceManagerFactory)(Code) | | Create a JdoTemplate for the given PersistenceManagerFactory.
Only invoked if populating the DAO with a PersistenceManagerFactory reference!
Can be overridden in subclasses to provide a JdoTemplate instance
with different configuration, or a custom JdoTemplate subclass.
Parameters: persistenceManagerFactory - the JDO PersistenceManagerFactoryto create a JdoTemplate for the new JdoTemplate instance See Also: JdoDaoSupport.setPersistenceManagerFactory |
getJdoTemplate | final public JdoTemplate getJdoTemplate()(Code) | | Return the JdoTemplate for this DAO, pre-initialized
with the PersistenceManagerFactory or set explicitly.
|
getPersistenceManagerFactory | final public PersistenceManagerFactory getPersistenceManagerFactory()(Code) | | Return the JDO PersistenceManagerFactory used by this DAO.
|
setPersistenceManagerFactory | final public void setPersistenceManagerFactory(PersistenceManagerFactory persistenceManagerFactory)(Code) | | Set the JDO PersistenceManagerFactory to be used by this DAO.
Will automatically create a JdoTemplate for the given PersistenceManagerFactory.
See Also: JdoDaoSupport.createJdoTemplate See Also: JdoDaoSupport.setJdoTemplate |
Fields inherited from org.springframework.dao.support.DaoSupport | final protected Log logger(Code)(Java Doc)
|
|
|