public class SecondaryTable extends Object
@Target({TYPE}) @Retention(RUNTIME) public @interface SecondaryTable { String name(); String catalog() default ""; String schema() default ""; PrimaryKeyJoinColumn[] pkJoinColumns() default {}; UniqueConstraint[] uniqueConstraints() default {}; Index[] indexes() default {}; }
<p>Java class for secondary-table complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="secondary-table"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <sequence> <element name="primary-key-join-column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="primary-key-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" use="required" 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> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
catalog |
protected List<Index> |
index |
protected String |
name |
protected ForeignKey |
primaryKeyForeignKey |
protected List<PrimaryKeyJoinColumn> |
primaryKeyJoinColumn |
protected String |
schema |
protected List<UniqueConstraint> |
uniqueConstraint |
| Constructor and Description |
|---|
SecondaryTable() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalog()
Gets the value of the catalog property.
|
List<Index> |
getIndex()
Gets the value of the index property.
|
String |
getName()
Gets the value of the name property.
|
ForeignKey |
getPrimaryKeyForeignKey()
Gets the value of the primaryKeyForeignKey property.
|
List<PrimaryKeyJoinColumn> |
getPrimaryKeyJoinColumn()
Gets the value of the primaryKeyJoinColumn property.
|
String |
getSchema()
Gets the value of the schema property.
|
List<UniqueConstraint> |
getUniqueConstraint()
Gets the value of the uniqueConstraint property.
|
void |
setCatalog(String value)
Sets the value of the catalog property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPrimaryKeyForeignKey(ForeignKey value)
Sets the value of the primaryKeyForeignKey property.
|
void |
setSchema(String value)
Sets the value of the schema property.
|
protected List<PrimaryKeyJoinColumn> primaryKeyJoinColumn
protected ForeignKey primaryKeyForeignKey
protected List<UniqueConstraint> uniqueConstraint
protected String name
protected String catalog
protected String schema
public List<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn()
Gets the value of the primaryKeyJoinColumn property.
<p> 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 <CODE>set</CODE> method for the primaryKeyJoinColumn property.
<p> For example, to add a new item, do as follows: <pre> getPrimaryKeyJoinColumn().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
PrimaryKeyJoinColumn
public ForeignKey getPrimaryKeyForeignKey()
Gets the value of the primaryKeyForeignKey property.
ForeignKeypublic void setPrimaryKeyForeignKey(ForeignKey value)
Sets the value of the primaryKeyForeignKey property.
value - allowed object is
ForeignKeypublic List<UniqueConstraint> getUniqueConstraint()
Gets the value of the uniqueConstraint property.
<p> 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 <CODE>set</CODE> method for the uniqueConstraint property.
<p> For example, to add a new item, do as follows: <pre> getUniqueConstraint().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
UniqueConstraint
public List<Index> getIndex()
Gets the value of the index property.
<p> 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 <CODE>set</CODE> method for the index property.
<p> For example, to add a new item, do as follows: <pre> getIndex().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
Index
public String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name property.
value - allowed object is
Stringpublic String getCatalog()
Gets the value of the catalog property.
Stringpublic void setCatalog(String value)
Sets the value of the catalog property.
value - allowed object is
Stringpublic String getSchema()
Gets the value of the schema property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.