|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.sql.keygen.NoKeyGeneratorFactory
public final class NoKeyGeneratorFactory
Factory for instantiating NoKeyGenerator objects.
Constructor Summary | |
---|---|
NoKeyGeneratorFactory()
|
Method Summary | |
---|---|
KeyGenerator |
getKeyGenerator(PersistenceFactory factory,
java.util.Properties params,
int sqlType)
Produce the key generator. |
java.lang.String |
getKeyGeneratorName()
Get the short name of the key generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoKeyGeneratorFactory()
Method Detail |
---|
public java.lang.String getKeyGeneratorName()
getKeyGeneratorName
in interface KeyGeneratorFactory
KeyGenerator
used to identify key generator (types).public KeyGenerator getKeyGenerator(PersistenceFactory factory, java.util.Properties params, int sqlType) throws MappingException
getKeyGenerator
in interface KeyGeneratorFactory
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 |