org.tigris.scarab.om
Class IssuePeer

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

public class IssuePeer
extends BaseIssuePeer

The Peer class for an issue.

Version:
$Id: IssuePeer.java 9977 2005-12-09 00:40:59Z hair $
Author:
John McNally, Jon S. Stevens, Elicia David
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
 
Fields inherited from class org.tigris.scarab.om.BaseIssuePeer
CLASS_DEFAULT, CLASSNAME_DEFAULT, CREATED_TRANS_ID, DATABASE_NAME, DELETED, ID_COUNT, ID_DOMAIN, ID_PREFIX, ISSUE_ID, LAST_TRANS_ID, MODULE_ID, MOVED, numColumns, TABLE_NAME, TYPE_ID
 
Fields inherited from class org.apache.torque.util.BasePeer
IGNORE_CASE, log, ORDER_BY
 
Constructor Summary
IssuePeer()
           
 
Method Summary
static int count(org.apache.torque.util.Criteria crit)
          Adds count(IssuePeer.ISSUE_ID) to the select clause and returns the number of rows resulting from the given Criteria.
static int countDistinct(org.apache.torque.util.Criteria crit)
          Adds count(DISTINCT IssuePeer.ISSUE_ID) to the select clause and returns the number of rows resulting from the given Criteria.
static Issue retrieveByPK(org.apache.torque.om.ObjectKey pk)
          Retrieve a single object by pk
 
Methods inherited from class org.tigris.scarab.om.BaseIssuePeer
addSelectColumns, buildCriteria, buildCriteria, buildSelectCriteria, correctBooleans, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelect, doSelectJoinActivitySetRelatedByCreatedTransId, doSelectJoinActivitySetRelatedByCreatedTransId, doSelectJoinActivitySetRelatedByLastTransId, doSelectJoinActivitySetRelatedByLastTransId, doSelectJoinAllExceptActivitySetRelatedByCreatedTransId, doSelectJoinAllExceptActivitySetRelatedByCreatedTransId, doSelectJoinAllExceptActivitySetRelatedByLastTransId, doSelectJoinAllExceptActivitySetRelatedByLastTransId, doSelectJoinAllExceptIssueType, doSelectJoinAllExceptIssueType, doSelectJoinAllExceptScarabModule, doSelectJoinAllExceptScarabModule, doSelectJoinIssueType, doSelectJoinIssueType, doSelectJoinScarabModule, doSelectJoinScarabModule, doSelectVillageRecords, doSelectVillageRecords, doUpdate, doUpdate, doUpdate, doUpdate, getMapBuilder, getOMClass, getTableMap, populateObject, populateObjects, resultSet2Objects, 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
 

Constructor Detail

IssuePeer

public IssuePeer()
Method Detail

count

public static int count(org.apache.torque.util.Criteria crit)
                 throws org.apache.torque.TorqueException,
                        com.workingdogs.village.DataSetException
Adds count(IssuePeer.ISSUE_ID) to the select clause and returns the number of rows resulting from the given Criteria. If the criteria will lead to duplicate ISSUE_ID's they will be counted. However, if the criteria is known not to lead to this, or unique ISSUE_ID's are not required, this method is cheaper than countDistinct(Criteria)

Parameters:
crit - a Criteria value
Returns:
an int value
Throws:
org.apache.torque.TorqueException - if an error occurs
com.workingdogs.village.DataSetException - if an error occurs

countDistinct

public static int countDistinct(org.apache.torque.util.Criteria crit)
                         throws org.apache.torque.TorqueException,
                                com.workingdogs.village.DataSetException
Adds count(DISTINCT IssuePeer.ISSUE_ID) to the select clause and returns the number of rows resulting from the given Criteria. The returned value will be the number of unique ISSUE_ID's.

Parameters:
crit - a Criteria value
Returns:
an int value
Throws:
org.apache.torque.TorqueException - if an error occurs
com.workingdogs.village.DataSetException - if an error occurs

retrieveByPK

public static Issue retrieveByPK(org.apache.torque.om.ObjectKey pk)
                          throws org.apache.torque.TorqueException
Retrieve a single object by pk

Parameters:
pk -
Throws:
org.apache.torque.TorqueException


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