|
||||||||||
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.ClientDaoBase
public abstract class ClientDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type edu.uoc.tfc.dbmodel.Client
.
Client
Field Summary |
---|
Fields inherited from interface edu.uoc.tfc.dbmodel.ClientDao |
---|
TRANSFORM_CLIENTVO, TRANSFORM_NONE |
Constructor Summary | |
---|---|
ClientDaoBase()
|
Method Summary | |
---|---|
void |
clientVOToEntity(ClientVO source,
Client target,
boolean copyIfNull)
Copies the fields of ClientVO to the specified entity. |
void |
clientVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClientVO to this
DAO's entity. |
Client |
create(java.lang.Boolean actiu,
java.lang.String dataNaixement,
java.lang.String dni,
java.lang.String mail,
java.lang.String nom,
java.util.Collection partsDelClient,
java.lang.String primerCognom,
java.lang.String segonCognom,
java.lang.String telefon)
Creates a new edu.uoc.tfc.dbmodel.Client
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Client |
create(Client client)
Creates an instance of edu.uoc.tfc.dbmodel.Client and adds it to the persistent store. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of edu.uoc.tfc.dbmodel.Client and adds from the passed in entities collection |
java.lang.Object |
create(int transform,
java.lang.Boolean actiu,
java.lang.String dataNaixement,
java.lang.String dni,
java.lang.String mail,
java.lang.String nom,
java.util.Collection partsDelClient,
java.lang.String primerCognom,
java.lang.String segonCognom,
java.lang.String telefon)
Does the same thing as ClientDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Client client)
Does the same thing as ClientDao.create(edu.uoc.tfc.dbmodel.Client) with an
additional flag called transform . |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as ClientDao.create(edu.uoc.tfc.dbmodel.Client) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String dni,
java.lang.String nom,
java.lang.String primerCognom,
java.lang.String segonCognom,
java.lang.String telefon,
java.lang.String mail,
java.lang.String dataNaixement,
java.lang.Boolean actiu)
Does the same thing as ClientDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean) with an
additional flag called transform . |
Client |
create(java.lang.String dni,
java.lang.String nom,
java.lang.String primerCognom,
java.lang.String segonCognom,
java.lang.String telefon,
java.lang.String mail,
java.lang.String dataNaixement,
java.lang.Boolean actiu)
Creates a new edu.uoc.tfc.dbmodel.Client
instance from all attributes and adds it to
the persistent store. |
java.util.Collection |
findClientsByCriteria(CriteriaClientVO criteria)
Mètode per cercar clients a partir d'un criteri de cerca |
java.util.Collection |
findClientsByCriteria(int transform,
CriteriaClientVO criteria)
Does the same thing as ClientDao.findClientsByCriteria(edu.uoc.tfc.dto.CriteriaClientVO) with an
additional flag called transform . |
java.util.Collection |
findClientsByCriteria(int transform,
int pageNumber,
int pageSize,
CriteriaClientVO criteria)
Does the same thing as #findClientsByCriteria(int, String, edu.uoc.tfc.dto.CriteriaClientVO) with an
additional two arguments called pageNumber and pageSize . |
java.lang.Object |
load(int transform,
java.lang.Long id)
Does the same thing as ClientDao.load(java.lang.Long) with an
additional flag called transform . |
Client |
load(java.lang.Long id)
Loads an instance of edu.uoc.tfc.dbmodel.Client from the persistent store. |
java.util.Collection |
loadAll()
Loads all entities of type Client . |
java.util.Collection |
loadAll(int transform)
Does the same thing as ClientDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as ClientDao.loadAll() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as ClientDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remove(Client client)
Removes the instance of edu.uoc.tfc.dbmodel.Client from the persistent store. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities collection. |
void |
remove(java.lang.Long id)
Removes the instance of edu.uoc.tfc.dbmodel.Client having the given identifier from the persistent store. |
PaginationResult |
search(int transform,
int pageNumber,
int pageSize,
Search search)
Does the same thing as {@link #search(int, edu.uoc.tfc.Search) but with an additional two flags called pageNumber and pageSize . |
PaginationResult |
search(int pageNumber,
int pageSize,
Search search)
Does the same thing as {@link #search(edu.uoc.tfc.Search) but with an additional two flags called pageNumber and pageSize . |
java.util.Set |
search(int transform,
Search search)
Does the same thing as ClientDao.search(edu.uoc.tfc.Search) but with an
additional flag called transform . |
java.util.Set |
search(Search search)
Performs a search using the parameters specified in the given search object. |
ClientVO |
toClientVO(Client entity)
Converts this DAO's entity to an object of type ClientVO . |
void |
toClientVO(Client source,
ClientVO target)
Copies the fields of the specified entity to the target value object. |
ClientVO[] |
toClientVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClientVO . |
void |
toClientVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClientVO . |
void |
toEntities(java.util.Collection results)
Transforms the given results to a collection of com.lighthousepmg.plz.domain.messaging.persistence.CommunicationCategory
instances (this is useful when the returned results contains a row of data and you want just entities only). |
void |
update(Client client)
Updates the client instance in the persistent store. |
void |
update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store. |
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 |
Methods inherited from interface edu.uoc.tfc.dbmodel.ClientDao |
---|
clientVOToEntity |
Constructor Detail |
---|
public ClientDaoBase()
Method Detail |
---|
public java.lang.Object load(int transform, java.lang.Long id)
ClientDao
Does the same thing as ClientDao.load(java.lang.Long)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined in this class then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation does
not occur.
load
in interface ClientDao
id
- the identifier of the entity to load.
ClientDao.load(int, java.lang.Long)
public Client load(java.lang.Long id)
ClientDao
load
in interface ClientDao
ClientDao.load(java.lang.Long)
public java.util.Collection loadAll()
ClientDao
Client
.
loadAll
in interface ClientDao
ClientDao.loadAll()
public java.util.Collection loadAll(int transform)
ClientDao
Does the same thing as ClientDao.loadAll()
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
loadAll
in interface ClientDao
transform
- the flag indicating what transformation to use.
ClientDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
ClientDao
Does the same thing as ClientDao.loadAll()
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.
loadAll
in interface ClientDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
ClientDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
ClientDao
Does the same thing as ClientDao.loadAll(int)
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.
loadAll
in interface ClientDao
transform
- the flag indicating what transformation to use.pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
ClientDao.loadAll(int, int, int)
public Client create(Client client)
ClientDao
create
in interface ClientDao
ClientDao.create(edu.uoc.tfc.dbmodel.Client)
public java.lang.Object create(int transform, Client client)
ClientDao
Does the same thing as ClientDao.create(edu.uoc.tfc.dbmodel.Client)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
create
in interface ClientDao
ClientDao.create(int transform, edu.uoc.tfc.dbmodel.Client)
public java.util.Collection create(java.util.Collection entities)
ClientDao
entities
collection
create
in interface ClientDao
entities
- the collection of edu.uoc.tfc.dbmodel.Client
instances to create.
ClientDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
ClientDao
Does the same thing as ClientDao.create(edu.uoc.tfc.dbmodel.Client)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
create
in interface ClientDao
ClientDao.create(int, java.util.Collection)
public Client create(java.lang.String dni, java.lang.String nom, java.lang.String primerCognom, java.lang.String segonCognom, java.lang.String telefon, java.lang.String mail, java.lang.String dataNaixement, java.lang.Boolean actiu)
ClientDao
Creates a new edu.uoc.tfc.dbmodel.Client
instance from all attributes and adds it to
the persistent store.
create
in interface ClientDao
ClientDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean)
public java.lang.Object create(int transform, java.lang.String dni, java.lang.String nom, java.lang.String primerCognom, java.lang.String segonCognom, java.lang.String telefon, java.lang.String mail, java.lang.String dataNaixement, java.lang.Boolean actiu)
ClientDao
Does the same thing as ClientDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
create
in interface ClientDao
ClientDao.create(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean)
public Client create(java.lang.Boolean actiu, java.lang.String dataNaixement, java.lang.String dni, java.lang.String mail, java.lang.String nom, java.util.Collection partsDelClient, java.lang.String primerCognom, java.lang.String segonCognom, java.lang.String telefon)
ClientDao
Creates a new edu.uoc.tfc.dbmodel.Client
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface ClientDao
edu.uoc.tfc.dbmodel.ClientDao#create(java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, edu.uoc.tfc.dbmodel.Part, java.lang.String, java.lang.String, java.lang.String)
public java.lang.Object create(int transform, java.lang.Boolean actiu, java.lang.String dataNaixement, java.lang.String dni, java.lang.String mail, java.lang.String nom, java.util.Collection partsDelClient, java.lang.String primerCognom, java.lang.String segonCognom, java.lang.String telefon)
ClientDao
Does the same thing as ClientDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
create
in interface ClientDao
edu.uoc.tfc.dbmodel.ClientDao#create(int, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, edu.uoc.tfc.dbmodel.Part, java.lang.String, java.lang.String, java.lang.String)
public void update(Client client)
ClientDao
client
instance in the persistent store.
update
in interface ClientDao
ClientDao.update(edu.uoc.tfc.dbmodel.Client)
public void update(java.util.Collection entities)
ClientDao
entities
collection in the persistent store.
update
in interface ClientDao
ClientDao.update(java.util.Collection)
public void remove(Client client)
ClientDao
remove
in interface ClientDao
ClientDao.remove(edu.uoc.tfc.dbmodel.Client)
public void remove(java.lang.Long id)
ClientDao
identifier
from the persistent store.
remove
in interface ClientDao
ClientDao.remove(java.lang.Long)
public void remove(java.util.Collection entities)
ClientDao
entities
collection.
remove
in interface ClientDao
ClientDao.remove(java.util.Collection)
public java.util.Collection findClientsByCriteria(CriteriaClientVO criteria)
ClientDao
Mètode per cercar clients a partir d'un criteri de cerca
findClientsByCriteria
in interface ClientDao
ClientDao.findClientsByCriteria(edu.uoc.tfc.dto.CriteriaClientVO)
public java.util.Collection findClientsByCriteria(int transform, CriteriaClientVO criteria)
ClientDao
Does the same thing as ClientDao.findClientsByCriteria(edu.uoc.tfc.dto.CriteriaClientVO)
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.
findClientsByCriteria
in interface ClientDao
ClientDao.findClientsByCriteria(int, edu.uoc.tfc.dto.CriteriaClientVO)
public java.util.Collection findClientsByCriteria(int transform, int pageNumber, int pageSize, CriteriaClientVO criteria)
ClientDao
Does the same thing as #findClientsByCriteria(int, String, edu.uoc.tfc.dto.CriteriaClientVO)
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.
findClientsByCriteria
in interface ClientDao
edu.uoc.tfc.dbmodel.ClientDao#findClientsByCriteria(int, java.lang.String, int, int, edu.uoc.tfc.dto.CriteriaClientVO)
public void toEntities(java.util.Collection results)
ClientDao
com.lighthousepmg.plz.domain.messaging.persistence.CommunicationCategory
instances (this is useful when the returned results contains a row of data and you want just entities only).
toEntities
in interface ClientDao
ClientDao.toEntities(java.util.Collection)
public final void toClientVOCollection(java.util.Collection entities)
ClientDao
ClientVO
.
toClientVOCollection
in interface ClientDao
ClientDao.toClientVOCollection(java.util.Collection)
public final ClientVO[] toClientVOArray(java.util.Collection entities)
ClientDao
ClientVO
.
toClientVOArray
in interface ClientDao
ClientDao.toClientVOArray(java.util.Collection)
public final void clientVOToEntityCollection(java.util.Collection instances)
ClientDao
ClientVO
to this
DAO's entity.
clientVOToEntityCollection
in interface ClientDao
ClientDao.clientVOToEntityCollection(java.util.Collection)
public void toClientVO(Client source, ClientVO target)
ClientDao
toClientVO
in interface ClientDao
ClientDao.toClientVO(edu.uoc.tfc.dbmodel.Client, edu.uoc.tfc.dto.ClientVO)
public ClientVO toClientVO(Client entity)
ClientDao
ClientVO
.
toClientVO
in interface ClientDao
ClientDao.toClientVO(edu.uoc.tfc.dbmodel.Client)
public void clientVOToEntity(ClientVO source, Client target, boolean copyIfNull)
ClientDao
ClientVO
to the specified entity.
clientVOToEntity
in interface ClientDao
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.ClientDao#clientVOToEntity(edu.uoc.tfc.dto.ClientVO, edu.uoc.tfc.dbmodel.Client)
public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
ClientDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ClientDao
transform
- the transformation flag.pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.ClientDao.search(int, int, int, edu.uoc.tfc.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
ClientDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ClientDao
pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.ClientDao.search(int, int, edu.uoc.tfc.Search)
public java.util.Set search(int transform, Search search)
ClientDao
ClientDao.search(edu.uoc.tfc.Search)
but 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 results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
search
in interface ClientDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
ClientDao.search(int, edu.uoc.tfc.Search)
public java.util.Set search(Search search)
ClientDao
search
object.
search
in interface ClientDao
search
- the search object which provides the search parameters and pagination specification.
ClientDao.search(edu.uoc.tfc.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |