com.uwyn.rife.database.queries
Class AbstractWhereDelegateQuery<QueryType extends AbstractWhereDelegateQuery,DelegateType extends AbstractWhereQuery>

java.lang.Object
  extended by com.uwyn.rife.database.queries.AbstractWhereDelegateQuery<QueryType,DelegateType>
Direct Known Subclasses:
CountQuery, DeleteQuery, RestoreQuery

public abstract class AbstractWhereDelegateQuery<QueryType extends AbstractWhereDelegateQuery,DelegateType extends AbstractWhereQuery>
extends Object


Field Summary
protected  DelegateType mDelegate
           
 
Constructor Summary
protected AbstractWhereDelegateQuery(DelegateType delegate)
           
 
Method Summary
 void addWhereParameters(List<String> parameters)
           
 Datasource getDatasource()
           
 DelegateType getDelegate()
           
 WhereGroup<QueryType> startWhere()
           
 WhereGroupAnd<QueryType> startWhereAnd()
           
 WhereGroupOr<QueryType> startWhereOr()
           
 QueryType where(Object bean)
           
 QueryType where(String where)
           
 QueryType where(String field, String operator, boolean value)
           
 QueryType where(String field, String operator, byte value)
           
 QueryType where(String field, String operator, char value)
           
 QueryType where(String field, String operator, double value)
           
 QueryType where(String field, String operator, float value)
           
 QueryType where(String field, String operator, int value)
           
 QueryType where(String field, String operator, long value)
           
 QueryType where(String field, String operator, Object value)
           
 QueryType where(String field, String operator, Select query)
           
 QueryType where(String field, String operator, short value)
           
 QueryType whereAnd(String where)
           
 QueryType whereAnd(String field, String operator, boolean value)
           
 QueryType whereAnd(String field, String operator, byte value)
           
 QueryType whereAnd(String field, String operator, char value)
           
 QueryType whereAnd(String field, String operator, double value)
           
 QueryType whereAnd(String field, String operator, float value)
           
 QueryType whereAnd(String field, String operator, int value)
           
 QueryType whereAnd(String field, String operator, long value)
           
 QueryType whereAnd(String field, String operator, Object value)
           
 QueryType whereAnd(String field, String operator, Select query)
           
 QueryType whereAnd(String field, String operator, short value)
           
 QueryType whereExcluded(Object bean, String[] excludedFields)
           
 QueryType whereFiltered(Object bean, String[] includedFields, String[] excludedFields)
           
 QueryType whereIncluded(Object bean, String[] includedFields)
           
 QueryType whereOr(String where)
           
 QueryType whereOr(String field, String operator, boolean value)
           
 QueryType whereOr(String field, String operator, byte value)
           
 QueryType whereOr(String field, String operator, char value)
           
 QueryType whereOr(String field, String operator, double value)
           
 QueryType whereOr(String field, String operator, float value)
           
 QueryType whereOr(String field, String operator, int value)
           
 QueryType whereOr(String field, String operator, long value)
           
 QueryType whereOr(String field, String operator, Object value)
           
 QueryType whereOr(String field, String operator, Select query)
           
 QueryType whereOr(String field, String operator, short value)
           
 QueryType whereSubselect(Select query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mDelegate

protected DelegateType extends AbstractWhereQuery mDelegate
Constructor Detail

AbstractWhereDelegateQuery

protected AbstractWhereDelegateQuery(DelegateType delegate)
Method Detail

getDelegate

public DelegateType getDelegate()

getDatasource

public Datasource getDatasource()

startWhere

public WhereGroup<QueryType> startWhere()

startWhereAnd

public WhereGroupAnd<QueryType> startWhereAnd()

startWhereOr

public WhereGroupOr<QueryType> startWhereOr()

where

public QueryType where(String where)

where

public QueryType where(String field,
                       String operator,
                       boolean value)

where

public QueryType where(String field,
                       String operator,
                       byte value)

where

public QueryType where(String field,
                       String operator,
                       char value)

where

public QueryType where(String field,
                       String operator,
                       double value)

where

public QueryType where(String field,
                       String operator,
                       float value)

where

public QueryType where(String field,
                       String operator,
                       int value)

where

public QueryType where(String field,
                       String operator,
                       long value)

where

public QueryType where(String field,
                       String operator,
                       Select query)

where

public QueryType where(String field,
                       String operator,
                       Object value)

where

public QueryType where(String field,
                       String operator,
                       short value)

whereAnd

public QueryType whereAnd(String where)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          boolean value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          byte value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          char value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          double value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          float value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          int value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          long value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          Select query)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          Object value)

whereAnd

public QueryType whereAnd(String field,
                          String operator,
                          short value)

whereOr

public QueryType whereOr(String where)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         boolean value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         byte value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         char value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         double value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         float value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         int value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         long value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         Select query)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         Object value)

whereOr

public QueryType whereOr(String field,
                         String operator,
                         short value)

whereSubselect

public QueryType whereSubselect(Select query)

where

public QueryType where(Object bean)
                                                   throws DbQueryException
Throws:
DbQueryException

whereIncluded

public QueryType whereIncluded(Object bean,
                               String[] includedFields)
                                                           throws DbQueryException
Throws:
DbQueryException

whereExcluded

public QueryType whereExcluded(Object bean,
                               String[] excludedFields)
                                                           throws DbQueryException
Throws:
DbQueryException

whereFiltered

public QueryType whereFiltered(Object bean,
                               String[] includedFields,
                               String[] excludedFields)
                                                           throws DbQueryException
Throws:
DbQueryException

addWhereParameters

public void addWhereParameters(List<String> parameters)


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