Class KeyGeneratorFactoryRegistry

java.lang.Object
org.castor.cpa.persistence.sql.keygen.KeyGeneratorFactoryRegistry

public final class KeyGeneratorFactoryRegistry extends Object
Registry for KeyGeneratorFactory implementations obtained from the Castor properties file and used by the JDO mapping configuration file.
Version:
$Revision: 8093 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Oleg Nitz, Ralf Joachim
  • Constructor Details

    • KeyGeneratorFactoryRegistry

      public KeyGeneratorFactoryRegistry(AbstractProperties properties)
      Create a new registry instance of key generator factories. The registry will be initialized with all key generator factories specified through KEYGENERATOR_FACTORIES property of given properties.
      Parameters:
      properties - The properties to use.
  • Method Details

    • getKeyGeneratorFactory

      public KeyGeneratorFactory getKeyGeneratorFactory(String name)
      Returns a key generator factory with the specified name. Returns null if the named factory is not supported.
      Parameters:
      name - Name of the key generator factory.
      Returns:
      The KeyGeneratorFactory or null if no key generator factory with this name exists.
    • getKeyGeneratorFactoryNames

      public String[] getKeyGeneratorFactoryNames()
      Returns an array of names of all the configured key generator factories. The names can be used to obtain a key generator factory from getKeyGeneratorFactory(java.lang.String).
      Returns:
      Array of names of key generator factories.