Db2SequenceKeyGeneratorFactory, HighLowKeyGeneratorFactory, HsqlSequenceKeyGeneratorFactory, IdentityKeyGeneratorFactory, MaxKeyGeneratorFactory, OracleSequenceKeyGeneratorFactory, PostgresqlSequenceKeyGeneratorFactory, SapdbSequenceKeyGeneratorFactory, SequenceKeyGeneratorFactory, UUIDKeyGeneratorFactorypublic interface KeyGeneratorFactory
| Modifier and Type | Method | Description |
|---|---|---|
KeyGenerator |
createKeyGenerator() |
Create a default key generator instance with the algorithm the factory is
responsible for.
|
KeyGenerator |
createKeyGenerator(KeyGeneratorDef definition) |
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
java.lang.String |
getAlgorithmName() |
Get name of key generator algorithm.
|
boolean |
hasMandatoryParameters() |
Does the algorithm has mandatory parameters and therefore requires a key generator
definition in mapping file?
|
java.lang.String getAlgorithmName()
boolean hasMandatoryParameters()
true if algorithm has mandatory parameters and therefore
requires a key generator definition in mapping file. false
if algorithm does not require parameters or has only optional parameters.KeyGenerator createKeyGenerator() throws GeneratorException
GeneratorException - If creation of default key generator is not possible
due to required mandatory parameters.KeyGenerator createKeyGenerator(KeyGeneratorDef definition) throws GeneratorException
definition - The definition to initialize the key generator.GeneratorException - If failed to create a key generator instance.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com