public class RoleDAODbFacadeImpl extends BaseDAODbFacade implements RoleDAO
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
RoleDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
roles |
get(Guid id)
Retrieves the entity with the given id.
|
List<roles> |
getAll()
Retrieves all the entities of type
T . |
List<roles> |
getAllForAdElement(Guid id)
Retrieves all roles for the specified Ad element.
|
roles |
getByName(String name)
Retrieves the role with the specified name.
|
List<roles> |
getForAdElement(Guid id)
This seems to be a redundant method, but the stored procedure is different from the one for
RoleDAO.getAllForAdElement(Guid) . |
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(roles role)
Persist a new instance of the entity.
|
void |
update(roles role)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public roles get(Guid id)
ReadDao
public roles getByName(String name)
RoleDAO
public List<roles> getAll()
ReadDao
T
.public List<roles> getAllForAdElement(Guid id)
RoleDAO
getAllForAdElement
in interface RoleDAO
id
- the Ad elementpublic List<roles> getForAdElement(Guid id)
RoleDAO
RoleDAO.getAllForAdElement(Guid)
.getForAdElement
in interface RoleDAO
id
- the Ad elementpublic void save(roles role)
ModificationDao
save
in interface ModificationDao<roles,Guid>
role
- The entity to persist (can't be null
).public void update(roles role)
ModificationDao
update
in interface ModificationDao<roles,Guid>
role
- The entity instance, containing data to update (can't be null
).public void remove(Guid id)
ModificationDao
remove
in interface ModificationDao<roles,Guid>
id
- The id of the entity to remove (can't be null
).Copyright © 2012. All Rights Reserved.