Class PersistenceFactoryRegistry


  • public final class PersistenceFactoryRegistry
    extends java.lang.Object
    Registry for PersistenceFactory implementations obtained from the Castor properties file and used by the JDO database configuration file.
    Version:
    $Revision: 8141 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $
    Author:
    Assaf Arkin
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] getFactoryNames()
      Returns the names of all the configured persistence factories.
      static PersistenceFactory getPersistenceFactory​(java.lang.String name)
      Returns a persistence factory with the specified name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPersistenceFactory

        public static PersistenceFactory getPersistenceFactory​(java.lang.String name)
        Returns a persistence factory with the specified name. The factories are loaded from the Castor properties file. Returns null if the named factory is not supported.
        Parameters:
        name - The factory name
        Returns:
        The PersistenceFactory object, null if no factory with this name exists
      • getFactoryNames

        public static java.lang.String[] getFactoryNames()
        Returns the names of all the configured persistence factories. The names can be used to obtain a factory from getPersistenceFactory(java.lang.String).
        Returns:
        Names of persistence factories