public abstract class VesselDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements VesselDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.vessel.Vessel.
VesselTRANSFORM_NONE| Constructor and Description |
|---|
VesselDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Vessel> |
create(Collection<Vessel> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.vessel.Vessel and adds
from the passed in
entities collection |
Collection<?> |
create(int transform,
Collection<Vessel> entities)
Does the same thing as
VesselDao.create(fr.ifremer.adagio.core.dao.referential.vessel.Vessel) with an
additional flag called transform. |
Object |
create(int transform,
String code,
Status status,
VesselType vesselType)
Does the same thing as
VesselDao.create(java.lang.String,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.VesselType) with an
additional flag called transform. |
Object |
create(int transform,
String code,
Timestamp updateDate,
Collection<RightToProduce> rightToProduces,
VesselType vesselType,
Collection<VesselFeatures> vesselFeatures,
Collection<VesselRegistrationPeriod> vesselRegistrationPeriods,
Collection<VesselOwnerPeriod> vesselOwnerPeriods,
Collection<VesselMasterPeriod> vesselMasterPeriods,
Status status)
Does the same thing as
#create(java.lang.String,java.sql.Timestamp,java.util.Collection with an
additional flag called transform. |
Object |
create(int transform,
Vessel vessel)
Does the same thing as
VesselDao.create(fr.ifremer.adagio.core.dao.referential.vessel.Vessel) with an
additional flag called transform. |
Vessel |
create(String code,
Status status,
VesselType vesselType)
Creates a new
fr.ifremer.adagio.core.dao.referential.vessel.Vessel
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Vessel |
create(String code,
Timestamp updateDate,
Collection<RightToProduce> rightToProduces,
VesselType vesselType,
Collection<VesselFeatures> vesselFeatures,
Collection<VesselRegistrationPeriod> vesselRegistrationPeriods,
Collection<VesselOwnerPeriod> vesselOwnerPeriods,
Collection<VesselMasterPeriod> vesselMasterPeriods,
Status status)
Creates a new
fr.ifremer.adagio.core.dao.referential.vessel.Vessel
instance from all attributes and
properties and adds it to the persistent store. |
Vessel |
create(Vessel vessel)
Creates an instance of fr.ifremer.adagio.core.dao.referential.vessel.Vessel and adds it to the persistent store.
|
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
Object |
load(int transform,
String code)
Does the same thing as
VesselDao.load(java.lang.String) with an
additional flag called transform. |
Vessel |
load(String code)
Loads an instance of fr.ifremer.adagio.core.dao.referential.vessel.Vessel from the persistent store.
|
Collection<Vessel> |
loadAll()
Loads all entities of type
Vessel. |
Collection<?> |
loadAll(int transform)
Does the same thing as
VesselDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
VesselDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
VesselDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<Vessel> entities)
Removes all entities in the given
entities |
void |
remove(String code)
Removes the instance of fr.ifremer.adagio.core.dao.referential.vessel.Vessel having the given
identifier from the persistent store. |
void |
remove(Vessel vessel)
Removes the instance of fr.ifremer.adagio.core.dao.referential.vessel.Vessel 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
VesselDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<Vessel> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected Vessel |
toEntity(Object[] row) |
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,fr.ifremer.adagio.core.dao.referential.vessel.Vessel)
method. |
protected Object |
transformEntity(int transform,
Vessel 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.referential.vessel.VesselDao, please note
that the VesselDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<Vessel> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(Vessel vessel)
Updates the
vessel instance in the persistent store. |
public Object load(int transform, String code)
VesselDao
Does the same thing as VesselDao.load(java.lang.String) 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 VesselDaocode - identifier of the entity to loadVesselDao.load(int, java.lang.String)public Vessel load(String code)
VesselDaoload in interface VesselDaoVesselDao.load(java.lang.String)public Collection<Vessel> loadAll()
VesselDaoVessel.loadAll in interface VesselDaoVesselDao.loadAll()public Collection<?> loadAll(int transform)
VesselDao
Does the same thing as VesselDao.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 VesselDaotransform - the flag indicating what transformation to use.VesselDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
VesselDao
Does the same thing as VesselDao.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 VesselDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.VesselDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
VesselDao
Does the same thing as VesselDao.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 VesselDaotransform - 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.VesselDao.loadAll(int, int, int)public Vessel create(Vessel vessel)
VesselDaocreate in interface VesselDaoVesselDao.create(fr.ifremer.adagio.core.dao.referential.vessel.Vessel)public Object create(int transform, Vessel vessel)
VesselDao
Does the same thing as VesselDao.create(fr.ifremer.adagio.core.dao.referential.vessel.Vessel) 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 VesselDaoVesselDao.create(int transform, fr.ifremer.adagio.core.dao.referential.vessel.Vessel)public Collection<Vessel> create(Collection<Vessel> entities)
VesselDaoentities collectionpublic Collection<?> create(int transform, Collection<Vessel> entities)
VesselDao
Does the same thing as VesselDao.create(fr.ifremer.adagio.core.dao.referential.vessel.Vessel) 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.
public Vessel create(String code, Timestamp updateDate, Collection<RightToProduce> rightToProduces, VesselType vesselType, Collection<VesselFeatures> vesselFeatures, Collection<VesselRegistrationPeriod> vesselRegistrationPeriods, Collection<VesselOwnerPeriod> vesselOwnerPeriods, Collection<VesselMasterPeriod> vesselMasterPeriods, Status status)
VesselDao
Creates a new fr.ifremer.adagio.core.dao.referential.vessel.Vessel
instance from all attributes and
properties and adds it to the persistent store.
create in interface VesselDaofr.ifremer.adagio.core.dao.referential.vessel.VesselDao#create(java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.adagio.core.dao.referential.VesselType,java.util.Collection,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.adagio.core.dao.referential.Status) public Object create(int transform, String code, Timestamp updateDate, Collection<RightToProduce> rightToProduces, VesselType vesselType, Collection<VesselFeatures> vesselFeatures, Collection<VesselRegistrationPeriod> vesselRegistrationPeriods, Collection<VesselOwnerPeriod> vesselOwnerPeriods, Collection<VesselMasterPeriod> vesselMasterPeriods, Status status)
VesselDao
Does the same thing as #create(java.lang.String,java.sql.Timestamp,java.util.Collection 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 VesselDaofr.ifremer.adagio.core.dao.referential.vessel.VesselDao#create(int, java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.adagio.core.dao.referential.VesselType,java.util.Collection,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.adagio.core.dao.referential.Status) public Vessel create(String code, Status status, VesselType vesselType)
VesselDao
Creates a new fr.ifremer.adagio.core.dao.referential.vessel.Vessel
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create in interface VesselDaoVesselDao.create(java.lang.String,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.VesselType)public Object create(int transform, String code, Status status, VesselType vesselType)
VesselDao
Does the same thing as VesselDao.create(java.lang.String,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.VesselType) with an
additional flag called transform. If this flag is set to TRANSFORM_NONE then
the returned entity will NOTWILL 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 VesselDaoVesselDao.create(int, java.lang.String,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.VesselType)public void update(Vessel vessel)
VesselDaovessel instance in the persistent store.update in interface VesselDaoVesselDao.update(fr.ifremer.adagio.core.dao.referential.vessel.Vessel)public void update(Collection<Vessel> entities)
VesselDaoentities collection in the persistent store.public void remove(Vessel vessel)
VesselDaoremove in interface VesselDaoVesselDao.remove(fr.ifremer.adagio.core.dao.referential.vessel.Vessel)public void remove(String code)
VesselDaoidentifier from the persistent store.remove in interface VesselDaoVesselDao.remove(java.lang.String)public void remove(Collection<Vessel> entities)
VesselDaoentities collection.protected Object transformEntity(int transform, Vessel entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.vessel.VesselDao, please note
that the VesselDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown VesselDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in VesselDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.referential.vessel.Vessel)
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.referential.vessel.VesselDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.vessel.Vessel)protected Principal getPrincipal()
principal if one has been set,
otherwise returns null.public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
VesselDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface VesselDaotransform - 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.VesselDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
VesselDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface VesselDaopageNumber - 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.VesselDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
VesselDaoVesselDao.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 VesselDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.VesselDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<Vessel> search(Search search)
VesselDaosearch object.search in interface VesselDaosearch - the search object which provides the search parameters and pagination specification.VesselDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.