com.uwyn.rife.database.queries
Class ReadQueryString

java.lang.Object
  extended by com.uwyn.rife.database.queries.ReadQueryString
All Implemented Interfaces:
Query, ReadQuery

public class ReadQueryString
extends Object
implements ReadQuery

An instance of ReadQueryString can contain any kind of SQL query for read purposes.

This allows you to use any SQL together with the functionalities that are provided by DbQueryManager

Since:
1.6
Version:
$Revision: 3654 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
ReadQueryString()
          Creates a new empty instance of ReadQueryString.
ReadQueryString(String sql)
          Creates a new instance of ReadQueryString with the specified SQL query.
 
Method Summary
 void clear()
           
 com.uwyn.rife.database.capabilities.Capabilities getCapabilities()
           
 QueryParameters getParameters()
           
 String getSql()
           
 void setExcludeUnsupportedCapabilities(boolean flag)
           
 void setSql(String sql)
          Replaces the SQL that is executed by this query.
 ReadQueryString sql(String sql)
          Replaces the SQL that is executed by this query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadQueryString

public ReadQueryString()
Creates a new empty instance of ReadQueryString.

Since:
1.6

ReadQueryString

public ReadQueryString(String sql)
Creates a new instance of ReadQueryString with the specified SQL query.

Parameters:
sql - The SQL that should be executed by this query
Since:
1.6
Method Detail

sql

public ReadQueryString sql(String sql)
Replaces the SQL that is executed by this query.

Parameters:
sql - The SQL that should be executed by this query
Returns:
this ReadQueryString instance.
Since:
1.6

setSql

public void setSql(String sql)
Replaces the SQL that is executed by this query.

Parameters:
sql - The SQL that should be executed by this query
Since:
1.6

clear

public void clear()
Specified by:
clear in interface Query

getSql

public String getSql()
Specified by:
getSql in interface Query

getParameters

public QueryParameters getParameters()
Specified by:
getParameters in interface Query

getCapabilities

public com.uwyn.rife.database.capabilities.Capabilities getCapabilities()
Specified by:
getCapabilities in interface Query

setExcludeUnsupportedCapabilities

public void setExcludeUnsupportedCapabilities(boolean flag)
Specified by:
setExcludeUnsupportedCapabilities in interface Query


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.