org.castor.cpa.persistence.sql.query.expression
Class Parameter
java.lang.Object
org.castor.cpa.persistence.sql.query.QueryObject
org.castor.cpa.persistence.sql.query.expression.Expression
org.castor.cpa.persistence.sql.query.expression.Parameter
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 Summary |
Parameter(String name)
Construct parameter with given name for binding. |
|
Method Summary |
String |
name()
Returns name of the parameter for binding of values. |
void |
toString(QueryContext ctx)
Append a string representation of the object to the given QueryContext. |
Parameter
public Parameter(String name)
- Construct parameter with given name for binding.
- Parameters:
name - Name of the parameter for binding of values.
name
public String name()
- Returns name of the parameter for binding of values.
- Returns:
- Name of the parameter for binding of values.
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.
Copyright © 2010. All Rights Reserved.