|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
it.eng.spagobi.bo.dao.hibernate.RoleDAOHibImpl
public class RoleDAOHibImpl
Defines the Hibernate implementations for all DAO methods, for a Role.
Constructor Summary | |
---|---|
RoleDAOHibImpl()
|
Method Summary | |
---|---|
void |
eraseRole(Role aRole)
Implements the query to erase a role. |
void |
insertRole(Role aRole)
Implements the query to insert a role. |
java.util.List |
loadAllFreeRolesForDetail(java.lang.Integer parUseID)
Gets all free roles for detail. |
java.util.List |
loadAllFreeRolesForInsert(java.lang.Integer parameterID)
Gets all free roles for Insert. |
java.util.List |
loadAllRoles()
Loads all detail information for all roles. |
Role |
loadByID(java.lang.Integer roleID)
Loads a role identified by its roleID . |
Role |
loadByName(java.lang.String roleName)
Loads a role identified by its roleName . |
java.util.List |
LoadFunctionalitiesAssociated(java.lang.Integer roleID)
Gets all the functionalities associated to the role. |
java.util.List |
LoadParUsesAssociated(java.lang.Integer roleID)
Gets all the parameter uses associated to the role. |
void |
modifyRole(Role aRole)
Implements the query to modify a role. |
Role |
toRole(SbiExtRoles hibRole)
From the hibernate Role at input, gives the corrispondent Role object. |
Methods inherited from class it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO |
---|
getSession, logException |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoleDAOHibImpl()
Method Detail |
---|
public Role loadByID(java.lang.Integer roleID) throws it.eng.spago.error.EMFUserError
IRoleDAO
roleID
. All these information, are stored into a
Role
object, which is
returned.
loadByID
in interface IRoleDAO
roleID
- The id for the role to load
Role
object containing all loaded information
it.eng.spago.error.EMFUserError
- If an Exception occurredIRoleDAO.loadByID(java.lang.Integer)
public Role loadByName(java.lang.String roleName) throws it.eng.spago.error.EMFUserError
IRoleDAO
roleName
. All these information, are stored into a
Role
object, which is
returned.
loadByName
in interface IRoleDAO
roleName
- The name for the role to load
Role
object containing all loaded information
it.eng.spago.error.EMFUserError
- If an Exception occurredIRoleDAO.loadByName(java.lang.String)
public java.util.List loadAllRoles() throws it.eng.spago.error.EMFUserError
IRoleDAO
Role
object. After that,
all roles are stored into a List
, which is returned.
loadAllRoles
in interface IRoleDAO
it.eng.spago.error.EMFUserError
- If an Exception occurredIRoleDAO.loadAllRoles()
public void insertRole(Role aRole) throws it.eng.spago.error.EMFUserError
IRoleDAO
Role
object.
insertRole
in interface IRoleDAO
aRole
- The object containing all insert information
it.eng.spago.error.EMFUserError
- If an Exception occurredIRoleDAO.insertRole(it.eng.spagobi.bo.Role)
public void eraseRole(Role aRole) throws it.eng.spago.error.EMFUserError
IRoleDAO
Role
object.
eraseRole
in interface IRoleDAO
aRole
- The object containing all delete information
it.eng.spago.error.EMFUserError
- If an Exception occurredIRoleDAO.eraseRole(it.eng.spagobi.bo.Role)
public void modifyRole(Role aRole) throws it.eng.spago.error.EMFUserError
IRoleDAO
Role
object.
modifyRole
in interface IRoleDAO
aRole
- The object containing all modify information
it.eng.spago.error.EMFUserError
- If an Exception occurredIRoleDAO.modifyRole(it.eng.spagobi.bo.Role)
public java.util.List loadAllFreeRolesForInsert(java.lang.Integer parameterID) throws it.eng.spago.error.EMFUserError
IRoleDAO
loadAllFreeRolesForInsert
in interface IRoleDAO
parameterID
- The parameter id
it.eng.spago.error.EMFUserError
IRoleDAO.loadAllFreeRolesForInsert(java.lang.Integer)
public java.util.List loadAllFreeRolesForDetail(java.lang.Integer parUseID) throws it.eng.spago.error.EMFUserError
IRoleDAO
loadAllFreeRolesForDetail
in interface IRoleDAO
parUseID
- The parameter use mode id
it.eng.spago.error.EMFUserError
IRoleDAO.loadAllFreeRolesForDetail(java.lang.Integer)
public Role toRole(SbiExtRoles hibRole)
Role
object.
hibRole
- The hybernate role
Role
objectpublic java.util.List LoadFunctionalitiesAssociated(java.lang.Integer roleID) throws it.eng.spago.error.EMFUserError
LoadFunctionalitiesAssociated
in interface IRoleDAO
roleID
- The role id
it.eng.spago.error.EMFUserError
public java.util.List LoadParUsesAssociated(java.lang.Integer roleID) throws it.eng.spago.error.EMFUserError
LoadParUsesAssociated
in interface IRoleDAO
roleID
- The role id
it.eng.spago.error.EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |