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

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.expression.Expression
      extended by org.castor.cpa.persistence.sql.query.expression.Parameter
All Implemented Interfaces:
QueryObject

public final class Parameter
extends Expression

A parameter in a SQL query. Values are always bound to parameter with names.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Ahmad Hassan, Ralf Joachim

Constructor Summary
Parameter(String name)
          Construct parameter with given name for binding.
 
Method Summary
 void accept(Visitor visitor)
          Accept method to handle incoming visitors.
 String name()
          Returns name of the parameter for binding of values.
 String toString()
          Method constructing query string.
 
Methods inherited from class org.castor.cpa.persistence.sql.query.expression.Expression
equal, greaterEqual, greaterThan, isNotNull, isNull, lessEqual, lessThan, notEqual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(String name)
Construct parameter with given name for binding.

Parameters:
name - Name of the parameter for binding of values.
Method Detail

name

public String name()
Returns name of the parameter for binding of values.

Returns:
Name of the parameter for binding of values.

accept

public void accept(Visitor visitor)
Accept method to handle incoming visitors.

Parameters:
visitor - Visitor to be handled.

toString

public String toString()
Method constructing query string.

Overrides:
toString in class Object
Returns:
Constructed query string.


Copyright © 2012. All Rights Reserved.