org.apache.jdo.impl.pm
Interface PersistenceManagerFactoryImpl.PMFAccessor

All Superinterfaces:
Accessor
Enclosing interface:
PersistenceManagerFactoryImpl

public static interface PersistenceManagerFactoryImpl.PMFAccessor
extends Accessor

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

get

public java.lang.String get(PersistenceManagerFactoryImpl pmf)
Returns a value from a PMF, turned into a String.

Parameters:
pmf - the PersistenceManagerFactory to get the property from
Returns:
the property value associated with the Accessor key

getNonDefault

public 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.

Parameters:
pmf - the PersistenceManagerFactory to get the property from
Returns:
the non-default property value associated with the Accessor key

set

public void set(PersistenceManagerFactoryImpl pmf,
                java.lang.String s)
Sets a value in a PMF, translating from String to the PMF's representation.

Parameters:
pmf - the PersistenceManagerFactory to set the property into
s - the property value associated with the Accessor key


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.