|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The preferred way of getting & restoring a PMF in JNDI is to do so via a Properties object. Accessor instances allow copying values to/from a PMF and a Properties. They do the proper type translation too. The PMFAccessor extends the Accessor interface which provides only the getDefault method which is type-independent. The PMFAccessor provides type-specific accessor properties.
Method Summary | |
java.lang.String |
get(PersistenceManagerFactoryImpl pmf)
Returns a value from a PMF, turned into a String. |
java.lang.String |
getNonDefault(PersistenceManagerFactoryImpl pmf)
Returns a value from a PMF, turned into a String, only if the current value is not the default. |
void |
set(PersistenceManagerFactoryImpl pmf,
java.lang.String s)
Sets a value in a PMF, translating from String to the PMF's representation. |
Methods inherited from interface org.apache.jdo.pm.Accessor |
getDefault |
Method Detail |
public java.lang.String get(PersistenceManagerFactoryImpl pmf)
pmf
- the PersistenceManagerFactory to get the property from
public java.lang.String getNonDefault(PersistenceManagerFactoryImpl pmf)
pmf
- the PersistenceManagerFactory to get the property from
public void set(PersistenceManagerFactoryImpl pmf, java.lang.String s)
pmf
- the PersistenceManagerFactory to set the property intos
- the property value associated with the Accessor key
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |