public abstract class AppliedPeriodDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements AppliedPeriodDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod.
AppliedPeriodTRANSFORM_NONE| Constructor and Description |
|---|
AppliedPeriodDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
AppliedPeriod |
create(AppliedPeriod appliedPeriod)
Creates an instance of fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod and adds it to the persistent store.
|
Collection<AppliedPeriod> |
create(Collection<AppliedPeriod> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod and adds
from the passed in
entities collection |
AppliedPeriod |
create(Date startDate,
Date endDate,
AppliedStrategy appliedStrategy)
Creates a new
fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod
instance from all attributes and
properties and adds it to the persistent store. |
Object |
create(int transform,
AppliedPeriod appliedPeriod)
Does the same thing as
AppliedPeriodDao.create(fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod) with an
additional flag called transform. |
Collection<?> |
create(int transform,
Collection<AppliedPeriod> entities)
Does the same thing as
AppliedPeriodDao.create(fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod) with an
additional flag called transform. |
Object |
create(int transform,
Date startDate,
Date endDate,
AppliedStrategy appliedStrategy)
Does the same thing as
AppliedPeriodDao.create(java.util.Date,java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy) with an
additional flag called transform. |
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
AppliedPeriod |
load(Date startDate,
AppliedStrategy appliedStrategy)
Loads an instance of fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod from the persistent store.
|
Object |
load(int transform,
Date startDate,
AppliedStrategy appliedStrategy)
Does the same thing as
AppliedPeriodDao.load(java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy) with an
additional flag called transform. |
Collection<AppliedPeriod> |
loadAll()
Loads all entities of type
AppliedPeriod. |
Collection<?> |
loadAll(int transform)
Does the same thing as
AppliedPeriodDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
AppliedPeriodDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
AppliedPeriodDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(AppliedPeriod appliedPeriod)
Removes the instance of fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod from the persistent store.
|
void |
remove(Collection<AppliedPeriod> entities)
Removes all entities in the given
entities |
void |
remove(Date startDate,
AppliedStrategy appliedStrategy)
Removes the instance of fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod having the given
identifiers from the persistent store. |
PaginationResult |
search(int transform,
int pageNumber,
int pageSize,
Search search)
Does the same thing as {@link #search(int, fr.ifremer.adagio.core.dao.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(fr.ifremer.adagio.core.dao.Search) but with an
additional two flags called
pageNumber and pageSize. |
Set<?> |
search(int transform,
Search search)
Does the same thing as
AppliedPeriodDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<AppliedPeriod> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected AppliedPeriod |
toEntity(Object[] row) |
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod)
method. |
protected Object |
transformEntity(int transform,
AppliedPeriod entity)
Allows transformation of entities into value objects
(or something else for that matter), when the
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriodDao, please note
that the AppliedPeriodDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(AppliedPeriod appliedPeriod)
Updates the
appliedPeriod instance in the persistent store. |
void |
update(Collection<AppliedPeriod> entities)
Updates all instances in the
entities collection in the persistent store. |
public Object load(int transform, Date startDate, AppliedStrategy appliedStrategy)
AppliedPeriodDao
Does the same thing as AppliedPeriodDao.load(java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy) 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 AppliedPeriodDaostartDate - identifier of the entity to loadappliedStrategy - identifier of the entity to loadAppliedPeriodDao.load(int, java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy)public AppliedPeriod load(Date startDate, AppliedStrategy appliedStrategy)
AppliedPeriodDaoload in interface AppliedPeriodDaoAppliedPeriodDao.load(java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy)public Collection<AppliedPeriod> loadAll()
AppliedPeriodDaoAppliedPeriod.loadAll in interface AppliedPeriodDaoAppliedPeriodDao.loadAll()public Collection<?> loadAll(int transform)
AppliedPeriodDao
Does the same thing as AppliedPeriodDao.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 AppliedPeriodDaotransform - the flag indicating what transformation to use.AppliedPeriodDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
AppliedPeriodDao
Does the same thing as AppliedPeriodDao.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 AppliedPeriodDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.AppliedPeriodDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
AppliedPeriodDao
Does the same thing as AppliedPeriodDao.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 AppliedPeriodDaotransform - 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.AppliedPeriodDao.loadAll(int, int, int)public AppliedPeriod create(AppliedPeriod appliedPeriod)
AppliedPeriodDaocreate in interface AppliedPeriodDaoAppliedPeriodDao.create(fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod)public Object create(int transform, AppliedPeriod appliedPeriod)
AppliedPeriodDao
Does the same thing as AppliedPeriodDao.create(fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod) 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 AppliedPeriodDaoAppliedPeriodDao.create(int transform, fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod)public Collection<AppliedPeriod> create(Collection<AppliedPeriod> entities)
AppliedPeriodDaoentities collectioncreate in interface AppliedPeriodDaoentities - the collection of fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod
instances to create.fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriodDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<AppliedPeriod> entities)
AppliedPeriodDao
Does the same thing as AppliedPeriodDao.create(fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod) 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 AppliedPeriodDaofr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriodDao#create(int, java.util.Collection) public AppliedPeriod create(Date startDate, Date endDate, AppliedStrategy appliedStrategy)
AppliedPeriodDao
Creates a new fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod
instance from all attributes and
properties and adds it to the persistent store.
create in interface AppliedPeriodDaoAppliedPeriodDao.create(java.util.Date,java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy)public Object create(int transform, Date startDate, Date endDate, AppliedStrategy appliedStrategy)
AppliedPeriodDao
Does the same thing as AppliedPeriodDao.create(java.util.Date,java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy) 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.
public void update(AppliedPeriod appliedPeriod)
AppliedPeriodDaoappliedPeriod instance in the persistent store.update in interface AppliedPeriodDaoAppliedPeriodDao.update(fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod)public void update(Collection<AppliedPeriod> entities)
AppliedPeriodDaoentities collection in the persistent store.update in interface AppliedPeriodDaofr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriodDao#update(java.util.Collection) public void remove(AppliedPeriod appliedPeriod)
AppliedPeriodDaoremove in interface AppliedPeriodDaoAppliedPeriodDao.remove(fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod)public void remove(Date startDate, AppliedStrategy appliedStrategy)
AppliedPeriodDaoidentifiers from the persistent store.remove in interface AppliedPeriodDaoAppliedPeriodDao.remove(java.util.Date,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedStrategy)public void remove(Collection<AppliedPeriod> entities)
AppliedPeriodDaoentities collection.remove in interface AppliedPeriodDaofr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriodDao#remove(java.util.Collection) protected Object transformEntity(int transform, AppliedPeriod entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriodDao, please note
that the AppliedPeriodDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown AppliedPeriodDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in AppliedPeriodDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod)
method. This method does not instantiate a new collection.
This method is to be used internally only.transform - one of the constants declared in fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriodDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.administration.programStrategy.AppliedPeriod)protected AppliedPeriod toEntity(Object[] row)
protected Principal getPrincipal()
principal if one has been set,
otherwise returns null.public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
AppliedPeriodDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface AppliedPeriodDaotransform - 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.AppliedPeriodDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
AppliedPeriodDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface AppliedPeriodDaopageNumber - 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.AppliedPeriodDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
AppliedPeriodDaoAppliedPeriodDao.search(fr.ifremer.adagio.core.dao.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 AppliedPeriodDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.AppliedPeriodDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<AppliedPeriod> search(Search search)
AppliedPeriodDaosearch object.search in interface AppliedPeriodDaosearch - the search object which provides the search parameters and pagination specification.AppliedPeriodDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.