org.tigris.scarab.om
Class IssueTypePeer

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

public class IssueTypePeer
extends BaseIssueTypePeer

This is the peer class for an IssueType

Version:
$Id: IssueTypePeer.java 9977 2005-12-09 00:40:59Z hair $
Author:
Jon S. Stevens, 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
 
Fields inherited from class org.tigris.scarab.om.BaseIssueTypePeer
CLASS_DEFAULT, CLASSNAME_DEFAULT, DATABASE_NAME, DEDUPE, DELETED, DESCRIPTION, ISDEFAULT, ISSUE_TYPE_ID, LOCKED, NAME, numColumns, PARENT_ID, TABLE_NAME
 
Fields inherited from class org.apache.torque.util.BasePeer
IGNORE_CASE, log, ORDER_BY
 
Constructor Summary
IssueTypePeer()
           
 
Method Summary
static java.util.List getAllIssueTypes(boolean includeDeleted)
           
static java.util.List getAllIssueTypes(boolean deleted, java.lang.String sortColumn, java.lang.String sortPolarity)
          Gets a List of all of the Issue types in the database, That are not template types.
static java.util.List getDefaultIssueTypes()
           
static java.lang.Integer getRootKey()
           
static boolean isUnique(java.lang.String name, java.lang.Integer id)
          Checks to see if the name already exists an issue type.
static IssueType retrieveByPK(org.apache.torque.om.ObjectKey pk)
          Retrieve a single object by pk FIXME: is this method implementation (with the caching) still done this way?
 
Methods inherited from class org.tigris.scarab.om.BaseIssueTypePeer
addSelectColumns, buildCriteria, buildCriteria, buildSelectCriteria, correctBooleans, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelect, 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

IssueTypePeer

public IssueTypePeer()
Method Detail

getRootKey

public static java.lang.Integer getRootKey()

retrieveByPK

public static IssueType retrieveByPK(org.apache.torque.om.ObjectKey pk)
                              throws org.apache.torque.TorqueException
Retrieve a single object by pk FIXME: is this method implementation (with the caching) still done this way? -jss

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

getAllIssueTypes

public static java.util.List getAllIssueTypes(boolean deleted,
                                              java.lang.String sortColumn,
                                              java.lang.String sortPolarity)
                                       throws org.apache.torque.TorqueException
Gets a List of all of the Issue types in the database, That are not template types.

Throws:
org.apache.torque.TorqueException

getAllIssueTypes

public static java.util.List getAllIssueTypes(boolean includeDeleted)
                                       throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getDefaultIssueTypes

public static java.util.List getDefaultIssueTypes()
                                           throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

isUnique

public static boolean isUnique(java.lang.String name,
                               java.lang.Integer id)
                        throws org.apache.torque.TorqueException
Checks to see if the name already exists an issue type. if one does unique will be false unless the given id matches the issue type that already has the given name.

Parameters:
name - a String value
id - an ObjectKey value
Returns:
a boolean value
Throws:
java.lang.Exception - if an error occurs
org.apache.torque.TorqueException


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