Package org.apache.cayenne.map
Class DbKeyGenerator
java.lang.Object
org.apache.cayenne.map.DbKeyGenerator
- All Implemented Interfaces:
Serializable
,CayenneMapEntry
,XMLSerializable
public class DbKeyGenerator
extends Object
implements CayenneMapEntry, XMLSerializable, Serializable
DbKeyGenerator is an abstraction of a primary key generator It configures the primary
key generation per DbEntity in a RDBMS independent manner. DbAdapter generates actual
key values based on the configuration. For more details see data-map.dtd
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeAsXML
(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.getName()
Returns the name property of this object.Returns the parent map.void
setDbEntity
(DbEntity dbEntity) void
setGeneratorName
(String generatorName) void
setGeneratorType
(String generatorType) void
setKeyCacheSize
(Integer keyCacheSize) void
void
Stores the parent map.toString()
-
Field Details
-
ORACLE_TYPE
- See Also:
-
NAMED_SEQUENCE_TABLE_TYPE
- See Also:
-
name
-
dbEntity
-
generatorType
-
keyCacheSize
-
generatorName
-
-
Constructor Details
-
DbKeyGenerator
public DbKeyGenerator() -
DbKeyGenerator
-
-
Method Details
-
getName
Description copied from interface:CayenneMapEntry
Returns the name property of this object.- Specified by:
getName
in interfaceCayenneMapEntry
- Returns:
- name of this entry.
-
setName
-
getParent
Description copied from interface:CayenneMapEntry
Returns the parent map.- Specified by:
getParent
in interfaceCayenneMapEntry
-
setParent
Description copied from interface:CayenneMapEntry
Stores the parent map.- Specified by:
setParent
in interfaceCayenneMapEntry
-
encodeAsXML
Prints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXML
in interfaceXMLSerializable
- Since:
- 1.1
-
getDbEntity
-
setDbEntity
-
setGeneratorType
-
getGeneratorType
-
setKeyCacheSize
-
getKeyCacheSize
-
setGeneratorName
-
getGeneratorName
-
toString
-