public abstract class CatchBatchDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements CatchBatchDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.data.batch.CatchBatch.
CatchBatchTRANSFORM_NONE| Constructor and Description |
|---|
CatchBatchDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
CatchBatch |
create(Boolean childBatchsReplication,
Boolean exhaustiveInventory,
QualityFlag qualityFlag,
Short rankOrder,
String synchronizationStatus)
Creates a new
fr.ifremer.adagio.core.dao.data.batch.CatchBatch
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
CatchBatch |
create(CatchBatch catchBatch)
Creates an instance of fr.ifremer.adagio.core.dao.data.batch.CatchBatch and adds it to the persistent store.
|
Collection<CatchBatch> |
create(Collection<CatchBatch> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.data.batch.CatchBatch and adds
from the passed in
entities collection |
Object |
create(int transform,
Boolean childBatchsReplication,
Boolean exhaustiveInventory,
QualityFlag qualityFlag,
Short rankOrder,
String synchronizationStatus)
Does the same thing as
CatchBatchDao.create(java.lang.Boolean,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.lang.Short,java.lang.String) with an
additional flag called transform. |
Object |
create(int transform,
CatchBatch catchBatch)
Does the same thing as
CatchBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.CatchBatch) with an
additional flag called transform. |
Collection<?> |
create(int transform,
Collection<CatchBatch> entities)
Does the same thing as
CatchBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.CatchBatch) with an
additional flag called transform. |
Object |
create(int transform,
Short rankOrder,
Float subgroupCount,
Integer individualCount,
Boolean childBatchsReplication,
Boolean exhaustiveInventory,
String comments,
String label,
Collection<BatchExhaustiveInventory> batchExhaustiveInventories,
Location location,
QualityFlag qualityFlag,
Collection<Batch> childBatchs,
Batch parentBatch,
Collection<QuantificationMeasurement> quantificationMeasurements,
Collection<Produce> produces,
String synchronizationStatus,
Date controlDate,
Date validationDate,
Date qualificationDate,
String qualificationComments,
Timestamp updateDate,
BatchModel batchModel,
Sale sale,
Landing landing,
FishingOperation fishingOperation)
Does the same thing as
#create(java.lang.Short,java.lang.Float,java.lang.Integer,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.String,java.util.Collection with an
additional flag called transform. |
CatchBatch |
create(Short rankOrder,
Float subgroupCount,
Integer individualCount,
Boolean childBatchsReplication,
Boolean exhaustiveInventory,
String comments,
String label,
Collection<BatchExhaustiveInventory> batchExhaustiveInventories,
Location location,
QualityFlag qualityFlag,
Collection<Batch> childBatchs,
Batch parentBatch,
Collection<QuantificationMeasurement> quantificationMeasurements,
Collection<Produce> produces,
String synchronizationStatus,
Date controlDate,
Date validationDate,
Date qualificationDate,
String qualificationComments,
Timestamp updateDate,
BatchModel batchModel,
Sale sale,
Landing landing,
FishingOperation fishingOperation)
Creates a new
fr.ifremer.adagio.core.dao.data.batch.CatchBatch
instance from all attributes and
properties and adds it to the persistent store. |
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
CatchBatch |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.data.batch.CatchBatch from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
CatchBatchDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<CatchBatch> |
loadAll()
Loads all entities of type
CatchBatch. |
Collection<?> |
loadAll(int transform)
Does the same thing as
CatchBatchDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
CatchBatchDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
CatchBatchDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(CatchBatch catchBatch)
Removes the instance of fr.ifremer.adagio.core.dao.data.batch.CatchBatch from the persistent store.
|
void |
remove(Collection<CatchBatch> entities)
Removes all entities in the given
entities |
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.data.batch.CatchBatch 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, 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
CatchBatchDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<CatchBatch> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected CatchBatch |
toEntity(Object[] row) |
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,fr.ifremer.adagio.core.dao.data.batch.CatchBatch)
method. |
protected Object |
transformEntity(int transform,
CatchBatch 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.data.batch.CatchBatchDao, please note
that the CatchBatchDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(CatchBatch catchBatch)
Updates the
catchBatch instance in the persistent store. |
void |
update(Collection<CatchBatch> entities)
Updates all instances in the
entities collection in the persistent store. |
public Object load(int transform, Integer id)
CatchBatchDao
Does the same thing as CatchBatchDao.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 CatchBatchDaoid - identifier of the entity to loadCatchBatchDao.load(int, java.lang.Integer)public CatchBatch load(Integer id)
CatchBatchDaoload in interface CatchBatchDaoCatchBatchDao.load(java.lang.Integer)public Collection<CatchBatch> loadAll()
CatchBatchDaoCatchBatch.loadAll in interface CatchBatchDaoCatchBatchDao.loadAll()public Collection<?> loadAll(int transform)
CatchBatchDao
Does the same thing as CatchBatchDao.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 CatchBatchDaotransform - the flag indicating what transformation to use.CatchBatchDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
CatchBatchDao
Does the same thing as CatchBatchDao.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 CatchBatchDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.CatchBatchDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
CatchBatchDao
Does the same thing as CatchBatchDao.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 CatchBatchDaotransform - 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.CatchBatchDao.loadAll(int, int, int)public CatchBatch create(CatchBatch catchBatch)
CatchBatchDaocreate in interface CatchBatchDaoCatchBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.CatchBatch)public Object create(int transform, CatchBatch catchBatch)
CatchBatchDao
Does the same thing as CatchBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.CatchBatch) 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 CatchBatchDaoCatchBatchDao.create(int transform, fr.ifremer.adagio.core.dao.data.batch.CatchBatch)public Collection<CatchBatch> create(Collection<CatchBatch> entities)
CatchBatchDaoentities collectioncreate in interface CatchBatchDaoentities - the collection of fr.ifremer.adagio.core.dao.data.batch.CatchBatch
instances to create.fr.ifremer.adagio.core.dao.data.batch.CatchBatchDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<CatchBatch> entities)
CatchBatchDao
Does the same thing as CatchBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.CatchBatch) 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 CatchBatchDaofr.ifremer.adagio.core.dao.data.batch.CatchBatchDao#create(int, java.util.Collection) public CatchBatch create(Short rankOrder, Float subgroupCount, Integer individualCount, Boolean childBatchsReplication, Boolean exhaustiveInventory, String comments, String label, Collection<BatchExhaustiveInventory> batchExhaustiveInventories, Location location, QualityFlag qualityFlag, Collection<Batch> childBatchs, Batch parentBatch, Collection<QuantificationMeasurement> quantificationMeasurements, Collection<Produce> produces, String synchronizationStatus, Date controlDate, Date validationDate, Date qualificationDate, String qualificationComments, Timestamp updateDate, BatchModel batchModel, Sale sale, Landing landing, FishingOperation fishingOperation)
CatchBatchDao
Creates a new fr.ifremer.adagio.core.dao.data.batch.CatchBatch
instance from all attributes and
properties and adds it to the persistent store.
create in interface CatchBatchDaofr.ifremer.adagio.core.dao.data.batch.CatchBatchDao#create(java.lang.Short,java.lang.Float,java.lang.Integer,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.String,java.util.Collection,fr.ifremer.adagio.core.dao.referential.location.Location,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.util.Collection,fr.ifremer.adagio.core.dao.data.batch.Batch,java.util.Collection,java.util.Collection,java.lang.String,java.util.Date,java.util.Date,java.util.Date,java.lang.String,java.sql.Timestamp,fr.ifremer.adagio.core.dao.data.batch.BatchModel,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,fr.ifremer.adagio.core.dao.data.survey.landing.Landing,fr.ifremer.adagio.core.dao.data.operation.FishingOperation) public Object create(int transform, Short rankOrder, Float subgroupCount, Integer individualCount, Boolean childBatchsReplication, Boolean exhaustiveInventory, String comments, String label, Collection<BatchExhaustiveInventory> batchExhaustiveInventories, Location location, QualityFlag qualityFlag, Collection<Batch> childBatchs, Batch parentBatch, Collection<QuantificationMeasurement> quantificationMeasurements, Collection<Produce> produces, String synchronizationStatus, Date controlDate, Date validationDate, Date qualificationDate, String qualificationComments, Timestamp updateDate, BatchModel batchModel, Sale sale, Landing landing, FishingOperation fishingOperation)
CatchBatchDao
Does the same thing as #create(java.lang.Short,java.lang.Float,java.lang.Integer,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.String,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 CatchBatchDaofr.ifremer.adagio.core.dao.data.batch.CatchBatchDao#create(int, java.lang.Short,java.lang.Float,java.lang.Integer,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.String,java.util.Collection,fr.ifremer.adagio.core.dao.referential.location.Location,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.util.Collection,fr.ifremer.adagio.core.dao.data.batch.Batch,java.util.Collection,java.util.Collection,java.lang.String,java.util.Date,java.util.Date,java.util.Date,java.lang.String,java.sql.Timestamp,fr.ifremer.adagio.core.dao.data.batch.BatchModel,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,fr.ifremer.adagio.core.dao.data.survey.landing.Landing,fr.ifremer.adagio.core.dao.data.operation.FishingOperation) public CatchBatch create(Boolean childBatchsReplication, Boolean exhaustiveInventory, QualityFlag qualityFlag, Short rankOrder, String synchronizationStatus)
CatchBatchDao
Creates a new fr.ifremer.adagio.core.dao.data.batch.CatchBatch
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
public Object create(int transform, Boolean childBatchsReplication, Boolean exhaustiveInventory, QualityFlag qualityFlag, Short rankOrder, String synchronizationStatus)
CatchBatchDao
Does the same thing as CatchBatchDao.create(java.lang.Boolean,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.lang.Short,java.lang.String) 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.
public void update(CatchBatch catchBatch)
CatchBatchDaocatchBatch instance in the persistent store.update in interface CatchBatchDaoCatchBatchDao.update(fr.ifremer.adagio.core.dao.data.batch.CatchBatch)public void update(Collection<CatchBatch> entities)
CatchBatchDaoentities collection in the persistent store.update in interface CatchBatchDaofr.ifremer.adagio.core.dao.data.batch.CatchBatchDao#update(java.util.Collection) public void remove(CatchBatch catchBatch)
CatchBatchDaoremove in interface CatchBatchDaoCatchBatchDao.remove(fr.ifremer.adagio.core.dao.data.batch.CatchBatch)public void remove(Integer id)
CatchBatchDaoidentifier from the persistent store.remove in interface CatchBatchDaoCatchBatchDao.remove(java.lang.Integer)public void remove(Collection<CatchBatch> entities)
CatchBatchDaoentities collection.remove in interface CatchBatchDaofr.ifremer.adagio.core.dao.data.batch.CatchBatchDao#remove(java.util.Collection) protected Object transformEntity(int transform, CatchBatch entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.data.batch.CatchBatchDao, please note
that the CatchBatchDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown CatchBatchDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in CatchBatchDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.data.batch.CatchBatch)
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.data.batch.CatchBatchDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.data.batch.CatchBatch)protected CatchBatch 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)
CatchBatchDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface CatchBatchDaotransform - 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.CatchBatchDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
CatchBatchDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface CatchBatchDaopageNumber - 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.CatchBatchDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
CatchBatchDaoCatchBatchDao.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 CatchBatchDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.CatchBatchDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<CatchBatch> search(Search search)
CatchBatchDaosearch object.search in interface CatchBatchDaosearch - the search object which provides the search parameters and pagination specification.CatchBatchDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.