|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.map.DbKeyGenerator
public class DbKeyGenerator
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
| Field Summary | |
|---|---|
protected DbEntity |
dbEntity
|
protected String |
generatorName
|
protected String |
generatorType
|
protected Integer |
keyCacheSize
|
protected String |
name
|
static String |
NAMED_SEQUENCE_TABLE_TYPE
|
static String |
ORACLE_TYPE
|
| Constructor Summary | |
|---|---|
DbKeyGenerator()
|
|
DbKeyGenerator(String name)
|
|
| Method Summary | |
|---|---|
void |
encodeAsXML(XMLEncoder encoder)
Prints itself as XML to the provided XMLEncoder. |
DbEntity |
getDbEntity()
|
String |
getGeneratorName()
|
String |
getGeneratorType()
|
Integer |
getKeyCacheSize()
|
String |
getName()
Returns the name property of this object. |
Object |
getParent()
Returns the parent map. |
void |
setDbEntity(DbEntity dbEntity)
|
void |
setGeneratorName(String generatorName)
|
void |
setGeneratorType(String generatorType)
|
void |
setKeyCacheSize(Integer keyCacheSize)
|
void |
setName(String name)
|
void |
setParent(Object parent)
Stores the parent map. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ORACLE_TYPE
public static final String NAMED_SEQUENCE_TABLE_TYPE
protected String name
protected DbEntity dbEntity
protected String generatorType
protected Integer keyCacheSize
protected String generatorName
| Constructor Detail |
|---|
public DbKeyGenerator()
public DbKeyGenerator(String name)
| Method Detail |
|---|
public String getName()
CayenneMapEntry
getName in interface CayenneMapEntrypublic void setName(String name)
public Object getParent()
CayenneMapEntry
getParent in interface CayenneMapEntrypublic void setParent(Object parent)
CayenneMapEntry
setParent in interface CayenneMapEntrypublic void encodeAsXML(XMLEncoder encoder)
encodeAsXML in interface XMLSerializablepublic DbEntity getDbEntity()
public void setDbEntity(DbEntity dbEntity)
public void setGeneratorType(String generatorType)
public String getGeneratorType()
public void setKeyCacheSize(Integer keyCacheSize)
public Integer getKeyCacheSize()
public void setGeneratorName(String generatorName)
public String getGeneratorName()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||