org.castor.cpa.persistence.sql.query
Class Qualifier

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.QueryObject
      extended by org.castor.cpa.persistence.sql.query.Qualifier
Direct Known Subclasses:
Table

public abstract class Qualifier
extends QueryObject

Abstract base class for all qualifiers.

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

Constructor Summary
protected Qualifier(java.lang.String name)
          Construct a qualifier with given name.
 
Method Summary
 Column column(java.lang.String name)
          Builder method to create a column with given name belonging to this qualifier.
 java.lang.String name()
          Returns name of the qualifier.
 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.QueryObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Qualifier

protected Qualifier(java.lang.String name)
Construct a qualifier with given name.

Parameters:
name - Name of the qualifier.
Method Detail

name

public final java.lang.String name()
Returns name of the qualifier.

Returns:
Name of the qualifier.

column

public final Column column(java.lang.String name)
Builder method to create a column with given name belonging to this qualifier.

Parameters:
name - Name of the column.
Returns:
Column belonging to this qualifier.

toString

public final 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