public class UniqueConstraint extends Object
@Target({}) @Retention(RUNTIME) public @interface UniqueConstraint { String name() default ""; String[] columnNames(); }
<p>Java class for unique-constraint complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="unique-constraint"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="column-name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> </sequence> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
columnName |
protected String |
name |
| Constructor and Description |
|---|
UniqueConstraint() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getColumnName()
Gets the value of the columnName property.
|
String |
getName()
Gets the value of the name property.
|
void |
setName(String value)
Sets the value of the name property.
|
public List<String> getColumnName()
Gets the value of the columnName 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 columnName property.
<p> For example, to add a new item, do as follows: <pre> getColumnName().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
String
public String getName()
Gets the value of the name property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.