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

public Class JaxbTable

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
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
propOrder:uniqueConstraint, index
Imports
java.io.Serializable, java.util.ArrayList, .List, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType

@Target({TYPE}) @Retention(RUNTIME) public @interface Table { String name() default ""; String catalog() default ""; String schema() default ""; UniqueConstraint[] uniqueConstraints() default {}; Index[] indexes() default {}; }

Java class for table complex type.

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

<complexType name="table">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <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" 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" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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 List<JaxbIndex>
getIndex()

Gets the value of the index property.

public String

Returns:

possible object is String
getName
()

Gets the value of the name 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 List<JaxbUniqueConstraint>
getUniqueConstraint()

Gets the value of the uniqueConstraint 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
setName(String
allowed object is String
value
)

Sets the value of the name 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.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

catalogback to summary
protected String catalog
Annotations
@XmlAttribute
name:catalog
indexback to summary
protected List<JaxbIndex> index
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
nameback to summary
protected String name
Annotations
@XmlAttribute
name:name
schemaback to summary
protected String schema
Annotations
@XmlAttribute
name:schema
uniqueConstraintback to summary
protected List<JaxbUniqueConstraint> uniqueConstraint
Annotations
@XmlElement
name:unique-constraint
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm

Constructor Detail

JaxbTableback to summary
public JaxbTable()

Method Detail

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

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

getNameback to summary
public String getName()

Gets the value of the name 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

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

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

setNameback to summary
public void setName(String value)

Sets the value of the name 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