Top Fields Constructors Methods
org.apache.derby.impl.sql.compile

pack-priv Class ColumnOrdering

extends Object
Class Inheritance
Imports
java.util.ArrayList, org.apache.derby.iapi.sql.compile.RowOrdering, org.apache.derby.shared.common.sanity.SanityManager

Field Summary

Modifier and TypeField and Description
private final ArrayList<Integer>
columns

A list of column numbers (Integers).

pack-priv int
myDirection

See RowOrdering for possible values.

private final ArrayList<Integer>
tables

A list of table numbers (Integers), corresponding to the columns list by position.

Constructor Summary

AccessConstructor and Description
pack-priv
ColumnOrdering(int
See RowOrdering for possible values
direction
)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addColumn(int
The number of table in question
tableNumber
,
int
The column number in the table (one-based)
columnNumber
)

Add a column in a table to this ColumnOrdering

pack-priv ColumnOrdering
cloneMe()

Return a clone of this ColumnOrdering

pack-priv boolean

Returns:

true if the column is found here in the right direction
contains
(int
The number of table in question
tableNumber
,
int
The column number in the table (one-based)
columnNumber
)

Does this ColumnOrdering contain the given column?

pack-priv int
direction()

Get the direction of this ColumnOrdering

pack-priv boolean
empty()

Tell whether this ColumnOrdering has no elements.

pack-priv boolean
hasAnyOtherTable(int tableNumber)

Is there any table other than the given one in this ColumnOrdering?

pack-priv boolean
hasTable(int tableNumber)

Is the given table number in this ColumnOrdering?

pack-priv boolean

Returns:

true if the column is found here in the right direction
ordered
(int
See RowOrdering for possible values
direction
,
int
The number of the table in question
tableNumber
,
int
The column number in the table (one-based)
columnNumber
)

Does this ColumnOrdering contain the given column in the given table in the right direction?

pack-priv void
removeColumns(int tableNumber)

Remove all columns with the given table number

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

columnsback to summary
private final ArrayList<Integer> columns

A list of column numbers (Integers).

myDirectionback to summary
pack-priv int myDirection

See RowOrdering for possible values.

tablesback to summary
private final ArrayList<Integer> tables

A list of table numbers (Integers), corresponding to the columns list by position.

Constructor Detail

ColumnOrderingback to summary
pack-priv ColumnOrdering(int direction)
Parameters
direction:int

See RowOrdering for possible values

Method Detail

addColumnback to summary
pack-priv void addColumn(int tableNumber, int columnNumber)

Add a column in a table to this ColumnOrdering

Parameters
tableNumber:int

The number of table in question

columnNumber:int

The column number in the table (one-based)

cloneMeback to summary
pack-priv ColumnOrdering cloneMe()

Return a clone of this ColumnOrdering

containsback to summary
pack-priv boolean contains(int tableNumber, int columnNumber)

Does this ColumnOrdering contain the given column?

Parameters
tableNumber:int

The number of table in question

columnNumber:int

The column number in the table (one-based)

Returns:boolean

true if the column is found here in the right direction

directionback to summary
pack-priv int direction()

Get the direction of this ColumnOrdering

emptyback to summary
pack-priv boolean empty()

Tell whether this ColumnOrdering has no elements.

hasAnyOtherTableback to summary
pack-priv boolean hasAnyOtherTable(int tableNumber)

Is there any table other than the given one in this ColumnOrdering?

hasTableback to summary
pack-priv boolean hasTable(int tableNumber)

Is the given table number in this ColumnOrdering?

orderedback to summary
pack-priv 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:int

See RowOrdering for possible values

tableNumber:int

The number of the table in question

columnNumber:int

The column number in the table (one-based)

Returns:boolean

true if the column is found here in the right direction

removeColumnsback to summary
pack-priv void removeColumns(int tableNumber)

Remove all columns with the given table number

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override