org.exolab.castor.jdo.engine
Class KeyGeneratorRegistry

java.lang.Object
  extended by org.exolab.castor.jdo.engine.KeyGeneratorRegistry

final class KeyGeneratorRegistry
extends java.lang.Object

Registry for KeyGenerator instances. Is used to create no more than one instance of the give type with the given parameters.

Version:
$Revision: 7810 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $
Author:
Oleg Nitz, Bruce Snyder

Constructor Summary
KeyGeneratorRegistry()
           
 
Method Summary
 KeyGenerator getKeyGenerator(PersistenceFactory factory, KeyGeneratorDescriptor descriptor, int sqlType)
          Returns a key generator based upon the specified (key generator) description for the specified persistence factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyGeneratorRegistry

KeyGeneratorRegistry()
Method Detail

getKeyGenerator

public KeyGenerator getKeyGenerator(PersistenceFactory factory,
                                    KeyGeneratorDescriptor descriptor,
                                    int sqlType)
                             throws MappingException
Returns a key generator based upon the specified (key generator) description for the specified persistence factory.

Parameters:
factory - The persistence factory
descriptor - The key generator description
sqlType - SQL type identifier.
Returns:
The KeyGenerator instance to be used.
Throws:
MappingException


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