Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

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

List of all members.

Public Member Functions

 TableColumn (String tableName, String columnName)
String getColumnName ()
String getTableName ()
void setColumnName (String columnName)
void setTableName (String tableName)
boolean equals (Object other)

Detailed Description

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

Author:
Emmanuel Cecchet

Mathieu Peltier

Version:
1.0

Definition at line 35 of file TableColumn.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.common.sql.schema.TableColumn.TableColumn String  tableName,
String  columnName
 

Creates a new TableColumn.

Parameters:
tableName the table name
columnName the column name

Definition at line 49 of file TableColumn.java.

00050   {
00051     if (tableName == null)
00052       throw new IllegalArgumentException("Illegal null table name in TableColumn constructor");
00053 
00054     if (columnName == null)
00055       throw new IllegalArgumentException("Illegal null column name in TableColumn constructor");
00056 
00057     this.tableName = tableName;
00058     this.columnName = columnName;
00059   }


Member Function Documentation

boolean org.objectweb.cjdbc.common.sql.schema.TableColumn.equals 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

Definition at line 108 of file TableColumn.java.

References org.objectweb.cjdbc.common.sql.schema.TableColumn.getColumnName(), and org.objectweb.cjdbc.common.sql.schema.TableColumn.getTableName().

00109   {
00110     if ((other == null) || !(other instanceof TableColumn))
00111       return false;
00112 
00113     TableColumn c = (TableColumn) other;
00114     return columnName.equals(c.getColumnName())
00115       && tableName.equals(c.getTableName());
00116   }

String org.objectweb.cjdbc.common.sql.schema.TableColumn.getColumnName  ) 
 

Returns the column name.

Returns:
the column name.

Definition at line 66 of file TableColumn.java.

Referenced by org.objectweb.cjdbc.common.sql.schema.TableColumn.equals(), org.objectweb.cjdbc.common.sql.CreateRequest.parse(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processWriteNotify(), and org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processWriteNotify().

00067   {
00068     return columnName;
00069   }

String org.objectweb.cjdbc.common.sql.schema.TableColumn.getTableName  ) 
 

Returns the table name.

Returns:
the table name.

Definition at line 76 of file TableColumn.java.

Referenced by org.objectweb.cjdbc.common.sql.schema.TableColumn.equals(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processWriteNotify(), and org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processWriteNotify().

00077   {
00078     return tableName;
00079   }

void org.objectweb.cjdbc.common.sql.schema.TableColumn.setColumnName String  columnName  ) 
 

Sets the column name.

Parameters:
columnName the column to set

Definition at line 86 of file TableColumn.java.

00087   {
00088     this.columnName = columnName;
00089   }

void org.objectweb.cjdbc.common.sql.schema.TableColumn.setTableName String  tableName  ) 
 

Sets the table name.

Parameters:
tableName the table to set

Definition at line 96 of file TableColumn.java.

00097   {
00098     this.tableName = tableName;
00099   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:13 2005 for C-JDBC by  doxygen 1.3.9.1