public abstract class DenormalizedBatchDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements DenormalizedBatchDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch.
DenormalizedBatchTRANSFORM_NONE| Constructor and Description |
|---|
DenormalizedBatchDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<DenormalizedBatch> |
create(Collection<DenormalizedBatch> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch and adds
from the passed in
entities collection |
DenormalizedBatch |
create(DenormalizedBatch denormalizedBatch)
Creates an instance of fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch and adds it to the persistent store.
|
Collection<?> |
create(int transform,
Collection<DenormalizedBatch> entities)
Does the same thing as
DenormalizedBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch) with an
additional flag called transform. |
Object |
create(int transform,
DenormalizedBatch denormalizedBatch)
Does the same thing as
DenormalizedBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch) with an
additional flag called transform. |
Object |
create(int transform,
Short flatRankOrder,
Boolean isDiscard,
Boolean isLanding,
QualityFlag qualityFlag,
Short rankOrder,
Short treeLevel)
Does the same thing as
DenormalizedBatchDao.create(java.lang.Short,java.lang.Boolean,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.lang.Short,java.lang.Short) with an
additional flag called transform. |
Object |
create(int transform,
Short rankOrder,
Short flatRankOrder,
Float weight,
Float indirectWeight,
Float elevateWeight,
Integer individualCount,
Integer indirectIndividualCount,
Integer elevateIndividualCount,
Float samplingRatio,
String samplingRatioText,
Boolean exhaustiveInventory,
Boolean childBatchsReplication,
String comments,
Short treeLevel,
String treeIndent,
String sortingValuesText,
Boolean isLanding,
Boolean isDiscard,
Timestamp updateDate,
Float elevateContextWeight,
String label,
TaxonGroup calculatedTaxonGroup,
ReferenceTaxon referenceTaxon,
ReferenceTaxon inheritedReferenceTaxon,
QualityFlag qualityFlag,
DenormalizedBatch parentBatch,
Collection<DenormalizedBatch> childBatchs,
TaxonGroup inheritedTaxonGroup,
Method weightMethod,
TaxonGroup taxonGroup,
Collection<DenormalisedBatchSortingValue> denormalisedBatchSortingValues,
Sale sale,
Operation operation)
Does the same thing as
#create(java.lang.Short,java.lang.Short,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.Short,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.sql.Timestamp,java.lang.Float,java.lang.String,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.QualityFlag,fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch,java.util.Collection with an
additional flag called transform. |
DenormalizedBatch |
create(Short flatRankOrder,
Boolean isDiscard,
Boolean isLanding,
QualityFlag qualityFlag,
Short rankOrder,
Short treeLevel)
Creates a new
fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
DenormalizedBatch |
create(Short rankOrder,
Short flatRankOrder,
Float weight,
Float indirectWeight,
Float elevateWeight,
Integer individualCount,
Integer indirectIndividualCount,
Integer elevateIndividualCount,
Float samplingRatio,
String samplingRatioText,
Boolean exhaustiveInventory,
Boolean childBatchsReplication,
String comments,
Short treeLevel,
String treeIndent,
String sortingValuesText,
Boolean isLanding,
Boolean isDiscard,
Timestamp updateDate,
Float elevateContextWeight,
String label,
TaxonGroup calculatedTaxonGroup,
ReferenceTaxon referenceTaxon,
ReferenceTaxon inheritedReferenceTaxon,
QualityFlag qualityFlag,
DenormalizedBatch parentBatch,
Collection<DenormalizedBatch> childBatchs,
TaxonGroup inheritedTaxonGroup,
Method weightMethod,
TaxonGroup taxonGroup,
Collection<DenormalisedBatchSortingValue> denormalisedBatchSortingValues,
Sale sale,
Operation operation)
Creates a new
fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch
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. |
Object |
load(int transform,
Long id)
Does the same thing as
DenormalizedBatchDao.load(java.lang.Long) with an
additional flag called transform. |
DenormalizedBatch |
load(Long id)
Loads an instance of fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch from the persistent store.
|
Collection<DenormalizedBatch> |
loadAll()
Loads all entities of type
DenormalizedBatch. |
Collection<?> |
loadAll(int transform)
Does the same thing as
DenormalizedBatchDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
DenormalizedBatchDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
DenormalizedBatchDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<DenormalizedBatch> entities)
Removes all entities in the given
entities |
void |
remove(DenormalizedBatch denormalizedBatch)
Removes the instance of fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch from the persistent store.
|
void |
remove(Long id)
Removes the instance of fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch 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
DenormalizedBatchDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<DenormalizedBatch> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected DenormalizedBatch |
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.denormalized.DenormalizedBatch)
method. |
protected Object |
transformEntity(int transform,
DenormalizedBatch 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.denormalized.DenormalizedBatchDao, please note
that the DenormalizedBatchDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<DenormalizedBatch> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(DenormalizedBatch denormalizedBatch)
Updates the
denormalizedBatch instance in the persistent store. |
public Object load(int transform, Long id)
DenormalizedBatchDao
Does the same thing as DenormalizedBatchDao.load(java.lang.Long) 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 DenormalizedBatchDaoid - identifier of the entity to loadDenormalizedBatchDao.load(int, java.lang.Long)public DenormalizedBatch load(Long id)
DenormalizedBatchDaoload in interface DenormalizedBatchDaoDenormalizedBatchDao.load(java.lang.Long)public Collection<DenormalizedBatch> loadAll()
DenormalizedBatchDaoDenormalizedBatch.loadAll in interface DenormalizedBatchDaoDenormalizedBatchDao.loadAll()public Collection<?> loadAll(int transform)
DenormalizedBatchDao
Does the same thing as DenormalizedBatchDao.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 DenormalizedBatchDaotransform - the flag indicating what transformation to use.DenormalizedBatchDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
DenormalizedBatchDao
Does the same thing as DenormalizedBatchDao.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 DenormalizedBatchDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.DenormalizedBatchDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
DenormalizedBatchDao
Does the same thing as DenormalizedBatchDao.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 DenormalizedBatchDaotransform - 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.DenormalizedBatchDao.loadAll(int, int, int)public DenormalizedBatch create(DenormalizedBatch denormalizedBatch)
DenormalizedBatchDaocreate in interface DenormalizedBatchDaoDenormalizedBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch)public Object create(int transform, DenormalizedBatch denormalizedBatch)
DenormalizedBatchDao
Does the same thing as DenormalizedBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch) 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 DenormalizedBatchDaoDenormalizedBatchDao.create(int transform, fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch)public Collection<DenormalizedBatch> create(Collection<DenormalizedBatch> entities)
DenormalizedBatchDaoentities collectioncreate in interface DenormalizedBatchDaoentities - the collection of fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch
instances to create.fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatchDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<DenormalizedBatch> entities)
DenormalizedBatchDao
Does the same thing as DenormalizedBatchDao.create(fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch) 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 DenormalizedBatchDaofr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatchDao#create(int, java.util.Collection) public DenormalizedBatch create(Short rankOrder, Short flatRankOrder, Float weight, Float indirectWeight, Float elevateWeight, Integer individualCount, Integer indirectIndividualCount, Integer elevateIndividualCount, Float samplingRatio, String samplingRatioText, Boolean exhaustiveInventory, Boolean childBatchsReplication, String comments, Short treeLevel, String treeIndent, String sortingValuesText, Boolean isLanding, Boolean isDiscard, Timestamp updateDate, Float elevateContextWeight, String label, TaxonGroup calculatedTaxonGroup, ReferenceTaxon referenceTaxon, ReferenceTaxon inheritedReferenceTaxon, QualityFlag qualityFlag, DenormalizedBatch parentBatch, Collection<DenormalizedBatch> childBatchs, TaxonGroup inheritedTaxonGroup, Method weightMethod, TaxonGroup taxonGroup, Collection<DenormalisedBatchSortingValue> denormalisedBatchSortingValues, Sale sale, Operation operation)
DenormalizedBatchDao
Creates a new fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch
instance from all attributes and
properties and adds it to the persistent store.
create in interface DenormalizedBatchDaofr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatchDao#create(java.lang.Short,java.lang.Short,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.Short,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.sql.Timestamp,java.lang.Float,java.lang.String,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.QualityFlag,fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch,java.util.Collection,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,java.util.Collection,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,fr.ifremer.adagio.core.dao.data.operation.Operation) public Object create(int transform, Short rankOrder, Short flatRankOrder, Float weight, Float indirectWeight, Float elevateWeight, Integer individualCount, Integer indirectIndividualCount, Integer elevateIndividualCount, Float samplingRatio, String samplingRatioText, Boolean exhaustiveInventory, Boolean childBatchsReplication, String comments, Short treeLevel, String treeIndent, String sortingValuesText, Boolean isLanding, Boolean isDiscard, Timestamp updateDate, Float elevateContextWeight, String label, TaxonGroup calculatedTaxonGroup, ReferenceTaxon referenceTaxon, ReferenceTaxon inheritedReferenceTaxon, QualityFlag qualityFlag, DenormalizedBatch parentBatch, Collection<DenormalizedBatch> childBatchs, TaxonGroup inheritedTaxonGroup, Method weightMethod, TaxonGroup taxonGroup, Collection<DenormalisedBatchSortingValue> denormalisedBatchSortingValues, Sale sale, Operation operation)
DenormalizedBatchDao
Does the same thing as #create(java.lang.Short,java.lang.Short,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.Short,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.sql.Timestamp,java.lang.Float,java.lang.String,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.QualityFlag,fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch,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 DenormalizedBatchDaofr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatchDao#create(int, java.lang.Short,java.lang.Short,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.lang.String,java.lang.Short,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.sql.Timestamp,java.lang.Float,java.lang.String,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.taxon.ReferenceTaxon,fr.ifremer.adagio.core.dao.referential.QualityFlag,fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch,java.util.Collection,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.taxon.TaxonGroup,java.util.Collection,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,fr.ifremer.adagio.core.dao.data.operation.Operation) public DenormalizedBatch create(Short flatRankOrder, Boolean isDiscard, Boolean isLanding, QualityFlag qualityFlag, Short rankOrder, Short treeLevel)
DenormalizedBatchDao
Creates a new fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
public Object create(int transform, Short flatRankOrder, Boolean isDiscard, Boolean isLanding, QualityFlag qualityFlag, Short rankOrder, Short treeLevel)
DenormalizedBatchDao
Does the same thing as DenormalizedBatchDao.create(java.lang.Short,java.lang.Boolean,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.QualityFlag,java.lang.Short,java.lang.Short) 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(DenormalizedBatch denormalizedBatch)
DenormalizedBatchDaodenormalizedBatch instance in the persistent store.update in interface DenormalizedBatchDaoDenormalizedBatchDao.update(fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch)public void update(Collection<DenormalizedBatch> entities)
DenormalizedBatchDaoentities collection in the persistent store.update in interface DenormalizedBatchDaofr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatchDao#update(java.util.Collection) public void remove(DenormalizedBatch denormalizedBatch)
DenormalizedBatchDaoremove in interface DenormalizedBatchDaoDenormalizedBatchDao.remove(fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch)public void remove(Long id)
DenormalizedBatchDaoidentifier from the persistent store.remove in interface DenormalizedBatchDaoDenormalizedBatchDao.remove(java.lang.Long)public void remove(Collection<DenormalizedBatch> entities)
DenormalizedBatchDaoentities collection.remove in interface DenormalizedBatchDaofr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatchDao#remove(java.util.Collection) protected Object transformEntity(int transform, DenormalizedBatch entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatchDao, please note
that the DenormalizedBatchDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown DenormalizedBatchDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in DenormalizedBatchDaoentity - 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.denormalized.DenormalizedBatch)
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.denormalized.DenormalizedBatchDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.data.batch.denormalized.DenormalizedBatch)protected DenormalizedBatch 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)
DenormalizedBatchDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface DenormalizedBatchDaotransform - 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.DenormalizedBatchDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
DenormalizedBatchDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface DenormalizedBatchDaopageNumber - 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.DenormalizedBatchDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
DenormalizedBatchDaoDenormalizedBatchDao.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 DenormalizedBatchDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.DenormalizedBatchDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<DenormalizedBatch> search(Search search)
DenormalizedBatchDaosearch object.search in interface DenormalizedBatchDaosearch - the search object which provides the search parameters and pagination specification.DenormalizedBatchDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.