public abstract class SortingBatchDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements SortingBatchDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.data.batch.SortingBatch.
SortingBatchTRANSFORM_NONE| Constructor and Description |
|---|
SortingBatchDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
SortingBatch |
create(Boolean childBatchsReplication,
Boolean exhaustiveInventory,
QualityFlag qualityFlag,
Short rankOrder,
CatchBatch rootBatch)
Creates a new
fr.ifremer.adagio.core.dao.data.batch.SortingBatch
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Collection<SortingBatch> |
create(Collection<SortingBatch> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.data.batch.SortingBatch and adds
from the passed in
entities collection |
Object |
create(int transform,
Boolean childBatchsReplication,
Boolean exhaustiveInventory,
QualityFlag qualityFlag,
Short rankOrder,
CatchBatch rootBatch)
Does the same thing as
SortingBatchDao.create(java.lang.Boolean,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.lang.Short,fr.ifremer.adagio.core.dao.data.batch.CatchBatch) with an
additional flag called transform. |
Collection<?> |
create(int transform,
Collection<SortingBatch> entities)
Does the same thing as
SortingBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.SortingBatch) 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,
Float samplingRatio,
String samplingRatioText,
TaxonGroup taxonGroup,
CatchBatch rootBatch,
ReferenceTaxon referenceTaxon,
Collection<SortingMeasurement> sortingMeasurements)
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. |
Object |
create(int transform,
SortingBatch sortingBatch)
Does the same thing as
SortingBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.SortingBatch) with an
additional flag called transform. |
SortingBatch |
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,
Float samplingRatio,
String samplingRatioText,
TaxonGroup taxonGroup,
CatchBatch rootBatch,
ReferenceTaxon referenceTaxon,
Collection<SortingMeasurement> sortingMeasurements)
Creates a new
fr.ifremer.adagio.core.dao.data.batch.SortingBatch
instance from all attributes and
properties and adds it to the persistent store. |
SortingBatch |
create(SortingBatch sortingBatch)
Creates an instance of fr.ifremer.adagio.core.dao.data.batch.SortingBatch and adds it to the persistent store.
|
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
SortingBatch |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.data.batch.SortingBatch from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
SortingBatchDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<SortingBatch> |
loadAll()
Loads all entities of type
SortingBatch. |
Collection<?> |
loadAll(int transform)
Does the same thing as
SortingBatchDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
SortingBatchDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
SortingBatchDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<SortingBatch> entities)
Removes all entities in the given
entities |
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.data.batch.SortingBatch having the given
identifier from the persistent store. |
void |
remove(SortingBatch sortingBatch)
Removes the instance of fr.ifremer.adagio.core.dao.data.batch.SortingBatch 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
SortingBatchDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<SortingBatch> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected SortingBatch |
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.SortingBatch)
method. |
protected Object |
transformEntity(int transform,
SortingBatch 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.SortingBatchDao, please note
that the SortingBatchDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<SortingBatch> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(SortingBatch sortingBatch)
Updates the
sortingBatch instance in the persistent store. |
public Object load(int transform, Integer id)
SortingBatchDao
Does the same thing as SortingBatchDao.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 SortingBatchDaoid - identifier of the entity to loadSortingBatchDao.load(int, java.lang.Integer)public SortingBatch load(Integer id)
SortingBatchDaoload in interface SortingBatchDaoSortingBatchDao.load(java.lang.Integer)public Collection<SortingBatch> loadAll()
SortingBatchDaoSortingBatch.loadAll in interface SortingBatchDaoSortingBatchDao.loadAll()public Collection<?> loadAll(int transform)
SortingBatchDao
Does the same thing as SortingBatchDao.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 SortingBatchDaotransform - the flag indicating what transformation to use.SortingBatchDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
SortingBatchDao
Does the same thing as SortingBatchDao.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 SortingBatchDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.SortingBatchDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
SortingBatchDao
Does the same thing as SortingBatchDao.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 SortingBatchDaotransform - 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.SortingBatchDao.loadAll(int, int, int)public SortingBatch create(SortingBatch sortingBatch)
SortingBatchDaocreate in interface SortingBatchDaoSortingBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.SortingBatch)public Object create(int transform, SortingBatch sortingBatch)
SortingBatchDao
Does the same thing as SortingBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.SortingBatch) 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 SortingBatchDaoSortingBatchDao.create(int transform, fr.ifremer.adagio.core.dao.data.batch.SortingBatch)public Collection<SortingBatch> create(Collection<SortingBatch> entities)
SortingBatchDaoentities collectioncreate in interface SortingBatchDaoentities - the collection of fr.ifremer.adagio.core.dao.data.batch.SortingBatch
instances to create.fr.ifremer.adagio.core.dao.data.batch.SortingBatchDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<SortingBatch> entities)
SortingBatchDao
Does the same thing as SortingBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.SortingBatch) 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 SortingBatchDaofr.ifremer.adagio.core.dao.data.batch.SortingBatchDao#create(int, java.util.Collection) public SortingBatch 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, Float samplingRatio, String samplingRatioText, TaxonGroup taxonGroup, CatchBatch rootBatch, ReferenceTaxon referenceTaxon, Collection<SortingMeasurement> sortingMeasurements)
SortingBatchDao
Creates a new fr.ifremer.adagio.core.dao.data.batch.SortingBatch
instance from all attributes and
properties and adds it to the persistent store.
create in interface SortingBatchDaofr.ifremer.adagio.core.dao.data.batch.SortingBatchDao#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.Float,java.lang.String,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.data.batch.CatchBatch,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,java.util.Collection) 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, Float samplingRatio, String samplingRatioText, TaxonGroup taxonGroup, CatchBatch rootBatch, ReferenceTaxon referenceTaxon, Collection<SortingMeasurement> sortingMeasurements)
SortingBatchDao
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 SortingBatchDaofr.ifremer.adagio.core.dao.data.batch.SortingBatchDao#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.Float,java.lang.String,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.data.batch.CatchBatch,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,java.util.Collection) public SortingBatch create(Boolean childBatchsReplication, Boolean exhaustiveInventory, QualityFlag qualityFlag, Short rankOrder, CatchBatch rootBatch)
SortingBatchDao
Creates a new fr.ifremer.adagio.core.dao.data.batch.SortingBatch
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, CatchBatch rootBatch)
SortingBatchDao
Does the same thing as SortingBatchDao.create(java.lang.Boolean,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.lang.Short,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 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(SortingBatch sortingBatch)
SortingBatchDaosortingBatch instance in the persistent store.update in interface SortingBatchDaoSortingBatchDao.update(fr.ifremer.adagio.core.dao.data.batch.SortingBatch)public void update(Collection<SortingBatch> entities)
SortingBatchDaoentities collection in the persistent store.update in interface SortingBatchDaofr.ifremer.adagio.core.dao.data.batch.SortingBatchDao#update(java.util.Collection) public void remove(SortingBatch sortingBatch)
SortingBatchDaoremove in interface SortingBatchDaoSortingBatchDao.remove(fr.ifremer.adagio.core.dao.data.batch.SortingBatch)public void remove(Integer id)
SortingBatchDaoidentifier from the persistent store.remove in interface SortingBatchDaoSortingBatchDao.remove(java.lang.Integer)public void remove(Collection<SortingBatch> entities)
SortingBatchDaoentities collection.remove in interface SortingBatchDaofr.ifremer.adagio.core.dao.data.batch.SortingBatchDao#remove(java.util.Collection) protected Object transformEntity(int transform, SortingBatch entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.data.batch.SortingBatchDao, please note
that the SortingBatchDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown SortingBatchDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in SortingBatchDaoentity - 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.SortingBatch)
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.SortingBatchDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.data.batch.SortingBatch)protected SortingBatch 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)
SortingBatchDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface SortingBatchDaotransform - 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.SortingBatchDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
SortingBatchDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface SortingBatchDaopageNumber - 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.SortingBatchDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
SortingBatchDaoSortingBatchDao.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 SortingBatchDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.SortingBatchDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<SortingBatch> search(Search search)
SortingBatchDaosearch object.search in interface SortingBatchDaosearch - the search object which provides the search parameters and pagination specification.SortingBatchDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.