Class KeyGeneratorFactoryRegistry
java.lang.Object
org.castor.cpa.persistence.sql.keygen.KeyGeneratorFactoryRegistry
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
ConstructorsConstructorDescriptionKeyGeneratorFactoryRegistry
(AbstractProperties properties) Create a new registry instance of key generator factories. -
Method Summary
Modifier and TypeMethodDescriptiongetKeyGeneratorFactory
(String name) Returns a key generator factory with the specified name.String[]
Returns an array of names of all the configured key generator factories.
-
Constructor Details
-
KeyGeneratorFactoryRegistry
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
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
ornull
if no key generator factory with this name exists.
-
getKeyGeneratorFactoryNames
Returns an array of names of all the configured key generator factories. The names can be used to obtain a key generator factory fromgetKeyGeneratorFactory(java.lang.String)
.- Returns:
- Array of names of key generator factories.
-