org.apache.jetspeed.om.dbpsml
Class JetspeedUserProfilePeer

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

public class JetspeedUserProfilePeer
extends org.apache.jetspeed.om.dbpsml.BaseJetspeedUserProfilePeer
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: JetspeedUserProfilePeer.java,v 1.15 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.BaseJetspeedUserProfilePeer
CLASS_DEFAULT, CLASSNAME_DEFAULT, COUNTRY, DATABASE_NAME, LANGUAGE, MEDIA_TYPE, numColumns, PAGE, PROFILE, PSML_ID, TABLE_NAME, USER_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
JetspeedUserProfilePeer()
          Default constructor.
 
Method Summary
protected  org.apache.torque.util.Criteria buildCriteria(ProfileLocator locator)
           
 void delete(JetspeedUser user, java.sql.Connection connection)
          Delete all records from the database table for a user.
 void delete(ProfileLocator locator, java.sql.Connection connection)
          Delete user profile record from the database table.
 void insert(Profile profile, java.sql.Connection connection)
          Insert a user profile record in the database table.
 java.util.List select(ProfileLocator locator, java.sql.Connection connection)
          Select user profile record from the database table for the given locator object.
 java.util.List selectOrdered(ProfileLocator locator, java.sql.Connection connection)
          Select user 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)
          Insert a user profile record in the database table.
 
Methods inherited from class org.apache.jetspeed.om.dbpsml.BaseJetspeedUserProfilePeer
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

JetspeedUserProfilePeer

public JetspeedUserProfilePeer()
Default constructor.

Method Detail

insert

public void insert(Profile profile,
                   java.sql.Connection connection)
            throws java.lang.Exception
Insert a user 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
Insert a user 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

delete

public void delete(ProfileLocator locator,
                   java.sql.Connection connection)
            throws java.lang.Exception
Delete user 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 user 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 user 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(JetspeedUser user,
                   java.sql.Connection connection)
            throws java.lang.Exception
Delete all records from the database table for a user.

Parameters:
user - User 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.