public final class MaxKeyGeneratorFactory extends java.lang.Object implements KeyGeneratorFactory
MaxKeyGenerator| Constructor and Description |
|---|
MaxKeyGeneratorFactory() |
| Modifier and Type | Method and Description |
|---|---|
KeyGenerator |
getKeyGenerator(PersistenceFactory factory,
java.util.Properties params,
int sqlType)
Produce the key generator.
|
java.lang.String |
getName()
The short name of this key generator is "MAX"
|
public KeyGenerator getKeyGenerator(PersistenceFactory factory, java.util.Properties params, int sqlType) throws MappingException
getKeyGenerator in interface KeyGeneratorFactoryfactory - Helper object for obtaining database-specific QuerySyntax.params - Parameters for key generator.sqlType - The SQL type of the primary key,
the generated identities must have the corresponding Java type,
e.g. java.sql.Types.INTEGER corresponds to java.lang.Integer,
java.sql.Types.NUMERIC corresponds to java.lang.BigDecimal.MappingExceptionpublic java.lang.String getName()
getName in interface KeyGeneratorFactoryIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com