public abstract class VesselMasterDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements VesselMasterDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster.
VesselMasterTRANSFORM_NONE| Constructor and Description |
|---|
VesselMasterDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<VesselMaster> |
create(Collection<VesselMaster> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster and adds
from the passed in
entities collection |
Collection<?> |
create(int transform,
Collection<VesselMaster> entities)
Does the same thing as
VesselMasterDao.create(fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster) with an
additional flag called transform. |
Object |
create(int transform,
String registrationCode,
String lastname,
String firstname,
String street,
String zipcode,
String city,
String address,
Date dateOfBirth,
Date retirementDate,
Boolean isInRetirment,
Timestamp updateDate,
Date activityStartDate,
EducationGrade educationGrade)
Does the same thing as
VesselMasterDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.lang.Boolean,java.sql.Timestamp,java.util.Date,fr.ifremer.adagio.core.dao.referential.vessel.EducationGrade) with an
additional flag called transform. |
Object |
create(int transform,
VesselMaster vesselMaster)
Does the same thing as
VesselMasterDao.create(fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster) with an
additional flag called transform. |
VesselMaster |
create(String registrationCode,
String lastname,
String firstname,
String street,
String zipcode,
String city,
String address,
Date dateOfBirth,
Date retirementDate,
Boolean isInRetirment,
Timestamp updateDate,
Date activityStartDate,
EducationGrade educationGrade)
Creates a new
fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster
instance from all attributes and
properties and adds it to the persistent store. |
VesselMaster |
create(VesselMaster vesselMaster)
Creates an instance of fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster and adds it to the persistent store.
|
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
VesselMaster |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
VesselMasterDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<VesselMaster> |
loadAll()
Loads all entities of type
VesselMaster. |
Collection<?> |
loadAll(int transform)
Does the same thing as
VesselMasterDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
VesselMasterDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
VesselMasterDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<VesselMaster> entities)
Removes all entities in the given
entities |
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster having the given
identifier from the persistent store. |
void |
remove(VesselMaster vesselMaster)
Removes the instance of fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster 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
VesselMasterDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<VesselMaster> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected VesselMaster |
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.VesselMaster)
method. |
protected Object |
transformEntity(int transform,
VesselMaster 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.VesselMasterDao, please note
that the VesselMasterDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<VesselMaster> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(VesselMaster vesselMaster)
Updates the
vesselMaster instance in the persistent store. |
public Object load(int transform, Integer id)
VesselMasterDao
Does the same thing as VesselMasterDao.load(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 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 VesselMasterDaoid - identifier of the entity to loadVesselMasterDao.load(int, java.lang.Integer)public VesselMaster load(Integer id)
VesselMasterDaoload in interface VesselMasterDaoVesselMasterDao.load(java.lang.Integer)public Collection<VesselMaster> loadAll()
VesselMasterDaoVesselMaster.loadAll in interface VesselMasterDaoVesselMasterDao.loadAll()public Collection<?> loadAll(int transform)
VesselMasterDao
Does the same thing as VesselMasterDao.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 VesselMasterDaotransform - the flag indicating what transformation to use.VesselMasterDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
VesselMasterDao
Does the same thing as VesselMasterDao.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 VesselMasterDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.VesselMasterDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
VesselMasterDao
Does the same thing as VesselMasterDao.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 VesselMasterDaotransform - 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.VesselMasterDao.loadAll(int, int, int)public VesselMaster create(VesselMaster vesselMaster)
VesselMasterDaocreate in interface VesselMasterDaoVesselMasterDao.create(fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster)public Object create(int transform, VesselMaster vesselMaster)
VesselMasterDao
Does the same thing as VesselMasterDao.create(fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster) 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 VesselMasterDaoVesselMasterDao.create(int transform, fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster)public Collection<VesselMaster> create(Collection<VesselMaster> entities)
VesselMasterDaoentities collectioncreate in interface VesselMasterDaoentities - the collection of fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster
instances to create.fr.ifremer.adagio.core.dao.referential.vessel.VesselMasterDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<VesselMaster> entities)
VesselMasterDao
Does the same thing as VesselMasterDao.create(fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster) 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 VesselMasterDaofr.ifremer.adagio.core.dao.referential.vessel.VesselMasterDao#create(int, java.util.Collection) public VesselMaster create(String registrationCode, String lastname, String firstname, String street, String zipcode, String city, String address, Date dateOfBirth, Date retirementDate, Boolean isInRetirment, Timestamp updateDate, Date activityStartDate, EducationGrade educationGrade)
VesselMasterDao
Creates a new fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster
instance from all attributes and
properties and adds it to the persistent store.
create in interface VesselMasterDaoVesselMasterDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.lang.Boolean,java.sql.Timestamp,java.util.Date,fr.ifremer.adagio.core.dao.referential.vessel.EducationGrade)public Object create(int transform, String registrationCode, String lastname, String firstname, String street, String zipcode, String city, String address, Date dateOfBirth, Date retirementDate, Boolean isInRetirment, Timestamp updateDate, Date activityStartDate, EducationGrade educationGrade)
VesselMasterDao
Does the same thing as VesselMasterDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.lang.Boolean,java.sql.Timestamp,java.util.Date,fr.ifremer.adagio.core.dao.referential.vessel.EducationGrade) 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 VesselMasterDaoVesselMasterDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.lang.Boolean,java.sql.Timestamp,java.util.Date,fr.ifremer.adagio.core.dao.referential.vessel.EducationGrade)public void update(VesselMaster vesselMaster)
VesselMasterDaovesselMaster instance in the persistent store.update in interface VesselMasterDaoVesselMasterDao.update(fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster)public void update(Collection<VesselMaster> entities)
VesselMasterDaoentities collection in the persistent store.update in interface VesselMasterDaofr.ifremer.adagio.core.dao.referential.vessel.VesselMasterDao#update(java.util.Collection) public void remove(VesselMaster vesselMaster)
VesselMasterDaoremove in interface VesselMasterDaoVesselMasterDao.remove(fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster)public void remove(Integer id)
VesselMasterDaoidentifier from the persistent store.remove in interface VesselMasterDaoVesselMasterDao.remove(java.lang.Integer)public void remove(Collection<VesselMaster> entities)
VesselMasterDaoentities collection.remove in interface VesselMasterDaofr.ifremer.adagio.core.dao.referential.vessel.VesselMasterDao#remove(java.util.Collection) protected Object transformEntity(int transform, VesselMaster entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.vessel.VesselMasterDao, please note
that the VesselMasterDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown VesselMasterDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in VesselMasterDaoentity - 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.VesselMaster)
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.VesselMasterDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.vessel.VesselMaster)protected VesselMaster 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)
VesselMasterDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface VesselMasterDaotransform - 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.VesselMasterDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
VesselMasterDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface VesselMasterDaopageNumber - 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.VesselMasterDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
VesselMasterDaoVesselMasterDao.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 VesselMasterDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.VesselMasterDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<VesselMaster> search(Search search)
VesselMasterDaosearch object.search in interface VesselMasterDaosearch - the search object which provides the search parameters and pagination specification.VesselMasterDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.