public abstract class SpatialItemTypeDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements SpatialItemTypeDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType.
SpatialItemTypeTRANSFORM_NONE| Constructor and Description |
|---|
SpatialItemTypeDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<SpatialItemType> |
create(Collection<SpatialItemType> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType and adds
from the passed in
entities collection |
Collection<?> |
create(int transform,
Collection<SpatialItemType> entities)
Does the same thing as
SpatialItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType) with an
additional flag called transform. |
Object |
create(int transform,
SpatialItemType spatialItemType)
Does the same thing as
SpatialItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType) with an
additional flag called transform. |
Object |
create(int transform,
String name,
ObjectType objectType,
Status status)
Does the same thing as
SpatialItemTypeDao.create(java.lang.String,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.Status) with an
additional flag called transform. |
Object |
create(int transform,
String name,
String description,
Timestamp updateDate,
Collection<SpatialItem> spatialItems,
ObjectType objectType,
Status status)
Does the same thing as
#create(java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection with an
additional flag called transform. |
SpatialItemType |
create(SpatialItemType spatialItemType)
Creates an instance of fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType and adds it to the persistent store.
|
SpatialItemType |
create(String name,
ObjectType objectType,
Status status)
Creates a new
fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
SpatialItemType |
create(String name,
String description,
Timestamp updateDate,
Collection<SpatialItem> spatialItems,
ObjectType objectType,
Status status)
Creates a new
fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType
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. |
SpatialItemType |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
SpatialItemTypeDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<SpatialItemType> |
loadAll()
Loads all entities of type
SpatialItemType. |
Collection<?> |
loadAll(int transform)
Does the same thing as
SpatialItemTypeDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
SpatialItemTypeDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
SpatialItemTypeDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<SpatialItemType> entities)
Removes all entities in the given
entities |
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType having the given
identifier from the persistent store. |
void |
remove(SpatialItemType spatialItemType)
Removes the instance of fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType 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
SpatialItemTypeDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<SpatialItemType> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected SpatialItemType |
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.spatial.SpatialItemType)
method. |
protected Object |
transformEntity(int transform,
SpatialItemType 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.spatial.SpatialItemTypeDao, please note
that the SpatialItemTypeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<SpatialItemType> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(SpatialItemType spatialItemType)
Updates the
spatialItemType instance in the persistent store. |
public Object load(int transform, Integer id)
SpatialItemTypeDao
Does the same thing as SpatialItemTypeDao.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 SpatialItemTypeDaoid - identifier of the entity to loadSpatialItemTypeDao.load(int, java.lang.Integer)public SpatialItemType load(Integer id)
SpatialItemTypeDaoload in interface SpatialItemTypeDaoSpatialItemTypeDao.load(java.lang.Integer)public Collection<SpatialItemType> loadAll()
SpatialItemTypeDaoSpatialItemType.loadAll in interface SpatialItemTypeDaoSpatialItemTypeDao.loadAll()public Collection<?> loadAll(int transform)
SpatialItemTypeDao
Does the same thing as SpatialItemTypeDao.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 SpatialItemTypeDaotransform - the flag indicating what transformation to use.SpatialItemTypeDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
SpatialItemTypeDao
Does the same thing as SpatialItemTypeDao.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 SpatialItemTypeDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.SpatialItemTypeDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
SpatialItemTypeDao
Does the same thing as SpatialItemTypeDao.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 SpatialItemTypeDaotransform - 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.SpatialItemTypeDao.loadAll(int, int, int)public SpatialItemType create(SpatialItemType spatialItemType)
SpatialItemTypeDaocreate in interface SpatialItemTypeDaoSpatialItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType)public Object create(int transform, SpatialItemType spatialItemType)
SpatialItemTypeDao
Does the same thing as SpatialItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType) 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 SpatialItemTypeDaoSpatialItemTypeDao.create(int transform, fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType)public Collection<SpatialItemType> create(Collection<SpatialItemType> entities)
SpatialItemTypeDaoentities collectioncreate in interface SpatialItemTypeDaoentities - the collection of fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType
instances to create.fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemTypeDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<SpatialItemType> entities)
SpatialItemTypeDao
Does the same thing as SpatialItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType) 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 SpatialItemTypeDaofr.ifremer.adagio.core.dao.referential.spatial.SpatialItemTypeDao#create(int, java.util.Collection) public SpatialItemType create(String name, String description, Timestamp updateDate, Collection<SpatialItem> spatialItems, ObjectType objectType, Status status)
SpatialItemTypeDao
Creates a new fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType
instance from all attributes and
properties and adds it to the persistent store.
create in interface SpatialItemTypeDaofr.ifremer.adagio.core.dao.referential.spatial.SpatialItemTypeDao#create(java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.Status) public Object create(int transform, String name, String description, Timestamp updateDate, Collection<SpatialItem> spatialItems, ObjectType objectType, Status status)
SpatialItemTypeDao
Does the same thing as #create(java.lang.String,java.lang.String,java.sql.Timestamp,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 SpatialItemTypeDaofr.ifremer.adagio.core.dao.referential.spatial.SpatialItemTypeDao#create(int, java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.Status) public SpatialItemType create(String name, ObjectType objectType, Status status)
SpatialItemTypeDao
Creates a new fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
public Object create(int transform, String name, ObjectType objectType, Status status)
SpatialItemTypeDao
Does the same thing as SpatialItemTypeDao.create(java.lang.String,fr.ifremer.adagio.core.dao.referential.ObjectType,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.
public void update(SpatialItemType spatialItemType)
SpatialItemTypeDaospatialItemType instance in the persistent store.update in interface SpatialItemTypeDaoSpatialItemTypeDao.update(fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType)public void update(Collection<SpatialItemType> entities)
SpatialItemTypeDaoentities collection in the persistent store.update in interface SpatialItemTypeDaofr.ifremer.adagio.core.dao.referential.spatial.SpatialItemTypeDao#update(java.util.Collection) public void remove(SpatialItemType spatialItemType)
SpatialItemTypeDaoremove in interface SpatialItemTypeDaoSpatialItemTypeDao.remove(fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType)public void remove(Integer id)
SpatialItemTypeDaoidentifier from the persistent store.remove in interface SpatialItemTypeDaoSpatialItemTypeDao.remove(java.lang.Integer)public void remove(Collection<SpatialItemType> entities)
SpatialItemTypeDaoentities collection.remove in interface SpatialItemTypeDaofr.ifremer.adagio.core.dao.referential.spatial.SpatialItemTypeDao#remove(java.util.Collection) protected Object transformEntity(int transform, SpatialItemType entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemTypeDao, please note
that the SpatialItemTypeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown SpatialItemTypeDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in SpatialItemTypeDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType)
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.spatial.SpatialItemTypeDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.spatial.SpatialItemType)protected SpatialItemType 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)
SpatialItemTypeDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface SpatialItemTypeDaotransform - 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.SpatialItemTypeDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
SpatialItemTypeDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface SpatialItemTypeDaopageNumber - 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.SpatialItemTypeDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
SpatialItemTypeDaoSpatialItemTypeDao.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 SpatialItemTypeDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.SpatialItemTypeDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<SpatialItemType> search(Search search)
SpatialItemTypeDaosearch object.search in interface SpatialItemTypeDaosearch - the search object which provides the search parameters and pagination specification.SpatialItemTypeDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.