|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.IndexColumnOrder
public class IndexColumnOrder
Basic implementation of ColumnOrdering. Not sure what to tell callers about 0-based versus 1-based numbering. Assume 0-based for now.
Field Summary | |
---|---|
(package private) boolean |
ascending
|
(package private) int |
colNum
This class implements Formatable. |
(package private) boolean |
nullsOrderedLow
indicate whether NULL values should sort low. |
Constructor Summary | |
---|---|
IndexColumnOrder()
Niladic constructor for formatable |
|
IndexColumnOrder(int colNum)
|
|
IndexColumnOrder(int colNum,
boolean ascending)
|
|
IndexColumnOrder(int colNum,
boolean ascending,
boolean nullsLow)
constructor used by the ORDER BY clause. |
Method Summary | |
---|---|
int |
getColumnId()
|
boolean |
getIsAscending()
|
boolean |
getIsNullsOrderedLow()
Indicate whether NULL values should be ordered below non-NULL. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object out |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int colNum
boolean ascending
boolean nullsOrderedLow
Constructor Detail |
---|
public IndexColumnOrder()
public IndexColumnOrder(int colNum)
public IndexColumnOrder(int colNum, boolean ascending)
public IndexColumnOrder(int colNum, boolean ascending, boolean nullsLow)
colNum
- number of this columnascending
- whether the ORDER BY is ascendeing or descendingnullsLow
- whether nulls should be ordered lowMethod Detail |
---|
public int getColumnId()
getColumnId
in interface ColumnOrdering
public boolean getIsAscending()
getIsAscending
in interface ColumnOrdering
public boolean getIsNullsOrderedLow()
getIsNullsOrderedLow
in interface ColumnOrdering
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes here
java.io.IOException
- thrown on errorpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- read this.
java.io.IOException
- thrown on error
java.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public java.lang.String toString()
toString
in class java.lang.Object
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |