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

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 264148 2005-08-29 14:21:04Z henning $
Author:
Frank Y. Kim, Brett McLaughlin, John D. McNally, Jon S. Stevens
See Also:
Serialized Form

Field Summary
static java.lang.String PERMISSION_ID
          The column name for the permission id field.
static java.lang.String ROLE_ID
          The column name for the role id field.
static java.lang.String TABLE_NAME
          The table name for this peer.
 
Fields inherited from class org.apache.torque.util.BasePeer
DEFAULT_MAP_BUILDER, IGNORE_CASE, log, ORDER_BY
 
Constructor Summary
RolePermissionPeer()
           
 
Method Summary
static void deletePermission(int permission_id)
          Deletes the mappings for a permission_id.
static void deleteRole(int role_id)
          Deletes the mappings for a role_id.
 
Methods inherited from class org.apache.torque.util.BasePeer
createPreparedStatement, createQueryString, deleteAll, deleteAll, doDelete, doDelete, doInsert, doInsert, doPSSelect, doPSSelect, doSelect, doSelect, doUpdate, doUpdate, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, 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
 

Field Detail

TABLE_NAME

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


PERMISSION_ID

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


ROLE_ID

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

Constructor Detail

RolePermissionPeer

public RolePermissionPeer()
Method Detail

deleteRole

public static void deleteRole(int role_id)
                       throws java.lang.Exception
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
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-2005 Apache Software Foundation. All Rights Reserved.