org.sql.generation.api.grammar.definition.table
Interface UniqueConstraint

All Superinterfaces:
TableConstraint, org.atp.api.Typeable<TableConstraint>

public interface UniqueConstraint
extends TableConstraint

This constraint defines the columns to be unique (UNIQUE(col1, col2, ...)).

Author:
Stanislav Muhametsin

Method Summary
 ColumnNameList getColumnNameList()
          Returns the names of columns that are unique.
 UniqueSpecification getUniquenessKind()
          Returns the kind of uniqueness: either primary key constraint (PRIMARY KEY), or normal uniqueness constraint (UNIQUE).
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Method Detail

getUniquenessKind

UniqueSpecification getUniquenessKind()
Returns the kind of uniqueness: either primary key constraint (PRIMARY KEY), or normal uniqueness constraint (UNIQUE).

Returns:
The kind of uniqueness.
See Also:
UniqueSpecification

getColumnNameList

ColumnNameList getColumnNameList()
Returns the names of columns that are unique.

Returns:
The names of columns that are unique.


Copyright © 2010-2012. All Rights Reserved.