|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.om.peer.BasePeer | +--org.apache.turbine.om.security.peer.GroupPeer
This class handles all the database access for the Group table. This table contains all the Groups that a given member can play.
Field Summary | |
static java.lang.String |
GROUP_ID
The column name for the Group id field. |
private static TurbineMapBuilder |
mapBuilder
|
static java.lang.String |
NAME
The column name for the name field. |
static java.lang.String |
OBJECTDATA
The column name for the ObjectData field |
private static java.lang.String |
SEQUENCE_NAME
The Oracle sequence name for this peer. |
private static java.lang.String |
TABLE_NAME
The table name for this peer. |
Fields inherited from class org.apache.turbine.om.peer.BasePeer |
DEFAULT_MAP_BUILDER, IGNORE_CASE, mapBuilders, ORDER_BY |
Constructor Summary | |
GroupPeer()
|
Method Summary | |
static Criteria |
buildCriteria(Group group)
Builds a criteria object based upon an Group object |
static boolean |
checkExists(Group group)
Checks if a Group is defined in the system. |
static java.util.Vector |
doSelect(Criteria criteria)
Issues a select based on a criteria. |
static void |
doUpdate(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.lang.String |
getTableName()
Get the name of this table. |
static GroupSet |
retrieveSet()
Retrieves/assembles a GroupSet of all of the Groups. |
static GroupSet |
retrieveSet(Criteria criteria)
Retrieves/assembles a GroupSet based on the Criteria passed in |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final TurbineMapBuilder mapBuilder
private static final java.lang.String TABLE_NAME
public static final java.lang.String GROUP_ID
public static final java.lang.String NAME
public static final java.lang.String OBJECTDATA
private static final java.lang.String SEQUENCE_NAME
Constructor Detail |
public GroupPeer()
Method Detail |
public static GroupSet retrieveSet() throws java.lang.Exception
criteria
- The criteria to use.Exception,
- a generic exception.public static GroupSet retrieveSet(Criteria criteria) throws java.lang.Exception
public static java.util.Vector doSelect(Criteria criteria) throws java.lang.Exception
Criteria
- object containing data that is used to create
the SELECT statement.Exception,
- a generic exception.public static void doUpdate(Criteria criteria) throws java.lang.Exception
Criteria
- object containing data that is used to create
the UPDATE statement.Exception,
- a generic exception.public static boolean checkExists(Group group) throws DataBackendException, java.lang.Exception
permission
- The Group to be checked.true
if given Group exists in the system.DataBackendException
- when more than one Group with
the same name exists.Exception,
- a generic exception.public static java.lang.String getTableName()
public static java.lang.String getColumnName(java.lang.String name)
public static Criteria buildCriteria(Group group)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |