org.tigris.scarab.om
Class AttributeValuePeer

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

public class AttributeValuePeer
extends BaseAttributeValuePeer

The Peer class for an AttributeValue

Version:
$Id: AttributeValuePeer.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.BaseAttributeValuePeer
ATTRIBUTE_ID, CLASS_DEFAULT, CLASSNAME_DEFAULT, DATABASE_NAME, DELETED, ISSUE_ID, numColumns, NUMERIC_VALUE, OPTION_ID, TABLE_NAME, USER_ID, VALUE, VALUE_ID
 
Fields inherited from class org.apache.torque.util.BasePeer
IGNORE_CASE, log, ORDER_BY
 
Constructor Summary
AttributeValuePeer()
           
 
Method Summary
static int count(org.apache.torque.util.Criteria crit)
          Adds count(AttributeValuePeer.VALUE_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 AttributeValuePeer.VALUE_ID) to the select clause and returns the number of rows resulting from the given Criteria.
static java.lang.Class getOMClass(com.workingdogs.village.Record record, int offset)
          Get the className appropriate for a row in the SCARAB_ISSUE_ATTRIBUTE_VALUE table
 
Methods inherited from class org.tigris.scarab.om.BaseAttributeValuePeer
addSelectColumns, buildCriteria, buildCriteria, buildSelectCriteria, correctBooleans, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelect, doSelectJoinAllExceptAttribute, doSelectJoinAllExceptAttribute, doSelectJoinAllExceptAttributeOption, doSelectJoinAllExceptAttributeOption, doSelectJoinAllExceptIssue, doSelectJoinAllExceptIssue, doSelectJoinAllExceptScarabUserImpl, doSelectJoinAllExceptScarabUserImpl, doSelectJoinAttribute, doSelectJoinAttribute, doSelectJoinAttributeOption, doSelectJoinAttributeOption, doSelectJoinIssue, doSelectJoinIssue, doSelectJoinScarabUserImpl, doSelectJoinScarabUserImpl, 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
 

Constructor Detail

AttributeValuePeer

public AttributeValuePeer()
Method Detail

count

public static int count(org.apache.torque.util.Criteria crit)
                 throws org.apache.torque.TorqueException,
                        com.workingdogs.village.DataSetException
Adds count(AttributeValuePeer.VALUE_ID) to the select clause and returns the number of rows resulting from the given Criteria. If the criteria will lead to duplicate VALUE_ID's they will be counted. However, if the criteria is known not to lead to this, or unique VALUE_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 AttributeValuePeer.VALUE_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 VALUE_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

getOMClass

public static java.lang.Class getOMClass(com.workingdogs.village.Record record,
                                         int offset)
                                  throws org.apache.torque.TorqueException
Get the className appropriate for a row in the SCARAB_ISSUE_ATTRIBUTE_VALUE table

Throws:
org.apache.torque.TorqueException


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