org.eclipse.jpt.core.context
Interface UniqueConstraint

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
JavaUniqueConstraint, OrmUniqueConstraint

public interface UniqueConstraint
extends JpaContextNode

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Nested Class Summary
static interface UniqueConstraint.Owner
          All containers must implement this interface.
 
Field Summary
static java.lang.String COLUMN_NAMES_LIST
           
 
Method Summary
 void addColumnName(int index, java.lang.String columnName)
          Add a column name to the list at the given index
 java.util.ListIterator<java.lang.String> columnNames()
          Return a list iterator of the column names.
 int columnNamesSize()
          Return the number of column names.
 void moveColumnName(int targetIndex, int sourceIndex)
          Move the column name from the source index to the target index.
 void removeColumnName(int index)
          Remove the column name at the given index from the unique constraint
 void removeColumnName(java.lang.String columnName)
          Remove the column name from the unique constraint
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getEntityMappings, getOrmPersistentType, getPersistenceUnit
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

COLUMN_NAMES_LIST

static final java.lang.String COLUMN_NAMES_LIST
See Also:
Constant Field Values
Method Detail

columnNames

java.util.ListIterator<java.lang.String> columnNames()
Return a list iterator of the column names. This will not be null.


columnNamesSize

int columnNamesSize()
Return the number of column names.


addColumnName

void addColumnName(int index,
                   java.lang.String columnName)
Add a column name to the list at the given index


removeColumnName

void removeColumnName(int index)
Remove the column name at the given index from the unique constraint


removeColumnName

void removeColumnName(java.lang.String columnName)
Remove the column name from the unique constraint


moveColumnName

void moveColumnName(int targetIndex,
                    int sourceIndex)
Move the column name from the source index to the target index.