|
||||||||||
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.OperationDaoBase
public abstract class OperationDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type edu.uoc.tfc.dbmodel.security.Operation
.
Operation
Field Summary |
---|
Fields inherited from interface edu.uoc.tfc.dbmodel.security.OperationDao |
---|
TRANSFORM_NONE, TRANSFORM_OPERATIONVO |
Constructor Summary | |
---|---|
OperationDaoBase()
|
Method Summary | |
---|---|
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of edu.uoc.tfc.dbmodel.security.Operation and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as OperationDao.create(edu.uoc.tfc.dbmodel.security.Operation) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Operation operation)
Does the same thing as OperationDao.create(edu.uoc.tfc.dbmodel.security.Operation) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name,
java.lang.String description,
java.lang.String url,
java.lang.Integer parent,
java.lang.Integer ordre)
Does the same thing as OperationDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer) with an
additional flag called transform . |
Operation |
create(Operation operation)
Creates an instance of edu.uoc.tfc.dbmodel.security.Operation and adds it to the persistent store. |
Operation |
create(java.lang.String name,
java.lang.String description,
java.lang.String url,
java.lang.Integer parent,
java.lang.Integer ordre)
Creates a new edu.uoc.tfc.dbmodel.security.Operation
instance from all attributes and adds it to
the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Long id)
Does the same thing as OperationDao.load(java.lang.Long) with an
additional flag called transform . |
Operation |
load(java.lang.Long id)
Loads an instance of edu.uoc.tfc.dbmodel.security.Operation from the persistent store. |
java.util.Collection |
loadAll()
Loads all entities of type Operation . |
java.util.Collection |
loadAll(int transform)
Does the same thing as OperationDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as OperationDao.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 OperationDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
operationVOToEntity(OperationVO source,
Operation target,
boolean copyIfNull)
Copies the fields of OperationVO to the specified entity. |
void |
operationVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type OperationVO to this
DAO's entity. |
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.security.Operation having the given identifier from the persistent store. |
void |
remove(Operation operation)
Removes the instance of edu.uoc.tfc.dbmodel.security.Operation 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 OperationDao.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. |
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). |
OperationVO |
toOperationVO(Operation entity)
Converts this DAO's entity to an object of type OperationVO . |
void |
toOperationVO(Operation source,
OperationVO target)
Copies the fields of the specified entity to the target value object. |
OperationVO[] |
toOperationVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type OperationVO . |
void |
toOperationVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type OperationVO . |
void |
update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store. |
void |
update(Operation operation)
Updates the operation instance 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.security.OperationDao |
---|
operationVOToEntity |
Constructor Detail |
---|
public OperationDaoBase()
Method Detail |
---|
public java.lang.Object load(int transform, java.lang.Long id)
OperationDao
Does the same thing as OperationDao.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 OperationDao
id
- the identifier of the entity to load.
OperationDao.load(int, java.lang.Long)
public Operation load(java.lang.Long id)
OperationDao
load
in interface OperationDao
OperationDao.load(java.lang.Long)
public java.util.Collection loadAll()
OperationDao
Operation
.
loadAll
in interface OperationDao
OperationDao.loadAll()
public java.util.Collection loadAll(int transform)
OperationDao
Does the same thing as OperationDao.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 OperationDao
transform
- the flag indicating what transformation to use.
OperationDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
OperationDao
Does the same thing as OperationDao.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 OperationDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
OperationDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
OperationDao
Does the same thing as OperationDao.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 OperationDao
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.
OperationDao.loadAll(int, int, int)
public Operation create(Operation operation)
OperationDao
create
in interface OperationDao
OperationDao.create(edu.uoc.tfc.dbmodel.security.Operation)
public java.lang.Object create(int transform, Operation operation)
OperationDao
Does the same thing as OperationDao.create(edu.uoc.tfc.dbmodel.security.Operation)
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 OperationDao
OperationDao.create(int transform, edu.uoc.tfc.dbmodel.security.Operation)
public java.util.Collection create(java.util.Collection entities)
OperationDao
entities
collection
create
in interface OperationDao
entities
- the collection of edu.uoc.tfc.dbmodel.security.Operation
instances to create.
OperationDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
OperationDao
Does the same thing as OperationDao.create(edu.uoc.tfc.dbmodel.security.Operation)
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 OperationDao
OperationDao.create(int, java.util.Collection)
public Operation create(java.lang.String name, java.lang.String description, java.lang.String url, java.lang.Integer parent, java.lang.Integer ordre)
OperationDao
Creates a new edu.uoc.tfc.dbmodel.security.Operation
instance from all attributes and adds it to
the persistent store.
create
in interface OperationDao
OperationDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer)
public java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.lang.String url, java.lang.Integer parent, java.lang.Integer ordre)
OperationDao
Does the same thing as OperationDao.create(java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer)
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 OperationDao
OperationDao.create(int, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer)
public void update(Operation operation)
OperationDao
operation
instance in the persistent store.
update
in interface OperationDao
OperationDao.update(edu.uoc.tfc.dbmodel.security.Operation)
public void update(java.util.Collection entities)
OperationDao
entities
collection in the persistent store.
update
in interface OperationDao
OperationDao.update(java.util.Collection)
public void remove(Operation operation)
OperationDao
remove
in interface OperationDao
OperationDao.remove(edu.uoc.tfc.dbmodel.security.Operation)
public void remove(java.lang.Long id)
OperationDao
identifier
from the persistent store.
remove
in interface OperationDao
OperationDao.remove(java.lang.Long)
public void remove(java.util.Collection entities)
OperationDao
entities
collection.
remove
in interface OperationDao
OperationDao.remove(java.util.Collection)
public void toEntities(java.util.Collection results)
OperationDao
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 OperationDao
OperationDao.toEntities(java.util.Collection)
public final void toOperationVOCollection(java.util.Collection entities)
OperationDao
OperationVO
.
toOperationVOCollection
in interface OperationDao
OperationDao.toOperationVOCollection(java.util.Collection)
public final OperationVO[] toOperationVOArray(java.util.Collection entities)
OperationDao
OperationVO
.
toOperationVOArray
in interface OperationDao
OperationDao.toOperationVOArray(java.util.Collection)
public final void operationVOToEntityCollection(java.util.Collection instances)
OperationDao
OperationVO
to this
DAO's entity.
operationVOToEntityCollection
in interface OperationDao
OperationDao.operationVOToEntityCollection(java.util.Collection)
public void toOperationVO(Operation source, OperationVO target)
OperationDao
toOperationVO
in interface OperationDao
OperationDao.toOperationVO(edu.uoc.tfc.dbmodel.security.Operation, edu.uoc.tfc.dto.security.OperationVO)
public OperationVO toOperationVO(Operation entity)
OperationDao
OperationVO
.
toOperationVO
in interface OperationDao
OperationDao.toOperationVO(edu.uoc.tfc.dbmodel.security.Operation)
public void operationVOToEntity(OperationVO source, Operation target, boolean copyIfNull)
OperationDao
OperationVO
to the specified entity.
operationVOToEntity
in interface OperationDao
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.OperationDao#operationVOToEntity(edu.uoc.tfc.dto.security.OperationVO, edu.uoc.tfc.dbmodel.security.Operation)
public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
OperationDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface OperationDao
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.OperationDao.search(int, int, int, edu.uoc.tfc.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
OperationDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface OperationDao
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.OperationDao.search(int, int, edu.uoc.tfc.Search)
public java.util.Set search(int transform, Search search)
OperationDao
OperationDao.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 OperationDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
OperationDao.search(int, edu.uoc.tfc.Search)
public java.util.Set search(Search search)
OperationDao
search
object.
search
in interface OperationDao
search
- the search object which provides the search parameters and pagination specification.
OperationDao.search(edu.uoc.tfc.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |