org.dftproject.genesis.core.data.nodes
Class LikeExpression

java.lang.Object
  extended by org.dftproject.genesis.core.data.nodes.LikeExpression
All Implemented Interfaces:
IExpression

public class LikeExpression
extends java.lang.Object
implements IExpression

An expression which matches objects that are "like" this value. Uses the SQL percent (%) syntax. Case insensitive.


Field Summary
 java.lang.String value
          The value to compare against.
 
Constructor Summary
LikeExpression(java.lang.String value)
          Creates a like expression that compares against the given value.
 
Method Summary
 java.lang.String getSQL(DataConnection conn, java.lang.String table)
          Returns the SQL fragment this expression represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public java.lang.String value
The value to compare against.

Constructor Detail

LikeExpression

public LikeExpression(java.lang.String value)
Creates a like expression that compares against the given value.

Parameters:
value - the value
Method Detail

getSQL

public java.lang.String getSQL(DataConnection conn,
                               java.lang.String table)
Description copied from interface: IExpression
Returns the SQL fragment this expression represents.

Specified by:
getSQL in interface IExpression
Parameters:
conn - a data connection
table - alias of the table this expression uses
Returns:
SQL fragment