org.castor.cpa.persistence.sql.keygen
Class KeyGeneratorFactoryRegistry

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

public final class KeyGeneratorFactoryRegistry
extends java.lang.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 Summary
KeyGeneratorFactoryRegistry(AbstractProperties properties)
          Create a new registry instance of key generator factories.
 
Method Summary
 KeyGeneratorFactory getKeyGeneratorFactory(java.lang.String name)
          Returns a key generator factory with the specified name.
 java.lang.String[] getKeyGeneratorFactoryNames()
          Returns an array of names of all the configured key generator factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

getKeyGeneratorFactory

public KeyGeneratorFactory getKeyGeneratorFactory(java.lang.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 java.lang.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.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com