org.exolab.castor.jdo.keygen

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: 6230 $ $Date: 2005-06-01 06:08:22 -0600 (Wed, 01 Jun 2005) $
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
Parameters:
factory - Helper object for obtaining database-specific QuerySyntax.
params - Parameters for key generator.

getName

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

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