org.apache.ojb.broker.query
Class QueryFactory

java.lang.Object
  extended by org.apache.ojb.broker.query.QueryFactory

public final class QueryFactory
extends java.lang.Object

Insert the type's description here.

Version:
$Id: QueryFactory.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Thomas Mahler

Constructor Summary
QueryFactory()
           
 
Method Summary
static QueryByCriteria newQuery(java.lang.Class classToSearchFrom, Criteria criteria)
          Method declaration
static QueryByCriteria newQuery(java.lang.Class classToSearchFrom, Criteria criteria, boolean distinct)
          Method declaration
static QueryBySQL newQuery(java.lang.Class classToSearchFrom, java.lang.String anSqlStatement)
          Factory method for QueryBySQL
static QueryByCriteria newQuery(java.lang.Class classToSearchFrom, java.lang.String indirectionTable, Criteria criteria)
           
static QueryByMtoNCriteria newQuery(java.lang.Class classToSearchFrom, java.lang.String indirectionTable, Criteria criteria, boolean distinct)
           
static QueryByIdentity newQuery(java.lang.Object example_or_identity)
          Return a QueryByIdentity for example_or_identity
static QueryByCriteria newQueryByExample(java.lang.Object example)
          Return a QueryByCriteria for example
Use with care because building of Query is not foolproof !!!
static QueryByIdentity newQueryByIdentity(java.lang.Object example_or_identity)
          Return a QueryByIdentity for example_or_identity
static ReportQueryByCriteria newReportQuery(java.lang.Class classToSearchFrom, Criteria criteria)
          create a new ReportQueryByCriteria
static ReportQueryByCriteria newReportQuery(java.lang.Class classToSearchFrom, Criteria criteria, boolean distinct)
          create a new ReportQueryByCriteria
static ReportQueryByCriteria newReportQuery(java.lang.Class classToSearchFrom, java.lang.String[] columns, Criteria criteria, boolean distinct)
          create a new ReportQueryByCriteria
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryFactory

public QueryFactory()
Method Detail

newReportQuery

public static ReportQueryByCriteria newReportQuery(java.lang.Class classToSearchFrom,
                                                   java.lang.String[] columns,
                                                   Criteria criteria,
                                                   boolean distinct)
create a new ReportQueryByCriteria

Parameters:
classToSearchFrom -
criteria -
distinct -
Returns:
ReportQueryByCriteria

newReportQuery

public static ReportQueryByCriteria newReportQuery(java.lang.Class classToSearchFrom,
                                                   Criteria criteria,
                                                   boolean distinct)
create a new ReportQueryByCriteria

Parameters:
classToSearchFrom -
criteria -
distinct -
Returns:
ReportQueryByCriteria

newReportQuery

public static ReportQueryByCriteria newReportQuery(java.lang.Class classToSearchFrom,
                                                   Criteria criteria)
create a new ReportQueryByCriteria

Parameters:
classToSearchFrom -
criteria -
Returns:
ReportQueryByCriteria

newQuery

public static QueryByCriteria newQuery(java.lang.Class classToSearchFrom,
                                       Criteria criteria,
                                       boolean distinct)
Method declaration

Parameters:
classToSearchFrom -
criteria -
distinct -
Returns:
QueryByCriteria

newQuery

public static QueryByCriteria newQuery(java.lang.Class classToSearchFrom,
                                       Criteria criteria)
Method declaration

Parameters:
classToSearchFrom -
criteria -
Returns:
QueryByCriteria

newQuery

public static QueryByIdentity newQuery(java.lang.Object example_or_identity)
Return a QueryByIdentity for example_or_identity

Parameters:
example_or_identity -
Returns:
QueryByIdentity

newQueryByIdentity

public static QueryByIdentity newQueryByIdentity(java.lang.Object example_or_identity)
Return a QueryByIdentity for example_or_identity

Parameters:
example_or_identity -
Returns:
QueryByIdentity

newQueryByExample

public static QueryByCriteria newQueryByExample(java.lang.Object example)
Return a QueryByCriteria for example
Use with care because building of Query is not foolproof !!!

Parameters:
example -
Returns:
QueryByCriteria

newQuery

public static QueryByMtoNCriteria newQuery(java.lang.Class classToSearchFrom,
                                           java.lang.String indirectionTable,
                                           Criteria criteria,
                                           boolean distinct)
Parameters:
classToSearchFrom -
indirectionTable -
criteria -
distinct -
Returns:
QueryByMtoNCriteria

newQuery

public static QueryByCriteria newQuery(java.lang.Class classToSearchFrom,
                                       java.lang.String indirectionTable,
                                       Criteria criteria)
Parameters:
classToSearchFrom -
indirectionTable -
criteria -
Returns:
QueryByCriteria

newQuery

public static QueryBySQL newQuery(java.lang.Class classToSearchFrom,
                                  java.lang.String anSqlStatement)
Factory method for QueryBySQL

Parameters:
classToSearchFrom -
anSqlStatement -
Returns:
QueryBySQL


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30