fr.paris.lutece.portal.business.role
Class RoleDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.role.RoleDAO
All Implemented Interfaces:
IRoleDAO

public final class RoleDAO
extends java.lang.Object
implements IRoleDAO

This class provides Data Access methods for Role objects


Constructor Summary
RoleDAO()
           
 
Method Summary
 void delete(java.lang.String strRole)
          Delete a record from the table
 void insert(Role role)
          Insert a new record in the table.
 Role load(java.lang.String strRole)
          load the data of Role from the table
 java.util.Collection<Role> selectAll()
          Load the list of roles
 ReferenceList selectRolesList()
          Returns a list of all the right role
 void store(Role role)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleDAO

public RoleDAO()
Method Detail

insert

public void insert(Role role)
Insert a new record in the table.

Specified by:
insert in interface IRoleDAO
Parameters:
role - The Instance of the object Role

load

public Role load(java.lang.String strRole)
load the data of Role from the table

Specified by:
load in interface IRoleDAO
Parameters:
strRole - The indentifier of the object Role
Returns:
The Instance of the object Role

delete

public void delete(java.lang.String strRole)
Delete a record from the table

Specified by:
delete in interface IRoleDAO
Parameters:
strRole - The indentifier of the object Role

store

public void store(Role role)
Update the record in the table

Specified by:
store in interface IRoleDAO
Parameters:
role - The instance of the Role to update

selectRolesList

public ReferenceList selectRolesList()
Returns a list of all the right role

Specified by:
selectRolesList in interface IRoleDAO
Returns:
A ReferenceList of role objects

selectAll

public java.util.Collection<Role> selectAll()
Load the list of roles

Specified by:
selectAll in interface IRoleDAO
Returns:
The Collection of the Roles


Copyright © 2007 Mairie de Paris. All Rights Reserved.