ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm20
Interface UniqueConstraint<T>

All Superinterfaces:
Child<T>

public interface UniqueConstraint<T>
extends Child<T>

This interface defines the contract for the unique-constraint xsd type

Since:
Generation date :2012-05-09T23:45:05.33-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 UniqueConstraint<T> columnName(String... values)
          Creates for all String objects representing column-name elements, a new column-name element
 List<String> getAllColumnName()
          Returns all column-name elements
 String getName()
          Returns the name attribute
 UniqueConstraint<T> name(String name)
          Sets the name attribute
 UniqueConstraint<T> removeAllColumnName()
          Removes the column-name element
 UniqueConstraint<T> removeName()
          Removes the name attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

columnName

UniqueConstraint<T> columnName(String... values)
Creates for all String objects representing column-name elements, a new column-name element

Parameters:
values - list of column-name objects
Returns:
the current instance of UniqueConstraint

getAllColumnName

List<String> getAllColumnName()
Returns all column-name elements

Returns:
list of column-name

removeAllColumnName

UniqueConstraint<T> removeAllColumnName()
Removes the column-name element

Returns:
the current instance of UniqueConstraint

name

UniqueConstraint<T> name(String name)
Sets the name attribute

Parameters:
name - the value for the attribute name
Returns:
the current instance of UniqueConstraint

getName

String getName()
Returns the name attribute

Returns:
the value defined for the attribute name

removeName

UniqueConstraint<T> removeName()
Removes the name attribute

Returns:
the current instance of UniqueConstraint

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.