org.castor.cpa.persistence.sql.query.expression
Class Column

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.QueryObject
      extended by org.castor.cpa.persistence.sql.query.expression.Expression
          extended by org.castor.cpa.persistence.sql.query.expression.Column

public final class Column
extends Expression

Class representing a column of the database table.

Version:
$Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Ahmad Hassan, Ralf Joachim

Constructor Summary
Column(Qualifier qualifier, java.lang.String name)
          Construct a column with given qualifier and name.
Column(java.lang.String name)
          Construct a column that has no qualifier with given name.
 
Method Summary
 java.lang.String name()
          Returns name of the column.
 Qualifier qualifier()
          Returns qualifier the column belongs to.
 void toString(QueryContext ctx)
          Append a string representation of the object to the given QueryContext.
 
Methods inherited from class org.castor.cpa.persistence.sql.query.expression.Expression
equal, greaterEqual, greaterThan, isNotNull, isNull, lessEqual, lessThan, notEqual
 
Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Column

public Column(java.lang.String name)
Construct a column that has no qualifier with given name.

Parameters:
name - Name of the column.

Column

public Column(Qualifier qualifier,
              java.lang.String name)
Construct a column with given qualifier and name.

Parameters:
qualifier - Qualifier the column belongs to.
name - Name of the column.
Method Detail

qualifier

public Qualifier qualifier()
Returns qualifier the column belongs to.

Returns:
Qualifier the column belongs to.

name

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

Returns:
Name of the column.

toString

public void toString(QueryContext ctx)
Description copied from class: QueryObject
Append a string representation of the object to the given QueryContext. In general, this toString method appends a string that "textually represents" this object. The result should be a string in valid SQL syntax. It is required that all subclasses override this method.

Specified by:
toString in class QueryObject
Parameters:
ctx - QueryContext to append the string representation of the object to.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com