org.exolab.castor.persist.spi
public interface KeyGeneratorFactory
Version: $Revision: 1.2 $ $Date: 2005/03/05 13:41:55 $
Method Summary | |
---|---|
KeyGenerator | getKeyGenerator(PersistenceFactory factory, Properties params, int sqlType)
Produce the key generator. |
String | getName()
Get the short name of the key generator. |
Parameters: 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.