|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.organization.Table<GroupUserRoleRow>
com.stratelia.webactiv.organization.GroupUserRoleTable
public class GroupUserRoleTable
A GroupUserRoleTable object manages the ST_GroupUserRole table.
Constructor Summary | |
---|---|
GroupUserRoleTable(OrganizationSchema organization)
|
Method Summary | |
---|---|
void |
addGroupInGroupUserRole(int groupId,
int groupUserRoleId)
Adds a group in a groupUserRole. |
void |
addUserInGroupUserRole(int userId,
int groupUserRoleId)
Add an user in a groupUserRole. |
void |
createGroupUserRole(GroupUserRoleRow groupUserRole)
Inserts in the database a new groupUserRole row. |
protected GroupUserRoleRow |
fetchGroupUserRole(ResultSet rs)
Fetch the current groupUserRole row from a resultSet. |
protected GroupUserRoleRow |
fetchRow(ResultSet rs)
Fetch the current groupUserRole row from a resultSet. |
GroupUserRoleRow |
getGroupUserRole(int id)
Returns the GroupUserRole whith the given id. |
GroupUserRoleRow |
getGroupUserRoleByGroupId(int groupId)
Returns the GroupUserRole whith the given groupId. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
GroupUserRoleRow usr)
Set all the parameters of the insert PreparedStatement built from the insertQuery in order to insert the given row. |
protected void |
prepareUpdate(String updateQuery,
PreparedStatement update,
GroupUserRoleRow row)
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row. |
void |
removeGroupFromGroupUserRole(int groupId,
int groupUserRoleId)
Removes a group from a groupUserRole. |
void |
removeGroupUserRole(int id)
Delete the groupUserRole |
void |
removeUserFromGroupUserRole(int userId,
int groupUserRoleId)
Removes an user from a groupUserRole. |
Methods inherited from class com.stratelia.webactiv.organization.Table |
---|
addIdToQuery, addParamToQuery, addParamToQuery, addParamToQuery, aliasColumns, getCount, getCount, getIds, getIds, getIds, getIds, getInteger, getInteger, getMatchingRows, getNextId, getRows, getRows, getRows, getRows, getUniqueRow, getUniqueRow, getUniqueRow, insertRow, performPrepareStatementParams, truncate, updateRelation, updateRelation, updateRelation, updateRow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupUserRoleTable(OrganizationSchema organization)
Method Detail |
---|
protected GroupUserRoleRow fetchGroupUserRole(ResultSet rs) throws SQLException
SQLException
public GroupUserRoleRow getGroupUserRole(int id) throws AdminPersistenceException
AdminPersistenceException
public GroupUserRoleRow getGroupUserRoleByGroupId(int groupId) throws AdminPersistenceException
AdminPersistenceException
public void createGroupUserRole(GroupUserRoleRow groupUserRole) throws AdminPersistenceException
AdminPersistenceException
protected void prepareInsert(String insertQuery, PreparedStatement insert, GroupUserRoleRow usr) throws SQLException
Table
prepareInsert
in class Table<GroupUserRoleRow>
SQLException
protected void prepareUpdate(String updateQuery, PreparedStatement update, GroupUserRoleRow row) throws SQLException
Table
prepareUpdate
in class Table<GroupUserRoleRow>
SQLException
public void removeGroupUserRole(int id) throws AdminPersistenceException
AdminPersistenceException
public void addUserInGroupUserRole(int userId, int groupUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void removeUserFromGroupUserRole(int userId, int groupUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void addGroupInGroupUserRole(int groupId, int groupUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void removeGroupFromGroupUserRole(int groupId, int groupUserRoleId) throws AdminPersistenceException
AdminPersistenceException
protected GroupUserRoleRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class Table<GroupUserRoleRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |