Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.execute
Class IndexColumnOrder  view IndexColumnOrder download IndexColumnOrder.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.IndexColumnOrder
All Implemented Interfaces:
org.apache.derby.iapi.store.access.ColumnOrdering, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, java.io.Serializable, org.apache.derby.iapi.services.io.TypedFormat

public class IndexColumnOrder
extends java.lang.Object
implements org.apache.derby.iapi.store.access.ColumnOrdering, org.apache.derby.iapi.services.io.Formatable

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.
 
Constructor Summary
IndexColumnOrder()
          Niladic constructor for formatable
IndexColumnOrder(int colNum)
           
IndexColumnOrder(int colNum, boolean ascending)
           
 
Method Summary
 int getColumnId()
           
 boolean getIsAscending()
           
 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.
 void writeExternal(java.io.ObjectOutput out)
          Write this object out
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colNum

int colNum
This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method.


ascending

boolean ascending
Constructor Detail

IndexColumnOrder

public IndexColumnOrder()
Niladic constructor for formatable


IndexColumnOrder

public IndexColumnOrder(int colNum)

IndexColumnOrder

public IndexColumnOrder(int colNum,
                        boolean ascending)
Method Detail

getColumnId

public int getColumnId()
Specified by:
getColumnId in interface org.apache.derby.iapi.store.access.ColumnOrdering

getIsAscending

public boolean getIsAscending()
Specified by:
getIsAscending in interface org.apache.derby.iapi.store.access.ColumnOrdering

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Write this object out

Specified by:
writeExternal in interface java.io.Externalizable

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read this object from a stream of stored objects.

Specified by:
readExternal in interface java.io.Externalizable

getTypeFormatId

public int getTypeFormatId()
Get the formatID which corresponds to this class.

Specified by:
getTypeFormatId in interface org.apache.derby.iapi.services.io.TypedFormat