org.xorm.query
Class RawCondition

java.lang.Object
  |
  +--org.xorm.query.Condition
        |
        +--org.xorm.query.RawCondition
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
SQLCondition

public class RawCondition
extends Condition

RawConditions represent queries in some native query format against a set of tables. At execution time, any instances of names surrounded by curly braces will be substituted with the String value provided by the bound query (but only if the RawCondition is attached to an instance of DataQuery directly). The main use of this class is to provide a means of passing native SQL queries to the datastore, but it could be used or extended for other text-based query languages as well.


Constructor Summary
RawCondition(Collection tables, String rawQuery)
           
 
Method Summary
 String convertOperand(Object operand)
           
 String getRawQuery()
           
 Collection getTables()
           
 
Methods inherited from class org.xorm.query.Condition
clone, isInverted, setInverted
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawCondition

public RawCondition(Collection tables,
                    String rawQuery)
Method Detail

getRawQuery

public String getRawQuery()

getTables

public Collection getTables()

convertOperand

public String convertOperand(Object operand)


$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/query/RawCondition.html,v 1.4 2004/05/30 08:55:08 wbiggs Exp $