org.apache.ws.jaxme.sqls

Interface ColumnSet

public interface ColumnSet

A common base interface for {@link Index} and {@link ForeignKey}.

Author: Jochen Wiedmann

Method Summary
IteratorgetColumns()

Returns the column sets columns.

TablegetTable()

Returns the table on which the foreign key is defined.

Method Detail

getColumns

public Iterator getColumns()

Returns the column sets columns. In the case of an {@link Index}, these are the columns that have been added via {@link Index#addColumn(Column)}. In the case of a {@link ForeignKey}, these are the local columns of column links.

getTable

public Table getTable()

Returns the table on which the foreign key is defined.