java.lang.Object
org.castor.cpa.persistence.sql.query.expression.Expression
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$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Ahmad Hassan, Ralf Joachim
  • Constructor Details

    • Parameter

      public Parameter(String name)
      Construct parameter with given name for binding.
      Parameters:
      name - Name of the parameter for binding of values.
  • Method Details

    • 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.