org.apache.openejb.jee.oejb2
Class KeyGeneratorType

java.lang.Object
  extended by 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://openejb.apache.org/xml/ns/pkgen-2.1}sequence-tableType"/>
         <element name="auto-increment-table" type="{http://openejb.apache.org/xml/ns/pkgen-2.1}auto-increment-tableType"/>
         <element name="sql-generator" type="{http://openejb.apache.org/xml/ns/pkgen-2.1}sql-generatorType"/>
         <element name="custom-generator" type="{http://openejb.apache.org/xml/ns/pkgen-2.1}custom-generatorType"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  AutoIncrementTableType autoIncrementTable
           
protected  CustomGeneratorType customGenerator
           
protected  SequenceTableType sequenceTable
           
protected  SqlGeneratorType sqlGenerator
           
protected  EmptyType uuid
           
 
Constructor Summary
KeyGeneratorType()
           
 
Method Summary
 AutoIncrementTableType getAutoIncrementTable()
          Gets the value of the autoIncrementTable property.
 CustomGeneratorType getCustomGenerator()
          Gets the value of the customGenerator property.
 SequenceTableType getSequenceTable()
          Gets the value of the sequenceTable property.
 SqlGeneratorType getSqlGenerator()
          Gets the value of the sqlGenerator property.
 boolean isUuid()
          Gets the value of the uuid property.
 void setAutoIncrementTable(AutoIncrementTableType value)
          Sets the value of the autoIncrementTable property.
 void setCustomGenerator(CustomGeneratorType value)
          Sets the value of the customGenerator property.
 void setSequenceTable(SequenceTableType value)
          Sets the value of the sequenceTable property.
 void setSqlGenerator(SqlGeneratorType value)
          Sets the value of the sqlGenerator property.
 void setUuid(boolean value)
          Sets the value of the uuid property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uuid

protected EmptyType uuid

sequenceTable

protected SequenceTableType sequenceTable

autoIncrementTable

protected AutoIncrementTableType autoIncrementTable

sqlGenerator

protected SqlGeneratorType sqlGenerator

customGenerator

protected CustomGeneratorType customGenerator
Constructor Detail

KeyGeneratorType

public KeyGeneratorType()
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 is boolean

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 is SequenceTableType

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 is AutoIncrementTableType

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 is SqlGeneratorType

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 is CustomGeneratorType


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.