de.unidu.is.sql
Class DBColumnExpression

java.lang.Object
  extended byde.unidu.is.expressions.AbstractExpression
      extended byde.unidu.is.sql.DBColumnExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
DBColExpression

public class DBColumnExpression
extends AbstractExpression

An expression with encoding a table column, specified by the table and the column name.

Since:
2003-10-21
Version:
$Revision: 1.5 $, $Date: 2005/03/14 17:33:14 $
Author:
Henrik Nottelmann

Field Summary
protected  java.lang.String col
          The column name.
protected  java.lang.String table
          The table name.
 
Constructor Summary
DBColumnExpression(java.lang.String table, java.lang.String col)
          Creates a new expression object.
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests whether this object equals the specified one.
 java.lang.String getCol()
          Returns the column name.
 java.lang.String getTable()
          Returns the table name.
 int hashCode()
          Returns a hashcode for this object.
 void setCol(java.lang.String col)
          Sets the column name.
 void setTable(java.lang.String string)
          Sets the table name.
 java.lang.String toString()
          Returns the expression in infix notation, embedded in round brackets.
 
Methods inherited from class de.unidu.is.expressions.AbstractExpression
getSQLTemplate, substitute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

table

protected java.lang.String table
The table name.


col

protected java.lang.String col
The column name.

Constructor Detail

DBColumnExpression

public DBColumnExpression(java.lang.String table,
                          java.lang.String col)
Creates a new expression object.

Parameters:
table - table name
col - column name
Method Detail

toString

public java.lang.String toString()
Returns the expression in infix notation, embedded in round brackets.

Returns:
expression as a string

equals

public boolean equals(java.lang.Object o)
Tests whether this object equals the specified one.

Parameters:
o - object to test
Returns:
true iff both objects are the same

hashCode

public int hashCode()
Returns a hashcode for this object.

Returns:
hashcode for this object

getTable

public java.lang.String getTable()
Returns the table name.

Returns:
table name

setTable

public void setTable(java.lang.String string)
Sets the table name.

Parameters:
string - table name

getCol

public java.lang.String getCol()
Returns the column name.

Returns:
column name

setCol

public void setCol(java.lang.String col)
Sets the column name.

Parameters:
col - column name