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

public Class JaxbCollectionTable

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

@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface CollectionTable { String name() default ""; String catalog() default ""; String schema() default ""; JoinColumn[] joinColumns() default {}; UniqueConstraint[] uniqueConstraints() default {}; Index[] indexes() default {}; }

Java class for collection-table complex type.

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

<complexType name="collection-table">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <sequence>
          <element name="join-column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}join-column" maxOccurs="unbounded" minOccurs="0"/>
          <element name="foreign-key" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}foreign-key" minOccurs="0"/>
        </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 JaxbForeignKey
protected List<JaxbIndex>
protected List<JaxbJoinColumn>
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 JaxbForeignKey

Returns:

possible object is JaxbForeignKey
getForeignKey
()

Gets the value of the foreignKey property.

public List<JaxbIndex>
getIndex()

Gets the value of the index property.

public List<JaxbJoinColumn>
getJoinColumn()

Gets the value of the joinColumn 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
setForeignKey(JaxbForeignKey
allowed object is JaxbForeignKey
value
)

Sets the value of the foreignKey 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
foreignKeyback to summary
protected JaxbForeignKey foreignKey
Annotations
@XmlElement
name:foreign-key
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
joinColumnback to summary
protected List<JaxbJoinColumn> joinColumn
Annotations
@XmlElement
name:join-column
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

JaxbCollectionTableback to summary
public JaxbCollectionTable()

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

getForeignKeyback to summary
public JaxbForeignKey getForeignKey()

Gets the value of the foreignKey property.

Returns:JaxbForeignKey

possible object is JaxbForeignKey

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

getJoinColumnback to summary
public List<JaxbJoinColumn> getJoinColumn()

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

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

   getJoinColumn().add(newItem);

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

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

setForeignKeyback to summary
public void setForeignKey(JaxbForeignKey value)

Sets the value of the foreignKey property.

Parameters
value:JaxbForeignKey

allowed object is JaxbForeignKey

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