public abstract class DepthGradientDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements DepthGradientDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.DepthGradient.
DepthGradientTRANSFORM_NONE| Constructor and Description |
|---|
DepthGradientDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<DepthGradient> |
create(Collection<DepthGradient> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.DepthGradient and adds
from the passed in
entities collection |
DepthGradient |
create(DepthGradient depthGradient)
Creates an instance of fr.ifremer.adagio.core.dao.referential.DepthGradient and adds it to the persistent store.
|
Collection<?> |
create(int transform,
Collection<DepthGradient> entities)
Does the same thing as
DepthGradientDao.create(fr.ifremer.adagio.core.dao.referential.DepthGradient) with an
additional flag called transform. |
Object |
create(int transform,
DepthGradient depthGradient)
Does the same thing as
DepthGradientDao.create(fr.ifremer.adagio.core.dao.referential.DepthGradient) with an
additional flag called transform. |
Object |
create(int transform,
String description,
String name,
Short rankOrder,
Status status)
Does the same thing as
DepthGradientDao.create(java.lang.String,java.lang.String,java.lang.Short,fr.ifremer.adagio.core.dao.referential.Status) with an
additional flag called transform. |
Object |
create(int transform,
String name,
String description,
Short rankOrder,
Timestamp updateDate,
Status status)
Does the same thing as
DepthGradientDao.create(java.lang.String,java.lang.String,java.lang.Short,java.sql.Timestamp,fr.ifremer.adagio.core.dao.referential.Status) with an
additional flag called transform. |
DepthGradient |
create(String description,
String name,
Short rankOrder,
Status status)
Creates a new
fr.ifremer.adagio.core.dao.referential.DepthGradient
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
DepthGradient |
create(String name,
String description,
Short rankOrder,
Timestamp updateDate,
Status status)
Creates a new
fr.ifremer.adagio.core.dao.referential.DepthGradient
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. |
DepthGradient |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.referential.DepthGradient from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
DepthGradientDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<DepthGradient> |
loadAll()
Loads all entities of type
DepthGradient. |
Collection<?> |
loadAll(int transform)
Does the same thing as
DepthGradientDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
DepthGradientDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
DepthGradientDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<DepthGradient> entities)
Removes all entities in the given
entities |
void |
remove(DepthGradient depthGradient)
Removes the instance of fr.ifremer.adagio.core.dao.referential.DepthGradient from the persistent store.
|
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.referential.DepthGradient 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
DepthGradientDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<DepthGradient> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected DepthGradient |
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.DepthGradient)
method. |
protected Object |
transformEntity(int transform,
DepthGradient 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.DepthGradientDao, please note
that the DepthGradientDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<DepthGradient> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(DepthGradient depthGradient)
Updates the
depthGradient instance in the persistent store. |
public Object load(int transform, Integer id)
DepthGradientDao
Does the same thing as DepthGradientDao.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 DepthGradientDaoid - identifier of the entity to loadDepthGradientDao.load(int, java.lang.Integer)public DepthGradient load(Integer id)
DepthGradientDaoload in interface DepthGradientDaoDepthGradientDao.load(java.lang.Integer)public Collection<DepthGradient> loadAll()
DepthGradientDaoDepthGradient.loadAll in interface DepthGradientDaoDepthGradientDao.loadAll()public Collection<?> loadAll(int transform)
DepthGradientDao
Does the same thing as DepthGradientDao.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 DepthGradientDaotransform - the flag indicating what transformation to use.DepthGradientDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
DepthGradientDao
Does the same thing as DepthGradientDao.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 DepthGradientDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.DepthGradientDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
DepthGradientDao
Does the same thing as DepthGradientDao.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 DepthGradientDaotransform - 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.DepthGradientDao.loadAll(int, int, int)public DepthGradient create(DepthGradient depthGradient)
DepthGradientDaocreate in interface DepthGradientDaoDepthGradientDao.create(fr.ifremer.adagio.core.dao.referential.DepthGradient)public Object create(int transform, DepthGradient depthGradient)
DepthGradientDao
Does the same thing as DepthGradientDao.create(fr.ifremer.adagio.core.dao.referential.DepthGradient) 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 DepthGradientDaoDepthGradientDao.create(int transform, fr.ifremer.adagio.core.dao.referential.DepthGradient)public Collection<DepthGradient> create(Collection<DepthGradient> entities)
DepthGradientDaoentities collectioncreate in interface DepthGradientDaoentities - the collection of fr.ifremer.adagio.core.dao.referential.DepthGradient
instances to create.fr.ifremer.adagio.core.dao.referential.DepthGradientDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<DepthGradient> entities)
DepthGradientDao
Does the same thing as DepthGradientDao.create(fr.ifremer.adagio.core.dao.referential.DepthGradient) 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 DepthGradientDaofr.ifremer.adagio.core.dao.referential.DepthGradientDao#create(int, java.util.Collection) public DepthGradient create(String name, String description, Short rankOrder, Timestamp updateDate, Status status)
DepthGradientDao
Creates a new fr.ifremer.adagio.core.dao.referential.DepthGradient
instance from all attributes and
properties and adds it to the persistent store.
public Object create(int transform, String name, String description, Short rankOrder, Timestamp updateDate, Status status)
DepthGradientDao
Does the same thing as DepthGradientDao.create(java.lang.String,java.lang.String,java.lang.Short,java.sql.Timestamp,fr.ifremer.adagio.core.dao.referential.Status) 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.
public DepthGradient create(String description, String name, Short rankOrder, Status status)
DepthGradientDao
Creates a new fr.ifremer.adagio.core.dao.referential.DepthGradient
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create in interface DepthGradientDaoDepthGradientDao.create(java.lang.String,java.lang.String,java.lang.Short,fr.ifremer.adagio.core.dao.referential.Status)public Object create(int transform, String description, String name, Short rankOrder, Status status)
DepthGradientDao
Does the same thing as DepthGradientDao.create(java.lang.String,java.lang.String,java.lang.Short,fr.ifremer.adagio.core.dao.referential.Status) 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 DepthGradientDaoDepthGradientDao.create(int, java.lang.String,java.lang.String,java.lang.Short,fr.ifremer.adagio.core.dao.referential.Status)public void update(DepthGradient depthGradient)
DepthGradientDaodepthGradient instance in the persistent store.update in interface DepthGradientDaoDepthGradientDao.update(fr.ifremer.adagio.core.dao.referential.DepthGradient)public void update(Collection<DepthGradient> entities)
DepthGradientDaoentities collection in the persistent store.update in interface DepthGradientDaofr.ifremer.adagio.core.dao.referential.DepthGradientDao#update(java.util.Collection) public void remove(DepthGradient depthGradient)
DepthGradientDaoremove in interface DepthGradientDaoDepthGradientDao.remove(fr.ifremer.adagio.core.dao.referential.DepthGradient)public void remove(Integer id)
DepthGradientDaoidentifier from the persistent store.remove in interface DepthGradientDaoDepthGradientDao.remove(java.lang.Integer)public void remove(Collection<DepthGradient> entities)
DepthGradientDaoentities collection.remove in interface DepthGradientDaofr.ifremer.adagio.core.dao.referential.DepthGradientDao#remove(java.util.Collection) protected Object transformEntity(int transform, DepthGradient entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.DepthGradientDao, please note
that the DepthGradientDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown DepthGradientDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in DepthGradientDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.referential.DepthGradient)
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.DepthGradientDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.DepthGradient)protected DepthGradient 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)
DepthGradientDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface DepthGradientDaotransform - 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.DepthGradientDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
DepthGradientDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface DepthGradientDaopageNumber - 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.DepthGradientDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
DepthGradientDaoDepthGradientDao.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 DepthGradientDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.DepthGradientDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<DepthGradient> search(Search search)
DepthGradientDaosearch object.search in interface DepthGradientDaosearch - the search object which provides the search parameters and pagination specification.DepthGradientDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.