Class ColumnOrdering
java.lang.Object
org.apache.derby.impl.sql.compile.ColumnOrdering
-
Field Summary
FieldsModifier and TypeFieldDescriptionA list of column numbers (Integers).(package private) intSeeRowOrderingfor possible values.A list of table numbers (Integers), corresponding to thecolumnslist by position. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddColumn(int tableNumber, int columnNumber) Add a column in a table to this ColumnOrdering(package private) ColumnOrderingcloneMe()Return a clone of this ColumnOrdering(package private) booleancontains(int tableNumber, int columnNumber) Does this ColumnOrdering contain the given column?(package private) intGet the direction of this ColumnOrdering(package private) booleanempty()Tell whether this ColumnOrdering has no elements.(package private) booleanhasAnyOtherTable(int tableNumber) Is there any table other than the given one in this ColumnOrdering?(package private) booleanhasTable(int tableNumber) Is the given table number in this ColumnOrdering?(package private) booleanordered(int direction, int tableNumber, int columnNumber) Does this ColumnOrdering contain the given column in the given table in the right direction?(package private) voidremoveColumns(int tableNumber) Remove all columns with the given table numbertoString()
-
Field Details
-
myDirection
int myDirectionSeeRowOrderingfor possible values. -
columns
-
tables
-
-
Constructor Details
-
ColumnOrdering
ColumnOrdering(int direction) - Parameters:
direction- See RowOrdering for possible values
-
-
Method Details
-
ordered
boolean ordered(int direction, int tableNumber, int columnNumber) Does this ColumnOrdering contain the given column in the given table in the right direction?- Parameters:
direction- See RowOrdering for possible valuestableNumber- The number of the table in questioncolumnNumber- The column number in the table (one-based)- Returns:
- true if the column is found here in the right direction
-
contains
boolean contains(int tableNumber, int columnNumber) Does this ColumnOrdering contain the given column?- Parameters:
tableNumber- The number of table in questioncolumnNumber- The column number in the table (one-based)- Returns:
- true if the column is found here in the right direction
-
direction
int direction()Get the direction of this ColumnOrdering -
addColumn
void addColumn(int tableNumber, int columnNumber) Add a column in a table to this ColumnOrdering- Parameters:
tableNumber- The number of table in questioncolumnNumber- The column number in the table (one-based)
-
removeColumns
void removeColumns(int tableNumber) Remove all columns with the given table number -
empty
boolean empty()Tell whether this ColumnOrdering has no elements. -
cloneMe
ColumnOrdering cloneMe()Return a clone of this ColumnOrdering -
hasTable
boolean hasTable(int tableNumber) Is the given table number in this ColumnOrdering? -
hasAnyOtherTable
boolean hasAnyOtherTable(int tableNumber) Is there any table other than the given one in this ColumnOrdering? -
toString
-