org.apache.turbine.om.security.peer
Class RolePermissionPeer

java.lang.Object
  extended byorg.apache.torque.util.BasePeer
      extended byorg.apache.turbine.om.security.peer.RolePermissionPeer
All Implemented Interfaces:
java.io.Serializable

Deprecated. Use TorqueSecurityService instead.

public class RolePermissionPeer
extends org.apache.torque.util.BasePeer

This class handles all database access for the ROLE_PERMISSION table. This table contains all the permissions for a given role.

Version:
$Id: RolePermissionPeer.java 571795 2007-09-01 13:09:35Z tv $
Author:
Frank Y. Kim, Brett McLaughlin, John D. McNally, Jon S. Stevens
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
static java.lang.String PERMISSION_ID
          Deprecated. The column name for the permission id field.
static java.lang.String ROLE_ID
          Deprecated. The column name for the role id field.
static java.lang.String TABLE_NAME
          Deprecated. The table name for this peer.
 
Fields inherited from class org.apache.torque.util.BasePeer
IGNORE_CASE, log, ORDER_BY
 
Constructor Summary
RolePermissionPeer()
          Deprecated.  
 
Method Summary
static void deletePermission(int permission_id)
          Deprecated. Deletes the mappings for a permission_id.
static void deleteRole(int role_id)
          Deprecated. Deletes the mappings for a role_id.
 
Methods inherited from class org.apache.torque.util.BasePeer
correctBooleans, createPreparedStatement, createQueryString, deleteAll, deleteAll, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doPSSelect, doPSSelect, doSelect, doSelect, doUpdate, doUpdate, 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
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
Deprecated. 
The table name for this peer.


PERMISSION_ID

public static final java.lang.String PERMISSION_ID
Deprecated. 
The column name for the permission id field.


ROLE_ID

public static final java.lang.String ROLE_ID
Deprecated. 
The column name for the role id field.

Constructor Detail

RolePermissionPeer

public RolePermissionPeer()
Deprecated. 
Method Detail

deleteRole

public static void deleteRole(int role_id)
                       throws java.lang.Exception
Deprecated. 
Deletes the mappings for a role_id.

Parameters:
role_id - An int with the role id.
Throws:
java.lang.Exception - a generic exception.

deletePermission

public static void deletePermission(int permission_id)
                             throws java.lang.Exception
Deprecated. 
Deletes the mappings for a permission_id.

Parameters:
permission_id - An int with the permission id.
Throws:
java.lang.Exception - a generic exception.


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