|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.util.BasePeer
org.apache.turbine.om.security.peer.RolePermissionPeer
This class handles all database access for the ROLE_PERMISSION table. This table contains all the permissions for a given role.
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 |
public static final java.lang.String TABLE_NAME
public static final java.lang.String PERMISSION_ID
public static final java.lang.String ROLE_ID
Constructor Detail |
public RolePermissionPeer()
Method Detail |
public static void deleteRole(int role_id) throws java.lang.Exception
role_id
- An int with the role id.
java.lang.Exception
- a generic exception.public static void deletePermission(int permission_id) throws java.lang.Exception
permission_id
- An int with the permission id.
java.lang.Exception
- a generic exception.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |