Class 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>
     
    • 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
      • setSequenceTable

        public void setSequenceTable​(SequenceTableType value)
        Sets the value of the sequenceTable property.
        Parameters:
        value - allowed object is SequenceTableType
      • setSqlGenerator

        public void setSqlGenerator​(SqlGeneratorType value)
        Sets the value of the sqlGenerator property.
        Parameters:
        value - allowed object is SqlGeneratorType
      • setCustomGenerator

        public void setCustomGenerator​(CustomGeneratorType value)
        Sets the value of the customGenerator property.
        Parameters:
        value - allowed object is CustomGeneratorType