isql
Class ColumnKey

java.lang.Object
  extended by isql.ColumnKey
All Implemented Interfaces:
java.lang.Comparable<ColumnKey>

public class ColumnKey
extends java.lang.Object
implements java.lang.Comparable<ColumnKey>

A key defining a column in the result set, using the table name and the column name

Author:
SHZ Oct 4, 2007

Constructor Summary
ColumnKey(java.lang.String tableName, java.lang.String columnName)
          Constructor
 
Method Summary
 int compareTo(ColumnKey o)
           
 boolean equals(java.lang.Object obj)
           
static ColumnKey fromString(java.lang.String s)
          Builds a ColumnKey object from a text
 java.lang.String getColumnName()
           
 java.lang.String getTableName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnKey

public ColumnKey(java.lang.String tableName,
                 java.lang.String columnName)
Constructor

Parameters:
tableName - the table name
columnName - the column name
Method Detail

getColumnName

public java.lang.String getColumnName()
Returns:
the columnName

getTableName

public java.lang.String getTableName()
Returns:
the tableName

compareTo

public int compareTo(ColumnKey o)
Specified by:
compareTo in interface java.lang.Comparable<ColumnKey>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fromString

public static ColumnKey fromString(java.lang.String s)
Builds a ColumnKey object from a text

Parameters:
s - the text in form of .
Returns:
the ColumnKey object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object