org.exolab.castor.jdo.engine
Class KeyGeneratorRegistry

java.lang.Object
  extended byorg.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: 1.5 $ $Date: 2000/12/17 15:40:04 $
Author:
Oleg Nitz

Constructor Summary
(package private) KeyGeneratorRegistry()
           
 
Method Summary
 KeyGenerator getKeyGenerator(PersistenceFactory factory, KeyGeneratorDescriptor desc, int sqlType, LogInterceptor logInterceptor)
          Returns a key generator with the specified 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 desc,
                                    int sqlType,
                                    LogInterceptor logInterceptor)
                             throws MappingException
Returns a key generator with the specified description for the specified persistence factory.

Parameters:
factory - The persistence factory
desc - The key generator description
Returns:
The KeyGenerator
Throws:
MappingException


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