Package org.apache.openejb.jee.oejb2
Class KeyGeneratorType
- java.lang.Object
-
- org.apache.openejb.jee.oejb2.KeyGeneratorType
-
public class KeyGeneratorType extends Object
Primary Key generation element. If this is present, a key generator GBean will be created and configured to generate IDs for the surrounding object.Java class for key-generatorType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="key-generatorType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice> <element name="uuid" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}emptyType"/> <element name="sequence-table" type="{http://tomee.apache.org/xml/ns/pkgen-2.1}sequence-tableType"/> <element name="auto-increment-table" type="{http://tomee.apache.org/xml/ns/pkgen-2.1}auto-increment-tableType"/> <element name="sql-generator" type="{http://tomee.apache.org/xml/ns/pkgen-2.1}sql-generatorType"/> <element name="custom-generator" type="{http://tomee.apache.org/xml/ns/pkgen-2.1}custom-generatorType"/> </choice> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoIncrementTableTypeautoIncrementTableprotected CustomGeneratorTypecustomGeneratorprotected SequenceTableTypesequenceTableprotected SqlGeneratorTypesqlGeneratorprotected EmptyTypeuuid
-
Constructor Summary
Constructors Constructor Description KeyGeneratorType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoIncrementTableTypegetAutoIncrementTable()Gets the value of the autoIncrementTable property.CustomGeneratorTypegetCustomGenerator()Gets the value of the customGenerator property.SequenceTableTypegetSequenceTable()Gets the value of the sequenceTable property.SqlGeneratorTypegetSqlGenerator()Gets the value of the sqlGenerator property.booleanisUuid()Gets the value of the uuid property.voidsetAutoIncrementTable(AutoIncrementTableType value)Sets the value of the autoIncrementTable property.voidsetCustomGenerator(CustomGeneratorType value)Sets the value of the customGenerator property.voidsetSequenceTable(SequenceTableType value)Sets the value of the sequenceTable property.voidsetSqlGenerator(SqlGeneratorType value)Sets the value of the sqlGenerator property.voidsetUuid(boolean value)Sets the value of the uuid property.
-
-
-
Field Detail
-
uuid
protected EmptyType uuid
-
sequenceTable
protected SequenceTableType sequenceTable
-
autoIncrementTable
protected AutoIncrementTableType autoIncrementTable
-
sqlGenerator
protected SqlGeneratorType sqlGenerator
-
customGenerator
protected CustomGeneratorType customGenerator
-
-
Method Detail
-
isUuid
public boolean isUuid()
Gets the value of the uuid property.- Returns:
- possible object is
boolean
-
setUuid
public void setUuid(boolean value)
Sets the value of the uuid property.- Parameters:
value- allowed object isboolean
-
getSequenceTable
public SequenceTableType getSequenceTable()
Gets the value of the sequenceTable property.- Returns:
- possible object is
SequenceTableType
-
setSequenceTable
public void setSequenceTable(SequenceTableType value)
Sets the value of the sequenceTable property.- Parameters:
value- allowed object isSequenceTableType
-
getAutoIncrementTable
public AutoIncrementTableType getAutoIncrementTable()
Gets the value of the autoIncrementTable property.- Returns:
- possible object is
AutoIncrementTableType
-
setAutoIncrementTable
public void setAutoIncrementTable(AutoIncrementTableType value)
Sets the value of the autoIncrementTable property.- Parameters:
value- allowed object isAutoIncrementTableType
-
getSqlGenerator
public SqlGeneratorType getSqlGenerator()
Gets the value of the sqlGenerator property.- Returns:
- possible object is
SqlGeneratorType
-
setSqlGenerator
public void setSqlGenerator(SqlGeneratorType value)
Sets the value of the sqlGenerator property.- Parameters:
value- allowed object isSqlGeneratorType
-
getCustomGenerator
public CustomGeneratorType getCustomGenerator()
Gets the value of the customGenerator property.- Returns:
- possible object is
CustomGeneratorType
-
setCustomGenerator
public void setCustomGenerator(CustomGeneratorType value)
Sets the value of the customGenerator property.- Parameters:
value- allowed object isCustomGeneratorType
-
-