|
|||||||||||
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.PermissionPeer
This class handles all the database access for the PERMISSION table. This table contains all the permissions that are used in the system.
Field Summary | |
static java.lang.String |
NAME
The column name for the name field. |
static java.lang.String |
OBJECTDATA
The column name for the ObjectData field |
static java.lang.String |
PERMISSION_ID
The column name for the permission id field. |
Fields inherited from class org.apache.torque.util.BasePeer |
DEFAULT_MAP_BUILDER, IGNORE_CASE, log, ORDER_BY |
Constructor Summary | |
PermissionPeer()
|
Method Summary | |
static org.apache.torque.util.Criteria |
buildCriteria(Permission permission)
Builds a criteria object based upon an Permission object |
static boolean |
checkExists(Permission permission)
Checks if a Permission is defined in the system. |
static java.util.List |
doSelect(org.apache.torque.util.Criteria criteria)
Issues a select based on a criteria. |
static void |
doUpdate(org.apache.torque.util.Criteria criteria)
Issues an update based on a criteria. |
static java.lang.String |
getColumnName(java.lang.String name)
Returns the full name of a column. |
static java.util.Vector |
getDifference(java.util.Vector some,
java.util.Vector all)
Pass in two Vector's of Permission Objects. |
static java.lang.String |
getTableName()
Get the name of this table. |
static PermissionSet |
retrieveSet(org.apache.torque.util.Criteria criteria)
Retrieves/assembles a PermissionSet |
static PermissionSet |
retrieveSet(Role role)
Retrieves a set of Permissions associated with a particular Role. |
Methods inherited from class org.apache.torque.util.BasePeer |
createPreparedStatement, createQueryString, deleteAll, deleteAll, doDelete, doDelete, doInsert, doInsert, doPSSelect, doPSSelect, doSelect, 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 PERMISSION_ID
public static final java.lang.String NAME
public static final java.lang.String OBJECTDATA
Constructor Detail |
public PermissionPeer()
Method Detail |
public static PermissionSet retrieveSet(org.apache.torque.util.Criteria criteria) throws java.lang.Exception
criteria
- The criteria to use.
java.lang.Exception
- a generic exception.public static PermissionSet retrieveSet(Role role) throws java.lang.Exception
role
- The role to query permissions of.
java.lang.Exception
- a generic exception.public static java.util.List doSelect(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- Object containing data that is used to create
the SELECT statement.
org.apache.torque.TorqueException
- a generic exception.public static org.apache.torque.util.Criteria buildCriteria(Permission permission)
permission
- object to build the criteria
public static void doUpdate(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- Object containing data that is used to create
the UPDATE statement.
org.apache.torque.TorqueException
- a generic exception.public static boolean checkExists(Permission permission) throws DataBackendException, java.lang.Exception
permission
- The Permission to be checked.
true
if given Permission exists in the system.
DataBackendException
- when more than one Permission with
the same name exists.
java.lang.Exception
- a generic exception.public static java.lang.String getTableName()
public static java.lang.String getColumnName(java.lang.String name)
name
- name of a column
public static final java.util.Vector getDifference(java.util.Vector some, java.util.Vector all)
some
- Vector B in C = (A - B).all
- Vector A in C = (A - B).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |