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:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description protected DbEntitydbEntityprotected StringgeneratorNameprotected StringgeneratorTypeprotected IntegerkeyCacheSizeprotected Stringnamestatic StringNAMED_SEQUENCE_TABLE_TYPEstatic StringORACLE_TYPE
- 
Constructor SummaryConstructors Constructor Description DbKeyGenerator()DbKeyGenerator(String name)
- 
Method SummaryModifier and Type Method Description voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)Prints itself as XML to the provided XMLEncoder.DbEntitygetDbEntity()StringgetGeneratorName()StringgetGeneratorType()IntegergetKeyCacheSize()StringgetName()Returns the name property of this object.ObjectgetParent()Returns the parent map.voidsetDbEntity(DbEntity dbEntity)voidsetGeneratorName(String generatorName)voidsetGeneratorType(String generatorType)voidsetKeyCacheSize(Integer keyCacheSize)voidsetName(String name)voidsetParent(Object parent)Stores the parent map.StringtoString()
- 
Field Details- 
ORACLE_TYPE- See Also:
- Constant Field Values
 
- 
NAMED_SEQUENCE_TABLE_TYPE- See Also:
- Constant Field Values
 
- 
name
- 
dbEntity
- 
generatorType
- 
keyCacheSize
- 
generatorName
 
- 
- 
Constructor Details- 
DbKeyGeneratorpublic DbKeyGenerator()
- 
DbKeyGenerator
 
- 
- 
Method Details- 
getNameDescription copied from interface:CayenneMapEntryReturns the name property of this object.- Specified by:
- getNamein interface- CayenneMapEntry
- Returns:
- name of this entry.
 
- 
setName
- 
getParentDescription copied from interface:CayenneMapEntryReturns the parent map.- Specified by:
- getParentin interface- CayenneMapEntry
 
- 
setParentDescription copied from interface:CayenneMapEntryStores the parent map.- Specified by:
- setParentin interface- CayenneMapEntry
 
- 
encodeAsXMLPrints itself as XML to the provided XMLEncoder.- Specified by:
- encodeAsXMLin interface- XMLSerializable
- Since:
- 1.1
 
- 
getDbEntity
- 
setDbEntity
- 
setGeneratorType
- 
getGeneratorType
- 
setKeyCacheSize
- 
getKeyCacheSize
- 
setGeneratorName
- 
getGeneratorName
- 
toString
 
-