org.castor.ddlgen.keygenerator
Class IdentityKeyGenerator
- SchemaObject
public final class IdentityKeyGenerator
IDENTITY key generator can be used only with autoincrement primary key columns
(identities) with Sybase ASE/ASA, MS SQL Server, MySQL and Hypersonic SQL.
After the insert the key generator selects system variable @@identity which
contains the last identity value for the current database connection. In the case
of MySQL and Hypersonic SQL the system functions LAST_INSERT_ID() and IDENTITY()
are called, respectively.
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
ALGORITHM_NAME
public static final String ALGORITHM_NAME
Name of key generator algorithm.
IdentityKeyGenerator
public IdentityKeyGenerator()
Constructor for default IDENTITY key generator.
IdentityKeyGenerator
public IdentityKeyGenerator(KeyGeneratorDef definition)
Constructor for IDENTITY key generator specified by given defintion.
definition
- Key generator definition.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com