|
||||||||||
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.PartDaoBase
edu.uoc.tfc.dbmodel.PartDaoImpl
public class PartDaoImpl
Part
Field Summary |
---|
Fields inherited from interface edu.uoc.tfc.dbmodel.PartDao |
---|
TRANSFORM_NONE, TRANSFORM_PARTVO |
Constructor Summary | |
---|---|
PartDaoImpl()
|
Method Summary | |
---|---|
java.util.Collection |
findPartsByCriteria(CriteriaPartVO criteria)
Mètode per cercar parts de snistre a partir d'un criteri de cerca |
java.util.Collection |
findPartsByCriteria(int transform,
CriteriaPartVO criteria)
Does the same thing as PartDao.findPartsByCriteria(edu.uoc.tfc.dto.CriteriaPartVO) with an
additional flag called transform . |
java.util.Collection |
findPartsByCriteria(int transform,
int pageNumber,
int pageSize,
CriteriaPartVO criteria)
Does the same thing as #findPartsByCriteria(int, String, edu.uoc.tfc.dto.CriteriaPartVO) with an
additional two arguments called pageNumber and pageSize . |
Part |
partVOToEntity(PartVO partVO)
Converts an instance of type PartVO to this DAO's entity. |
void |
partVOToEntity(PartVO source,
Part target,
boolean copyIfNull)
Copies the fields of PartVO to the specified entity. |
PartVO |
toPartVO(Part entity)
Converts this DAO's entity to an object of type PartVO . |
void |
toPartVO(Part source,
PartVO target)
Copies the fields of the specified entity to the target value object. |
Methods inherited from class edu.uoc.tfc.dbmodel.PartDaoBase |
---|
create, create, create, create, create, create, create, create, load, load, loadAll, loadAll, loadAll, loadAll, partVOToEntityCollection, remove, remove, remove, search, search, search, search, toEntities, toPartVOArray, toPartVOCollection, update, update |
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 PartDaoImpl()
Method Detail |
---|
public void toPartVO(Part source, PartVO target)
PartDao
toPartVO
in interface PartDao
toPartVO
in class PartDaoBase
PartDao.toPartVO(edu.uoc.tfc.dbmodel.Part, edu.uoc.tfc.dto.PartVO)
public PartVO toPartVO(Part entity)
PartDao
PartVO
.
toPartVO
in interface PartDao
toPartVO
in class PartDaoBase
PartDao.toPartVO(edu.uoc.tfc.dbmodel.Part)
public Part partVOToEntity(PartVO partVO)
PartDao
PartVO
to this DAO's entity.
PartDao.partVOToEntity(edu.uoc.tfc.dto.PartVO)
public void partVOToEntity(PartVO source, Part target, boolean copyIfNull)
PartDao
PartVO
to the specified entity.
partVOToEntity
in interface PartDao
partVOToEntity
in class PartDaoBase
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.PartDao#partVOToEntity(edu.uoc.tfc.dto.PartVO, edu.uoc.tfc.dbmodel.Part)
public java.util.Collection findPartsByCriteria(CriteriaPartVO criteria)
PartDao
Mètode per cercar parts de snistre a partir d'un criteri de cerca
findPartsByCriteria
in interface PartDao
findPartsByCriteria
in class PartDaoBase
PartDao.findPartsByCriteria(edu.uoc.tfc.dto.CriteriaPartVO)
public java.util.Collection findPartsByCriteria(int transform, CriteriaPartVO criteria)
PartDao
Does the same thing as PartDao.findPartsByCriteria(edu.uoc.tfc.dto.CriteriaPartVO)
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.
findPartsByCriteria
in interface PartDao
findPartsByCriteria
in class PartDaoBase
PartDao.findPartsByCriteria(int, edu.uoc.tfc.dto.CriteriaPartVO)
public java.util.Collection findPartsByCriteria(int transform, int pageNumber, int pageSize, CriteriaPartVO criteria)
PartDao
Does the same thing as #findPartsByCriteria(int, String, edu.uoc.tfc.dto.CriteriaPartVO)
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.
findPartsByCriteria
in interface PartDao
findPartsByCriteria
in class PartDaoBase
edu.uoc.tfc.dbmodel.PartDao#findPartsByCriteria(int, java.lang.String, int, int, edu.uoc.tfc.dto.CriteriaPartVO)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |