|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.interface21.orm.jdo.LocalPersistenceManagerFactoryBean
FactoryBean that creates local JDO PersistenceManager instances. Behaves like a PersistenceManagerFactory instance when used as bean reference, e.g. for JdoTemplate's persistenceManagerFactory property. Note that switching to JndiObjectFactoryBean is just a matter of configuration!
The typical usage will be to register this as singleton factory (for a certain underlying data source) in an application context, and give bean references to application services that need it.
This PersistenceManager handling strategy is most appropriate for applications that solely use JDO for data access. In this case, JdoTransactionManager is required for transaction demarcation, as JTA support isn't possible if JDO isn't installed as JCA connector.
| Constructor Summary | |
LocalPersistenceManagerFactoryBean()
|
|
| Method Summary | |
void |
afterPropertiesSet()
Initialize the PersistenceManagerFactory for the given location. |
java.lang.Object |
getObject()
Return the singleton PersistenceManagerFactory. |
PropertyValues |
getPropertyValues()
Property values to pass to new bean instances created by this factory. |
boolean |
isSingleton()
Is the bean managed by this factory a singleton or a prototype? |
void |
setLocation(java.lang.String location)
Set the location of the JDO properties config file, as URL or classpath resource location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LocalPersistenceManagerFactoryBean()
| Method Detail |
public void setLocation(java.lang.String location)
public void afterPropertiesSet()
throws DataAccessResourceFailureException
afterPropertiesSet in interface InitializingBeanDataAccessResourceFailureException - in case of initialization errorspublic java.lang.Object getObject()
getObject in interface FactoryBeancom.interface21.beans.factory.FactoryBeanpublic boolean isSingleton()
FactoryBeanisSingleton in interface FactoryBeancom.interface21.beans.factory.FactoryBeanpublic PropertyValues getPropertyValues()
FactoryBeangetPropertyValues in interface FactoryBeancom.interface21.beans.factory.FactoryBean
|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||