org.apache.jetspeed.om.dbpsml
Class JetspeedRoleProfilePeer

java.lang.Object
  extended byorg.apache.torque.util.BasePeer
      extended byorg.apache.jetspeed.om.dbpsml.BaseJetspeedRoleProfilePeer
          extended byorg.apache.jetspeed.om.dbpsml.JetspeedRoleProfilePeer
All Implemented Interfaces:
DBOperations, java.io.Serializable

public class JetspeedRoleProfilePeer
extends org.apache.jetspeed.om.dbpsml.BaseJetspeedRoleProfilePeer
implements DBOperations

The skeleton for this class was autogenerated by Torque on: [Mon Sep 10 13:30:53 PDT 2001] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.

Version:
$Id: JetspeedRoleProfilePeer.java,v 1.14 2004/06/26 01:24:28 jford Exp $
Author:
Atul Dambalkar
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jetspeed.om.dbpsml.BaseJetspeedRoleProfilePeer
CLASS_DEFAULT, CLASSNAME_DEFAULT, COUNTRY, DATABASE_NAME, LANGUAGE, MEDIA_TYPE, numColumns, PAGE, PROFILE, PSML_ID, ROLE_NAME, TABLE_NAME
 
Fields inherited from class org.apache.torque.util.BasePeer
DEFAULT_MAP_BUILDER, IGNORE_CASE, log, ORDER_BY
 
Fields inherited from interface org.apache.jetspeed.services.psmlmanager.db.DBOperations
DELETE, INSERT, UPDATE
 
Constructor Summary
JetspeedRoleProfilePeer()
          Default constructor.
 
Method Summary
protected  org.apache.torque.util.Criteria buildCriteria(ProfileLocator locator)
           
 void delete(ProfileLocator locator, java.sql.Connection connection)
          Delete role profile record from the database table.
 void delete(Role role, java.sql.Connection connection)
          Delete all records from the database table for a role.
 void insert(Profile profile, java.sql.Connection connection)
          Insert a role profile record in the database table.
 java.util.List select(ProfileLocator locator, java.sql.Connection connection)
          Select role profile record from the database table for the given locator object.
 java.util.List selectOrdered(ProfileLocator locator, java.sql.Connection connection)
          Select role profile record from the database table for the given locator object and return list ordered by primary key.
 void update(Profile profile, java.sql.Connection connection)
          Update role profile record from the database table.
 
Methods inherited from class org.apache.jetspeed.om.dbpsml.BaseJetspeedRoleProfilePeer
addSelectColumns, buildCriteria, buildCriteria, 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, hashtableToByteArray, 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

JetspeedRoleProfilePeer

public JetspeedRoleProfilePeer()
Default constructor.

Method Detail

insert

public void insert(Profile profile,
                   java.sql.Connection connection)
            throws java.lang.Exception
Insert a role profile record in the database table.

Parameters:
profile - Profile object that will be inserted in the database
connection - A database connection to use
Throws:
java.lang.Exception

update

public void update(Profile profile,
                   java.sql.Connection connection)
            throws java.lang.Exception
Update role profile record from the database table.

Parameters:
profile - Profile object that will be deleted from the database
connection - A database connection to use
Throws:
java.lang.Exception

delete

public void delete(ProfileLocator locator,
                   java.sql.Connection connection)
            throws java.lang.Exception
Delete role profile record from the database table.

Parameters:
connection - A database connection to use
Throws:
java.lang.Exception

select

public java.util.List select(ProfileLocator locator,
                             java.sql.Connection connection)
                      throws java.lang.Exception
Select role profile record from the database table for the given locator object.

Parameters:
locator - ProfileLocator object that will be used to select required profile from the database
connection - A database connection to use
Returns:
List of records that statisfy the given locator criteria.
Throws:
java.lang.Exception

selectOrdered

public java.util.List selectOrdered(ProfileLocator locator,
                                    java.sql.Connection connection)
                             throws java.lang.Exception
Select role profile record from the database table for the given locator object and return list ordered by primary key.

Parameters:
locator - ProfileLocator object that will be used to select required profile from the database
connection - A database connection to use
Returns:
List of records that statisfy the given locator criteria.
Throws:
java.lang.Exception

delete

public void delete(Role role,
                   java.sql.Connection connection)
            throws java.lang.Exception
Delete all records from the database table for a role.

Parameters:
role - Role object for which all the records will be deleted from the database
connection - A database connection to use
Throws:
java.lang.Exception

buildCriteria

protected org.apache.torque.util.Criteria buildCriteria(ProfileLocator locator)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.