|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KeyGeneratorFactory
Interface for a key generator factories. The key generator factory is used for producing key generators for concrete databases with given parameters.
| Method Summary | |
|---|---|
KeyGenerator |
getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator. |
String |
getKeyGeneratorName()
Get the short name of the key generator. |
| Method Detail |
|---|
String getKeyGeneratorName()
KeyGenerator used to identify key generator (types).
KeyGenerator getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
throws MappingException
factory - 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.
KeyGenerator instance.
MappingException - If there's a problem resolving the mapping information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||