public abstract class PmfmDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements PmfmDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm.
PmfmTRANSFORM_NONE| Constructor and Description |
|---|
PmfmDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Pmfm |
create(AggregationLevel aggregationLevel,
Date creationDate,
Fraction fraction,
Matrix matrix,
Method method,
Parameter parameter,
Status status,
Unit unit)
Creates a new
fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Collection<Pmfm> |
create(Collection<Pmfm> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm and adds
from the passed in
entities collection |
Object |
create(int transform,
AggregationLevel aggregationLevel,
Date creationDate,
Fraction fraction,
Matrix matrix,
Method method,
Parameter parameter,
Status status,
Unit unit)
Does the same thing as
PmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.AggregationLevel,java.util.Date,fr.ifremer.adagio.core.dao.referential.pmfm.Fraction,fr.ifremer.adagio.core.dao.referential.pmfm.Matrix,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.pmfm.Unit) with an
additional flag called transform. |
Collection<?> |
create(int transform,
Collection<Pmfm> entities)
Does the same thing as
PmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm) with an
additional flag called transform. |
Pmfm |
create(Integer signifFiguresNumber,
Integer maximumNumberDecimals,
Float detectionThreshold,
Float minValue,
Float maxValue,
Float precision,
Float defaultValue,
Date creationDate,
Timestamp updateDate,
String description,
Unit unit,
Parameter parameter,
Collection<QualitativeValue> qualitativeValues,
Fraction fraction,
Status status,
Method method,
AggregationLevel aggregationLevel,
Matrix matrix)
Creates a new
fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm
instance from all attributes and
properties and adds it to the persistent store. |
Object |
create(int transform,
Integer signifFiguresNumber,
Integer maximumNumberDecimals,
Float detectionThreshold,
Float minValue,
Float maxValue,
Float precision,
Float defaultValue,
Date creationDate,
Timestamp updateDate,
String description,
Unit unit,
Parameter parameter,
Collection<QualitativeValue> qualitativeValues,
Fraction fraction,
Status status,
Method method,
AggregationLevel aggregationLevel,
Matrix matrix)
Does the same thing as
#create(java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.util.Date,java.sql.Timestamp,java.lang.String,fr.ifremer.adagio.core.dao.referential.pmfm.Unit,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,java.util.Collection with an
additional flag called transform. |
Object |
create(int transform,
Pmfm pmfm)
Does the same thing as
PmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm) with an
additional flag called transform. |
Pmfm |
create(Pmfm pmfm)
Creates an instance of fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm and adds it to the persistent store.
|
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
Pmfm |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
PmfmDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<Pmfm> |
loadAll()
Loads all entities of type
Pmfm. |
Collection<?> |
loadAll(int transform)
Does the same thing as
PmfmDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
PmfmDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
PmfmDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<Pmfm> entities)
Removes all entities in the given
entities |
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm having the given
identifier from the persistent store. |
void |
remove(Pmfm pmfm)
Removes the instance of fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm 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
PmfmDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<Pmfm> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected Pmfm |
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.pmfm.Pmfm)
method. |
protected Object |
transformEntity(int transform,
Pmfm 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.pmfm.PmfmDao, please note
that the PmfmDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<Pmfm> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(Pmfm pmfm)
Updates the
pmfm instance in the persistent store. |
public Object load(int transform, Integer id)
PmfmDao
Does the same thing as PmfmDao.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 PmfmDaoid - identifier of the entity to loadPmfmDao.load(int, java.lang.Integer)public Pmfm load(Integer id)
PmfmDaoload in interface PmfmDaoPmfmDao.load(java.lang.Integer)public Collection<Pmfm> loadAll()
PmfmDaoPmfm.loadAll in interface PmfmDaoPmfmDao.loadAll()public Collection<?> loadAll(int transform)
PmfmDao
Does the same thing as PmfmDao.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 PmfmDaotransform - the flag indicating what transformation to use.PmfmDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
PmfmDao
Does the same thing as PmfmDao.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 PmfmDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.PmfmDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
PmfmDao
Does the same thing as PmfmDao.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 PmfmDaotransform - 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.PmfmDao.loadAll(int, int, int)public Pmfm create(Pmfm pmfm)
PmfmDaocreate in interface PmfmDaoPmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm)public Object create(int transform, Pmfm pmfm)
PmfmDao
Does the same thing as PmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm) 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 PmfmDaoPmfmDao.create(int transform, fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm)public Collection<Pmfm> create(Collection<Pmfm> entities)
PmfmDaoentities collectionpublic Collection<?> create(int transform, Collection<Pmfm> entities)
PmfmDao
Does the same thing as PmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm) 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 Pmfm create(Integer signifFiguresNumber, Integer maximumNumberDecimals, Float detectionThreshold, Float minValue, Float maxValue, Float precision, Float defaultValue, Date creationDate, Timestamp updateDate, String description, Unit unit, Parameter parameter, Collection<QualitativeValue> qualitativeValues, Fraction fraction, Status status, Method method, AggregationLevel aggregationLevel, Matrix matrix)
PmfmDao
Creates a new fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm
instance from all attributes and
properties and adds it to the persistent store.
create in interface PmfmDaofr.ifremer.adagio.core.dao.referential.pmfm.PmfmDao#create(java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.util.Date,java.sql.Timestamp,java.lang.String,fr.ifremer.adagio.core.dao.referential.pmfm.Unit,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,java.util.Collection,fr.ifremer.adagio.core.dao.referential.pmfm.Fraction,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.pmfm.AggregationLevel,fr.ifremer.adagio.core.dao.referential.pmfm.Matrix) public Object create(int transform, Integer signifFiguresNumber, Integer maximumNumberDecimals, Float detectionThreshold, Float minValue, Float maxValue, Float precision, Float defaultValue, Date creationDate, Timestamp updateDate, String description, Unit unit, Parameter parameter, Collection<QualitativeValue> qualitativeValues, Fraction fraction, Status status, Method method, AggregationLevel aggregationLevel, Matrix matrix)
PmfmDao
Does the same thing as #create(java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.util.Date,java.sql.Timestamp,java.lang.String,fr.ifremer.adagio.core.dao.referential.pmfm.Unit,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,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 PmfmDaofr.ifremer.adagio.core.dao.referential.pmfm.PmfmDao#create(int, java.lang.Integer,java.lang.Integer,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.lang.Float,java.util.Date,java.sql.Timestamp,java.lang.String,fr.ifremer.adagio.core.dao.referential.pmfm.Unit,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,java.util.Collection,fr.ifremer.adagio.core.dao.referential.pmfm.Fraction,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.pmfm.AggregationLevel,fr.ifremer.adagio.core.dao.referential.pmfm.Matrix) public Pmfm create(AggregationLevel aggregationLevel, Date creationDate, Fraction fraction, Matrix matrix, Method method, Parameter parameter, Status status, Unit unit)
PmfmDao
Creates a new fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create in interface PmfmDaoPmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.AggregationLevel,java.util.Date,fr.ifremer.adagio.core.dao.referential.pmfm.Fraction,fr.ifremer.adagio.core.dao.referential.pmfm.Matrix,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.pmfm.Unit)public Object create(int transform, AggregationLevel aggregationLevel, Date creationDate, Fraction fraction, Matrix matrix, Method method, Parameter parameter, Status status, Unit unit)
PmfmDao
Does the same thing as PmfmDao.create(fr.ifremer.adagio.core.dao.referential.pmfm.AggregationLevel,java.util.Date,fr.ifremer.adagio.core.dao.referential.pmfm.Fraction,fr.ifremer.adagio.core.dao.referential.pmfm.Matrix,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.pmfm.Unit) 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 PmfmDaoPmfmDao.create(int, fr.ifremer.adagio.core.dao.referential.pmfm.AggregationLevel,java.util.Date,fr.ifremer.adagio.core.dao.referential.pmfm.Fraction,fr.ifremer.adagio.core.dao.referential.pmfm.Matrix,fr.ifremer.adagio.core.dao.referential.pmfm.Method,fr.ifremer.adagio.core.dao.referential.pmfm.Parameter,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.pmfm.Unit)public void update(Pmfm pmfm)
PmfmDaopmfm instance in the persistent store.update in interface PmfmDaoPmfmDao.update(fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm)public void update(Collection<Pmfm> entities)
PmfmDaoentities collection in the persistent store.public void remove(Pmfm pmfm)
PmfmDaoremove in interface PmfmDaoPmfmDao.remove(fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm)public void remove(Integer id)
PmfmDaoidentifier from the persistent store.remove in interface PmfmDaoPmfmDao.remove(java.lang.Integer)public void remove(Collection<Pmfm> entities)
PmfmDaoentities collection.protected Object transformEntity(int transform, Pmfm entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.pmfm.PmfmDao, please note
that the PmfmDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown PmfmDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in PmfmDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm)
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.pmfm.PmfmDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.pmfm.Pmfm)protected Principal getPrincipal()
principal if one has been set,
otherwise returns null.public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
PmfmDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface PmfmDaotransform - 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.PmfmDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
PmfmDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface PmfmDaopageNumber - 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.PmfmDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
PmfmDaoPmfmDao.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 PmfmDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.PmfmDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<Pmfm> search(Search search)
PmfmDaosearch object.search in interface PmfmDaosearch - the search object which provides the search parameters and pagination specification.PmfmDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.