net.ontopia.persistence.query.sql
Class SQLLike

java.lang.Object
  extended by net.ontopia.persistence.query.sql.SQLLike
All Implemented Interfaces:
SQLExpressionIF

public class SQLLike
extends java.lang.Object
implements SQLExpressionIF

INTERNAL: SQL condition: like

A LIKE condition specifies a test involving pattern matching. Note that right value must be a pattern, i.e. a string.


Field Summary
protected  boolean caseSensitive
           
protected  SQLValueIF left
           
protected  SQLValueIF right
           
 
Fields inherited from interface net.ontopia.persistence.query.sql.SQLExpressionIF
AND, EQUALS, EXISTS, FALSE, IN, IS_NULL, JOIN, LIKE, NOT, NOT_EQUALS, OR, SET_OPERATION, VALUE_EXPRESSION, VERBATIM
 
Constructor Summary
SQLLike(SQLValueIF left, SQLValueIF right, boolean caseSensitive)
           
 
Method Summary
 boolean getCaseSensitive()
           
 SQLValueIF getLeft()
           
 SQLValueIF getRight()
           
 int getType()
          INTERNAL: Returns the expression type.
 void setCaseSensitive(boolean caseSensitive)
           
 void setLeft(SQLValueIF left)
           
 void setRight(SQLValueIF right)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

left

protected SQLValueIF left

right

protected SQLValueIF right

caseSensitive

protected boolean caseSensitive
Constructor Detail

SQLLike

public SQLLike(SQLValueIF left,
               SQLValueIF right,
               boolean caseSensitive)
Method Detail

getType

public int getType()
Description copied from interface: SQLExpressionIF
INTERNAL: Returns the expression type. The type is represented by one of the constants in the SQLExpressionIF interface.

Specified by:
getType in interface SQLExpressionIF

getLeft

public SQLValueIF getLeft()

setLeft

public void setLeft(SQLValueIF left)

getRight

public SQLValueIF getRight()

setRight

public void setRight(SQLValueIF right)

getCaseSensitive

public boolean getCaseSensitive()

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.