|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
edu.uoc.tfc.dbmodel.security.UserDaoBase
edu.uoc.tfc.dbmodel.security.UserDaoImpl
public class UserDaoImpl
User
Field Summary |
---|
Fields inherited from interface edu.uoc.tfc.dbmodel.security.UserDao |
---|
TRANSFORM_NONE, TRANSFORM_USERVO |
Constructor Summary | |
---|---|
UserDaoImpl()
|
Method Summary | |
---|---|
java.util.Collection |
findUsersByCriteria(CriteriaUserVO criteriaUser)
Cerca un conjunt d'usuaris a partir d'un criteri de cerca |
java.util.Collection |
findUsersByCriteria(int transform,
CriteriaUserVO criteriaUser)
Does the same thing as UserDao.findUsersByCriteria(edu.uoc.tfc.dto.security.CriteriaUserVO) with an
additional flag called transform . |
java.util.Collection |
findUsersByCriteria(int transform,
int pageNumber,
int pageSize,
CriteriaUserVO criteriaUser)
Does the same thing as #findUsersByCriteria(int, String, edu.uoc.tfc.dto.security.CriteriaUserVO) with an
additional two arguments called pageNumber and pageSize . |
UserVO |
toUserVO(User entity)
Converts this DAO's entity to an object of type UserVO . |
void |
toUserVO(User source,
UserVO target)
Copies the fields of the specified entity to the target value object. |
User |
userVOToEntity(UserVO userVO)
Converts an instance of type UserVO to this DAO's entity. |
void |
userVOToEntity(UserVO source,
User target,
boolean copyIfNull)
Copies the fields of UserVO to the specified entity. |
Methods inherited from class edu.uoc.tfc.dbmodel.security.UserDaoBase |
---|
create, create, create, create, create, create, create, create, findUserByUserId, findUserByUserId, findUserByUserId, findUserByUserId, load, load, loadAll, loadAll, loadAll, loadAll, remove, remove, remove, search, search, search, search, toEntities, toUserVOArray, toUserVOCollection, update, update, userVOToEntityCollection |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
---|
getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserDaoImpl()
Method Detail |
---|
public void toUserVO(User source, UserVO target)
UserDao
toUserVO
in interface UserDao
toUserVO
in class UserDaoBase
UserDao.toUserVO(edu.uoc.tfc.dbmodel.security.User, edu.uoc.tfc.dto.security.UserVO)
public UserVO toUserVO(User entity)
UserDao
UserVO
.
toUserVO
in interface UserDao
toUserVO
in class UserDaoBase
UserDao.toUserVO(edu.uoc.tfc.dbmodel.security.User)
public User userVOToEntity(UserVO userVO)
UserDao
UserVO
to this DAO's entity.
UserDao.userVOToEntity(edu.uoc.tfc.dto.security.UserVO)
public void userVOToEntity(UserVO source, User target, boolean copyIfNull)
UserDao
UserVO
to the specified entity.
userVOToEntity
in interface UserDao
userVOToEntity
in class UserDaoBase
copyIfNull
- If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE,
it will be copied regardless of its value.edu.uoc.tfc.dbmodel.security.UserDao#userVOToEntity(edu.uoc.tfc.dto.security.UserVO, edu.uoc.tfc.dbmodel.security.User)
public java.util.Collection findUsersByCriteria(CriteriaUserVO criteriaUser)
UserDao
Cerca un conjunt d'usuaris a partir d'un criteri de cerca
findUsersByCriteria
in interface UserDao
findUsersByCriteria
in class UserDaoBase
UserDao.findUsersByCriteria(edu.uoc.tfc.dto.security.CriteriaUserVO)
public java.util.Collection findUsersByCriteria(int transform, CriteriaUserVO criteriaUser)
UserDao
Does the same thing as UserDao.findUsersByCriteria(edu.uoc.tfc.dto.security.CriteriaUserVO)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
finder results will NOT be transformed during retrieval.
If this flag is any of the other constants defined here
then finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
findUsersByCriteria
in interface UserDao
findUsersByCriteria
in class UserDaoBase
UserDao.findUsersByCriteria(int, edu.uoc.tfc.dto.security.CriteriaUserVO)
public java.util.Collection findUsersByCriteria(int transform, int pageNumber, int pageSize, CriteriaUserVO criteriaUser)
UserDao
Does the same thing as #findUsersByCriteria(int, String, edu.uoc.tfc.dto.security.CriteriaUserVO)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
findUsersByCriteria
in interface UserDao
findUsersByCriteria
in class UserDaoBase
edu.uoc.tfc.dbmodel.security.UserDao#findUsersByCriteria(int, java.lang.String, int, int, edu.uoc.tfc.dto.security.CriteriaUserVO)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |