org.apache.ojb.broker.query
Class ReportQueryByCriteria

java.lang.Object
  extended byorg.apache.ojb.broker.query.AbstractQueryImpl
      extended byorg.apache.ojb.broker.query.QueryByCriteria
          extended byorg.apache.ojb.broker.query.ReportQueryByCriteria
All Implemented Interfaces:
Query, ReportQuery, java.io.Serializable
Direct Known Subclasses:
ReportQueryByMtoNCriteria

public class ReportQueryByCriteria
extends QueryByCriteria
implements ReportQuery

Query for Reports. Supports selection of a subset of columns.

Version:
$Id: ReportQueryByCriteria.java,v 1.5 2004/01/29 20:31:44 brj Exp $
Author:
Jakob Braeuchi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.ojb.broker.query.QueryByCriteria
CRITERIA_SELECT_ALL
 
Fields inherited from class org.apache.ojb.broker.query.AbstractQueryImpl
m_baseClass, m_searchClass, serialVersionUID
 
Fields inherited from interface org.apache.ojb.broker.query.Query
NO_END_AT_INDEX, NO_START_AT_INDEX, NOT_SCROLLABLE, SCROLLABLE
 
Constructor Summary
ReportQueryByCriteria(java.lang.Class targetClass, Criteria criteria)
          Constructor for ReportQueryByCriteria.
ReportQueryByCriteria(java.lang.Class targetClass, Criteria criteria, boolean distinct)
          Constructor for ReportQueryByCriteria.
ReportQueryByCriteria(java.lang.Class targetClass, java.lang.String[] columns, Criteria criteria)
          Constructor for ReportQueryByCriteria.
ReportQueryByCriteria(java.lang.Class targetClass, java.lang.String[] columns, Criteria criteria, boolean distinct)
          Constructor for ReportQueryByCriteria.
 
Method Summary
 java.lang.String[] getColumns()
          Gets the columns.
 int[] getJdbcTypes()
          Gets the Jdbc-Types of the columns used for the Report.
 void setColumns(java.lang.String[] columns)
          Sets the columns.
 void setJdbcTypes(int[] jdbcTypes)
           
 java.lang.String toString()
          Insert the method's description here.
 
Methods inherited from class org.apache.ojb.broker.query.QueryByCriteria
addGroupBy, addGroupBy, addGroupBy, addOrderBy, addOrderBy, addOrderBy, addOrderByAscending, addOrderByDescending, addPathClass, addPrefetchedRelationship, getClassesForPath, getCriteria, getGroupBy, getHavingCriteria, getObjectProjectionAttribute, getOrderBy, getPathClasses, getPathOuterJoin, getPrefetchedRelationships, isDistinct, isPathOuterJoin, setCriteria, setDistinct, setHavingCriteria, setObjectProjectionAttribute, setObjectProjectionAttribute, setPathClass, setPathOuterJoin
 
Methods inherited from class org.apache.ojb.broker.query.AbstractQueryImpl
fullSize, fullSize, getBaseClass, getEndAtIndex, getExampleObject, getSearchClass, getStartAtIndex, getWithExtents, setEndAtIndex, setStartAtIndex, setWithExtents, usePaging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportQueryByCriteria

public ReportQueryByCriteria(java.lang.Class targetClass,
                             java.lang.String[] columns,
                             Criteria criteria,
                             boolean distinct)
Constructor for ReportQueryByCriteria.

Parameters:
targetClass -
criteria -
distinct -

ReportQueryByCriteria

public ReportQueryByCriteria(java.lang.Class targetClass,
                             java.lang.String[] columns,
                             Criteria criteria)
Constructor for ReportQueryByCriteria.

Parameters:
targetClass -
criteria -

ReportQueryByCriteria

public ReportQueryByCriteria(java.lang.Class targetClass,
                             Criteria criteria)
Constructor for ReportQueryByCriteria.

Parameters:
targetClass -
criteria -

ReportQueryByCriteria

public ReportQueryByCriteria(java.lang.Class targetClass,
                             Criteria criteria,
                             boolean distinct)
Constructor for ReportQueryByCriteria.

Parameters:
targetClass -
criteria -
distinct -
Method Detail

getColumns

public java.lang.String[] getColumns()
Gets the columns.

Specified by:
getColumns in interface ReportQuery
Returns:
Returns a String[]

setColumns

public void setColumns(java.lang.String[] columns)
Sets the columns.

Parameters:
columns - The columns to set

getJdbcTypes

public int[] getJdbcTypes()
Description copied from interface: ReportQuery
Gets the Jdbc-Types of the columns used for the Report. If null the Jdbc-Type is taken from the ResultSet

Specified by:
getJdbcTypes in interface ReportQuery
Returns:
Returns the jdbcTypes.
See Also:
Types

setJdbcTypes

public void setJdbcTypes(int[] jdbcTypes)
Parameters:
jdbcTypes - The jdbcTypes to set.

toString

public java.lang.String toString()
Description copied from class: QueryByCriteria
Insert the method's description here. Creation date: (07.02.2001 22:01:55)

Overrides:
toString in class QueryByCriteria
Returns:
java.lang.String
See Also:
Object.toString()


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14