Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping.spi

public Class JaxbTableGenerator

extends Object
implements Serializable, SchemaAware
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.mapping.spi.SchemaAware, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:table-generator
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
propOrder:description, uniqueConstraint, index
Imports
java.io.Serializable, java.util.ArrayList, .List, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType

@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 {}; Indexes[] indexes() 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://xmlns.jcp.org/xml/ns/persistence/orm}unique-constraint" maxOccurs="unbounded" minOccurs="0"/>
        <element name="index" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}index" 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 Summary

Modifier and TypeField and Description
protected Integer
protected String
protected String
protected List<JaxbIndex>
protected Integer
protected String
protected String
protected String
protected String
protected String
protected List<JaxbUniqueConstraint>
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Integer

Returns:

possible object is Integer
getAllocationSize
()

Gets the value of the allocationSize property.

public String

Returns:

possible object is String
getCatalog
()

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.getCatalog.

Gets the value of the catalog property.
public String

Returns:

possible object is String
getDescription
()

Gets the value of the description property.

public List<JaxbIndex>
getIndex()

Gets the value of the index property.

public Integer

Returns:

possible object is Integer
getInitialValue
()

Gets the value of the initialValue property.

public String

Returns:

possible object is String
getName
()

Gets the value of the name property.

public String

Returns:

possible object is String
getPkColumnName
()

Gets the value of the pkColumnName property.

public String

Returns:

possible object is String
getPkColumnValue
()

Gets the value of the pkColumnValue property.

public String

Returns:

possible object is String
getSchema
()

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.getSchema.

Gets the value of the schema property.
public String

Returns:

possible object is String
getTable
()

Gets the value of the table property.

public List<JaxbUniqueConstraint>
getUniqueConstraint()

Gets the value of the uniqueConstraint property.

public String

Returns:

possible object is String
getValueColumnName
()

Gets the value of the valueColumnName property.

public void
setAllocationSize(Integer
allowed object is Integer
value
)

Sets the value of the allocationSize property.

public void
setCatalog(String
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.setCatalog.

Sets the value of the catalog property.
public void
setDescription(String
allowed object is String
value
)

Sets the value of the description property.

public void
setInitialValue(Integer
allowed object is Integer
value
)

Sets the value of the initialValue property.

public void
setName(String
allowed object is String
value
)

Sets the value of the name property.

public void
setPkColumnName(String
allowed object is String
value
)

Sets the value of the pkColumnName property.

public void
setPkColumnValue(String
allowed object is String
value
)

Sets the value of the pkColumnValue property.

public void
setSchema(String
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.setSchema.

Sets the value of the schema property.
public void
setTable(String
allowed object is String
value
)

Sets the value of the table property.

public void
setValueColumnName(String
allowed object is String
value
)

Sets the value of the valueColumnName property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allocationSizeback to summary
protected Integer allocationSize
Annotations
@XmlAttribute
name:allocation-size
catalogback to summary
protected String catalog
Annotations
@XmlAttribute
name:catalog
descriptionback to summary
protected String description
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
indexback to summary
protected List<JaxbIndex> index
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
initialValueback to summary
protected Integer initialValue
Annotations
@XmlAttribute
name:initial-value
nameback to summary
protected String name
Annotations
@XmlAttribute
name:name
required:true
pkColumnNameback to summary
protected String pkColumnName
Annotations
@XmlAttribute
name:pk-column-name
pkColumnValueback to summary
protected String pkColumnValue
Annotations
@XmlAttribute
name:pk-column-value
schemaback to summary
protected String schema
Annotations
@XmlAttribute
name:schema
tableback to summary
protected String table
Annotations
@XmlAttribute
name:table
uniqueConstraintback to summary
protected List<JaxbUniqueConstraint> uniqueConstraint
Annotations
@XmlElement
name:unique-constraint
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
valueColumnNameback to summary
protected String valueColumnName
Annotations
@XmlAttribute
name:value-column-name

Constructor Detail

JaxbTableGeneratorback to summary
public JaxbTableGenerator()

Method Detail

getAllocationSizeback to summary
public Integer getAllocationSize()

Gets the value of the allocationSize property.

Returns:Integer

possible object is Integer

getCatalogback to summary
public String getCatalog()

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.getCatalog.

Gets the value of the catalog property.

Returns:String

possible object is String

getDescriptionback to summary
public String getDescription()

Gets the value of the description property.

Returns:String

possible object is String

getIndexback to summary
public List<JaxbIndex> getIndex()

Gets the value of the index 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 index property.

For example, to add a new item, do as follows:

   getIndex().add(newItem);

Objects of the following type(s) are allowed in the list JaxbIndex

getInitialValueback to summary
public Integer getInitialValue()

Gets the value of the initialValue property.

Returns:Integer

possible object is Integer

getNameback to summary
public String getName()

Gets the value of the name property.

Returns:String

possible object is String

getPkColumnNameback to summary
public String getPkColumnName()

Gets the value of the pkColumnName property.

Returns:String

possible object is String

getPkColumnValueback to summary
public String getPkColumnValue()

Gets the value of the pkColumnValue property.

Returns:String

possible object is String

getSchemaback to summary
public String getSchema()

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.getSchema.

Gets the value of the schema property.

Returns:String

possible object is String

getTableback to summary
public String getTable()

Gets the value of the table property.

Returns:String

possible object is String

getUniqueConstraintback to summary
public List<JaxbUniqueConstraint> 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 JaxbUniqueConstraint

getValueColumnNameback to summary
public String getValueColumnName()

Gets the value of the valueColumnName property.

Returns:String

possible object is String

setAllocationSizeback to summary
public void setAllocationSize(Integer value)

Sets the value of the allocationSize property.

Parameters
value:Integer

allowed object is Integer

setCatalogback to summary
public void setCatalog(String value)

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.setCatalog.

Sets the value of the catalog property.

Parameters
value:String

allowed object is String

setDescriptionback to summary
public void setDescription(String value)

Sets the value of the description property.

Parameters
value:String

allowed object is String

setInitialValueback to summary
public void setInitialValue(Integer value)

Sets the value of the initialValue property.

Parameters
value:Integer

allowed object is Integer

setNameback to summary
public void setName(String value)

Sets the value of the name property.

Parameters
value:String

allowed object is String

setPkColumnNameback to summary
public void setPkColumnName(String value)

Sets the value of the pkColumnName property.

Parameters
value:String

allowed object is String

setPkColumnValueback to summary
public void setPkColumnValue(String value)

Sets the value of the pkColumnValue property.

Parameters
value:String

allowed object is String

setSchemaback to summary
public void setSchema(String value)

Implements org.hibernate.boot.jaxb.mapping.spi.SchemaAware.setSchema.

Sets the value of the schema property.

Parameters
value:String

allowed object is String

setTableback to summary
public void setTable(String value)

Sets the value of the table property.

Parameters
value:String

allowed object is String

setValueColumnNameback to summary
public void setValueColumnName(String value)

Sets the value of the valueColumnName property.

Parameters
value:String

allowed object is String