org.objectweb.cjdbc.common.sql.schema
Class TableColumn

java.lang.Object
  extended byorg.objectweb.cjdbc.common.sql.schema.TableColumn

public class TableColumn
extends java.lang.Object

A TableColumn is used to carry parsing information and contains a database table name and one of its column.

Version:
1.0
Author:
Emmanuel Cecchet, Mathieu Peltier

Field Summary
private  java.lang.String columnName
          The column name.
private  java.lang.String tableName
          The table name.
 
Constructor Summary
TableColumn(java.lang.String tableName, java.lang.String columnName)
          Creates a new TableColumn.
 
Method Summary
 boolean equals(java.lang.Object other)
          Two TableColumn objects are considered equal if they have the same name and belong to the same table.
 java.lang.String getColumnName()
          Returns the column name.
 java.lang.String getTableName()
          Returns the table name.
 void setColumnName(java.lang.String columnName)
          Sets the column name.
 void setTableName(java.lang.String tableName)
          Sets the table name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableName

private java.lang.String tableName
The table name.


columnName

private java.lang.String columnName
The column name.

Constructor Detail

TableColumn

public TableColumn(java.lang.String tableName,
                   java.lang.String columnName)
Creates a new TableColumn.

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

getColumnName

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

Returns:
the column name.

getTableName

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

Returns:
the table name.

setColumnName

public void setColumnName(java.lang.String columnName)
Sets the column name.

Parameters:
columnName - the column to set

setTableName

public void setTableName(java.lang.String tableName)
Sets the table name.

Parameters:
tableName - the table to set

equals

public boolean equals(java.lang.Object other)
Two TableColumn objects are considered equal if they have the same name and belong to the same table.

Parameters:
other - the object to compare with
Returns:
true if the 2 objects are the same


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.