Class TableGenerator


  • public class TableGenerator
    extends Object
    Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface TableGenerator { String name(); String table() default ""; String catalog() default ""; String schema() default ""; String pkColumnName() default ""; String valueColumnName() default ""; String pkColumnValue() default ""; int initialValue() default 0; int allocationSize() default 50; UniqueConstraint[] uniqueConstraints() default {}; }

    Java class for table-generator complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="table-generator">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="unique-constraint" type="{http://java.sun.com/xml/ns/persistence/orm}unique-constraint" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="pk-column-name" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="value-column-name" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="pk-column-value" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="initial-value" type="{http://www.w3.org/2001/XMLSchema}int" />
           <attribute name="allocation-size" type="{http://www.w3.org/2001/XMLSchema}int" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • description

        protected String description
      • allocationSize

        protected Integer allocationSize
      • catalog

        protected String catalog
      • initialValue

        protected Integer initialValue
      • pkColumnName

        protected String pkColumnName
      • pkColumnValue

        protected String pkColumnValue
      • schema

        protected String schema
      • table

        protected String table
      • valueColumnName

        protected String valueColumnName
    • Constructor Detail

      • TableGenerator

        public TableGenerator()
    • Method Detail

      • getDescription

        public String getDescription()
        Gets the value of the description property.
        Returns:
        possible object is String
      • setDescription

        public void setDescription​(String value)
        Sets the value of the description property.
        Parameters:
        value - allowed object is String
      • getUniqueConstraint

        public List<UniqueConstraint> getUniqueConstraint()
        Gets the value of the uniqueConstraint property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the uniqueConstraint property. For example, to add a new item, do as follows:
            getUniqueConstraint().add(newItem);
         
        Objects of the following type(s) are allowed in the list UniqueConstraint
      • getAllocationSize

        public Integer getAllocationSize()
        Gets the value of the allocationSize property.
        Returns:
        possible object is Integer
      • setAllocationSize

        public void setAllocationSize​(Integer value)
        Sets the value of the allocationSize property.
        Parameters:
        value - allowed object is Integer
      • getCatalog

        public String getCatalog()
        Gets the value of the catalog property.
        Returns:
        possible object is String
      • setCatalog

        public void setCatalog​(String value)
        Sets the value of the catalog property.
        Parameters:
        value - allowed object is String
      • getInitialValue

        public Integer getInitialValue()
        Gets the value of the initialValue property.
        Returns:
        possible object is Integer
      • setInitialValue

        public void setInitialValue​(Integer value)
        Sets the value of the initialValue property.
        Parameters:
        value - allowed object is Integer
      • getName

        public String getName()
        Gets the value of the name property.
        Returns:
        possible object is String
      • setName

        public void setName​(String value)
        Sets the value of the name property.
        Parameters:
        value - allowed object is String
      • getPkColumnName

        public String getPkColumnName()
        Gets the value of the pkColumnName property.
        Returns:
        possible object is String
      • setPkColumnName

        public void setPkColumnName​(String value)
        Sets the value of the pkColumnName property.
        Parameters:
        value - allowed object is String
      • getPkColumnValue

        public String getPkColumnValue()
        Gets the value of the pkColumnValue property.
        Returns:
        possible object is String
      • setPkColumnValue

        public void setPkColumnValue​(String value)
        Sets the value of the pkColumnValue property.
        Parameters:
        value - allowed object is String
      • getSchema

        public String getSchema()
        Gets the value of the schema property.
        Returns:
        possible object is String
      • setSchema

        public void setSchema​(String value)
        Sets the value of the schema property.
        Parameters:
        value - allowed object is String
      • getTable

        public String getTable()
        Gets the value of the table property.
        Returns:
        possible object is String
      • setTable

        public void setTable​(String value)
        Sets the value of the table property.
        Parameters:
        value - allowed object is String
      • getValueColumnName

        public String getValueColumnName()
        Gets the value of the valueColumnName property.
        Returns:
        possible object is String
      • setValueColumnName

        public void setValueColumnName​(String value)
        Sets the value of the valueColumnName property.
        Parameters:
        value - allowed object is String