org.exolab.castor.jdo.drivers

Class IdentityKeyGeneratorFactory

Implemented Interfaces:
KeyGeneratorFactory

public final class IdentityKeyGeneratorFactory
extends java.lang.Object
implements KeyGeneratorFactory

IDENTITY key generator factory. The short name of this key generator is "IDENTITY". It works for Sybase and SQL Server identity (autoincrement) fields and fetched @@identity after insert.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:12 $
Author:
Oleg Nitz
See Also:
IdentityKeyGenerator

Method Summary

KeyGenerator
getKeyGenerator(PersistenceFactory factory, Properties params, int sqlType)
Produce the key generator.
String
getName()
The short name of this key generator is "IDENTITY"

Method Details

getKeyGenerator

public KeyGenerator getKeyGenerator(PersistenceFactory factory,
                                    Properties params,
                                    int sqlType)
            throws MappingException
Produce the key generator.
Specified by:
getKeyGenerator in interface KeyGeneratorFactory

getName

public String getName()
The short name of this key generator is "IDENTITY"
Specified by:
getName in interface KeyGeneratorFactory

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