org.tigris.scarab.om
Class QueryPeer

java.lang.Object
  extended byorg.apache.torque.util.BasePeer
      extended byorg.tigris.scarab.om.BaseQueryPeer
          extended byorg.tigris.scarab.om.QueryPeer
All Implemented Interfaces:
java.io.Serializable

public class QueryPeer
extends BaseQueryPeer

This is the QueryPeer class

Version:
$Id: QueryPeer.java 10074 2006-04-27 22:26:31Z jorgeuriarte $
Author:
John McNally
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.torque.util.BasePeer
org.apache.torque.util.BasePeer.ProcessCallback
 
Field Summary
(package private) static java.lang.String GET_MODULE_QUERIES
           
(package private) static java.lang.String GET_QUERIES
           
(package private) static java.lang.String GET_USER_QUERIES
           
(package private) static java.lang.String QUERY_PEER
           
static java.lang.String SORT_AVAILABILITY
           
static java.lang.String SORT_DESCRIPTION
           
static java.lang.String SORT_NAME
           
static java.lang.String SORT_USER
           
static java.lang.String TYPE_ALL
           
static java.lang.String TYPE_ALL_USER
           
static java.lang.String TYPE_GLOBAL
           
static java.lang.String TYPE_PRIVATE
           
 
Fields inherited from class org.tigris.scarab.om.BaseQueryPeer
APPROVED, CLASS_DEFAULT, CLASSNAME_DEFAULT, CREATED_DATE, DATABASE_NAME, DELETED, DESCRIPTION, HOME_PAGE, ISSUE_TYPE_ID, LIST_ID, MODULE_ID, NAME, numColumns, PREFERRED_ORDER, QUERY_ID, SCOPE_ID, SUBSCRIPTION_FREQUENCY_ID, TABLE_NAME, USER_ID, VALUE
 
Fields inherited from class org.apache.torque.util.BasePeer
IGNORE_CASE, log, ORDER_BY
 
Constructor Summary
QueryPeer()
           
 
Method Summary
static java.util.List getModuleQueries(Module module)
           
static java.util.List getQueries(Module module, IssueType issueType, ScarabUser user)
           
static java.util.List getQueries(Module module, IssueType issueType, ScarabUser user, java.lang.String sortColumn, java.lang.String sortPolarity)
           
static java.util.List getQueries(Module module, IssueType issueType, ScarabUser user, java.lang.String sortColumn, java.lang.String sortPolarity, java.lang.String type)
          List of queries associated with the module or created by the user.
static java.util.List getUserQueries(ScarabUser user)
           
 
Methods inherited from class org.tigris.scarab.om.BaseQueryPeer
addSelectColumns, buildCriteria, buildCriteria, buildSelectCriteria, correctBooleans, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelect, doSelectJoinAllExceptFrequency, doSelectJoinAllExceptFrequency, doSelectJoinAllExceptIssueType, doSelectJoinAllExceptIssueType, doSelectJoinAllExceptMITList, doSelectJoinAllExceptMITList, doSelectJoinAllExceptScarabModule, doSelectJoinAllExceptScarabModule, doSelectJoinAllExceptScarabUserImpl, doSelectJoinAllExceptScarabUserImpl, doSelectJoinAllExceptScope, doSelectJoinAllExceptScope, doSelectJoinFrequency, doSelectJoinFrequency, doSelectJoinIssueType, doSelectJoinIssueType, doSelectJoinMITList, doSelectJoinMITList, doSelectJoinScarabModule, doSelectJoinScarabModule, doSelectJoinScarabUserImpl, doSelectJoinScarabUserImpl, doSelectJoinScope, doSelectJoinScope, doSelectVillageRecords, doSelectVillageRecords, doUpdate, doUpdate, doUpdate, doUpdate, getMapBuilder, getOMClass, getTableMap, populateObject, populateObjects, resultSet2Objects, retrieveByPK, retrieveByPK, retrieveByPK, retrieveByPK, retrieveByPKs, retrieveByPKs, row2Object
 
Methods inherited from class org.apache.torque.util.BasePeer
createPreparedStatement, createQueryString, deleteAll, deleteAll, doPSSelect, doPSSelect, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, getSelectResults, getSelectResults, getSelectResults, getSelectResults, handleMultipleRecords, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_QUERIES

static final java.lang.String GET_QUERIES
See Also:
Constant Field Values

GET_USER_QUERIES

static final java.lang.String GET_USER_QUERIES
See Also:
Constant Field Values

GET_MODULE_QUERIES

static final java.lang.String GET_MODULE_QUERIES
See Also:
Constant Field Values

QUERY_PEER

static final java.lang.String QUERY_PEER
See Also:
Constant Field Values

TYPE_ALL_USER

public static final java.lang.String TYPE_ALL_USER
See Also:
Constant Field Values

TYPE_PRIVATE

public static final java.lang.String TYPE_PRIVATE
See Also:
Constant Field Values

TYPE_GLOBAL

public static final java.lang.String TYPE_GLOBAL
See Also:
Constant Field Values

TYPE_ALL

public static final java.lang.String TYPE_ALL
See Also:
Constant Field Values

SORT_NAME

public static final java.lang.String SORT_NAME
See Also:
Constant Field Values

SORT_DESCRIPTION

public static final java.lang.String SORT_DESCRIPTION
See Also:
Constant Field Values

SORT_AVAILABILITY

public static final java.lang.String SORT_AVAILABILITY
See Also:
Constant Field Values

SORT_USER

public static final java.lang.String SORT_USER
See Also:
Constant Field Values
Constructor Detail

QueryPeer

public QueryPeer()
Method Detail

getQueries

public static java.util.List getQueries(Module module,
                                        IssueType issueType,
                                        ScarabUser user,
                                        java.lang.String sortColumn,
                                        java.lang.String sortPolarity,
                                        java.lang.String type)
                                 throws org.apache.torque.TorqueException
List of queries associated with the module or created by the user. valid type is private, global, or all. if issueType == null, ignore issue type, otherwise include queries that only use that issueType or use multiple issue types.

Throws:
org.apache.torque.TorqueException

getUserQueries

public static java.util.List getUserQueries(ScarabUser user)
                                     throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getModuleQueries

public static java.util.List getModuleQueries(Module module)
                                       throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getQueries

public static java.util.List getQueries(Module module,
                                        IssueType issueType,
                                        ScarabUser user)
                                 throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getQueries

public static java.util.List getQueries(Module module,
                                        IssueType issueType,
                                        ScarabUser user,
                                        java.lang.String sortColumn,
                                        java.lang.String sortPolarity)
                                 throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException


Copyright © 2000-2004 Tigris.org. All Rights Reserved.