org.jboss.shrinkwrap.descriptor.api.orm21.UniqueConstraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Client View of the ShrinkWrap Descriptors Project
The newest version!
package org.jboss.shrinkwrap.descriptor.api.orm21;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.orm.*;
import org.jboss.shrinkwrap.descriptor.api.orm.OrmUniqueConstraintCommType;
/**
* This interface defines the contract for the unique-constraint
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
public interface UniqueConstraint extends Child,
OrmUniqueConstraintCommType> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: UniqueConstraint ElementName: xsd:string ElementType : column-name
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Creates for all String objects representing column-name
elements,
* a new column-name
element
* @param values list of column-name
objects
* @return the current instance of UniqueConstraint
*/
public UniqueConstraint columnName(String ... values);
/**
* Returns all column-name
elements
* @return list of column-name
*/
public List getAllColumnName();
/**
* Removes the column-name
element
* @return the current instance of UniqueConstraint
*/
public UniqueConstraint removeAllColumnName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: UniqueConstraint ElementName: xsd:string ElementType : name
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the name
attribute
* @param name the value for the attribute name
* @return the current instance of UniqueConstraint
*/
public UniqueConstraint name(String name);
/**
* Returns the name
attribute
* @return the value defined for the attribute name
*/
public String getName();
/**
* Removes the name
attribute
* @return the current instance of UniqueConstraint
*/
public UniqueConstraint removeName();
}