public abstract class LocationLineDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements LocationLineDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.location.LocationLine.
LocationLineTRANSFORM_NONE| Constructor and Description |
|---|
LocationLineDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<LocationLine> |
create(Collection<LocationLine> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.location.LocationLine and adds
from the passed in
entities collection |
Collection<?> |
create(int transform,
Collection<LocationLine> entities)
Does the same thing as
LocationLineDao.create(fr.ifremer.adagio.core.dao.referential.location.LocationLine) with an
additional flag called transform. |
Object |
create(int transform,
LocationClassification locationClassification,
LocationLevel locationLevel,
String name,
String position,
Status status)
Does the same thing as
LocationLineDao.create(fr.ifremer.adagio.core.dao.referential.location.LocationClassification,fr.ifremer.adagio.core.dao.referential.location.LocationLevel,java.lang.String,java.lang.String,fr.ifremer.adagio.core.dao.referential.Status) with an
additional flag called transform. |
Object |
create(int transform,
LocationLine locationLine)
Does the same thing as
LocationLineDao.create(fr.ifremer.adagio.core.dao.referential.location.LocationLine) with an
additional flag called transform. |
Object |
create(int transform,
String label,
String name,
Timestamp updateDate,
Float bathymetry,
Short utFormat,
Boolean daylightSavingTime,
LocationLevel locationLevel,
Status status,
LocationClassification locationClassification,
String position)
Does the same thing as
LocationLineDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,java.lang.Float,java.lang.Short,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.location.LocationLevel,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.location.LocationClassification,java.lang.String) with an
additional flag called transform. |
LocationLine |
create(LocationClassification locationClassification,
LocationLevel locationLevel,
String name,
String position,
Status status)
Creates a new
fr.ifremer.adagio.core.dao.referential.location.LocationLine
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
LocationLine |
create(LocationLine locationLine)
Creates an instance of fr.ifremer.adagio.core.dao.referential.location.LocationLine and adds it to the persistent store.
|
LocationLine |
create(String label,
String name,
Timestamp updateDate,
Float bathymetry,
Short utFormat,
Boolean daylightSavingTime,
LocationLevel locationLevel,
Status status,
LocationClassification locationClassification,
String position)
Creates a new
fr.ifremer.adagio.core.dao.referential.location.LocationLine
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. |
LocationLine |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.referential.location.LocationLine from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
LocationLineDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<LocationLine> |
loadAll()
Loads all entities of type
LocationLine. |
Collection<?> |
loadAll(int transform)
Does the same thing as
LocationLineDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
LocationLineDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
LocationLineDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<LocationLine> entities)
Removes all entities in the given
entities |
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.referential.location.LocationLine having the given
identifier from the persistent store. |
void |
remove(LocationLine locationLine)
Removes the instance of fr.ifremer.adagio.core.dao.referential.location.LocationLine 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
LocationLineDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<LocationLine> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected LocationLine |
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.location.LocationLine)
method. |
protected Object |
transformEntity(int transform,
LocationLine 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.location.LocationLineDao, please note
that the LocationLineDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<LocationLine> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(LocationLine locationLine)
Updates the
locationLine instance in the persistent store. |
public Object load(int transform, Integer id)
LocationLineDao
Does the same thing as LocationLineDao.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 LocationLineDaoid - identifier of the entity to loadLocationLineDao.load(int, java.lang.Integer)public LocationLine load(Integer id)
LocationLineDaoload in interface LocationLineDaoLocationLineDao.load(java.lang.Integer)public Collection<LocationLine> loadAll()
LocationLineDaoLocationLine.loadAll in interface LocationLineDaoLocationLineDao.loadAll()public Collection<?> loadAll(int transform)
LocationLineDao
Does the same thing as LocationLineDao.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 LocationLineDaotransform - the flag indicating what transformation to use.LocationLineDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
LocationLineDao
Does the same thing as LocationLineDao.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 LocationLineDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.LocationLineDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
LocationLineDao
Does the same thing as LocationLineDao.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 LocationLineDaotransform - 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.LocationLineDao.loadAll(int, int, int)public LocationLine create(LocationLine locationLine)
LocationLineDaocreate in interface LocationLineDaoLocationLineDao.create(fr.ifremer.adagio.core.dao.referential.location.LocationLine)public Object create(int transform, LocationLine locationLine)
LocationLineDao
Does the same thing as LocationLineDao.create(fr.ifremer.adagio.core.dao.referential.location.LocationLine) 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 LocationLineDaoLocationLineDao.create(int transform, fr.ifremer.adagio.core.dao.referential.location.LocationLine)public Collection<LocationLine> create(Collection<LocationLine> entities)
LocationLineDaoentities collectioncreate in interface LocationLineDaoentities - the collection of fr.ifremer.adagio.core.dao.referential.location.LocationLine
instances to create.fr.ifremer.adagio.core.dao.referential.location.LocationLineDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<LocationLine> entities)
LocationLineDao
Does the same thing as LocationLineDao.create(fr.ifremer.adagio.core.dao.referential.location.LocationLine) 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 LocationLineDaofr.ifremer.adagio.core.dao.referential.location.LocationLineDao#create(int, java.util.Collection) public LocationLine create(String label, String name, Timestamp updateDate, Float bathymetry, Short utFormat, Boolean daylightSavingTime, LocationLevel locationLevel, Status status, LocationClassification locationClassification, String position)
LocationLineDao
Creates a new fr.ifremer.adagio.core.dao.referential.location.LocationLine
instance from all attributes and
properties and adds it to the persistent store.
create in interface LocationLineDaoLocationLineDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,java.lang.Float,java.lang.Short,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.location.LocationLevel,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.location.LocationClassification,java.lang.String)public Object create(int transform, String label, String name, Timestamp updateDate, Float bathymetry, Short utFormat, Boolean daylightSavingTime, LocationLevel locationLevel, Status status, LocationClassification locationClassification, String position)
LocationLineDao
Does the same thing as LocationLineDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,java.lang.Float,java.lang.Short,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.location.LocationLevel,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.location.LocationClassification,java.lang.String) 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 LocationLineDaoLocationLineDao.create(int, java.lang.String,java.lang.String,java.sql.Timestamp,java.lang.Float,java.lang.Short,java.lang.Boolean,fr.ifremer.adagio.core.dao.referential.location.LocationLevel,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.location.LocationClassification,java.lang.String)public LocationLine create(LocationClassification locationClassification, LocationLevel locationLevel, String name, String position, Status status)
LocationLineDao
Creates a new fr.ifremer.adagio.core.dao.referential.location.LocationLine
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
public Object create(int transform, LocationClassification locationClassification, LocationLevel locationLevel, String name, String position, Status status)
LocationLineDao
Does the same thing as LocationLineDao.create(fr.ifremer.adagio.core.dao.referential.location.LocationClassification,fr.ifremer.adagio.core.dao.referential.location.LocationLevel,java.lang.String,java.lang.String,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 LocationLineDaoLocationLineDao.create(int, fr.ifremer.adagio.core.dao.referential.location.LocationClassification,fr.ifremer.adagio.core.dao.referential.location.LocationLevel,java.lang.String,java.lang.String,fr.ifremer.adagio.core.dao.referential.Status)public void update(LocationLine locationLine)
LocationLineDaolocationLine instance in the persistent store.update in interface LocationLineDaoLocationLineDao.update(fr.ifremer.adagio.core.dao.referential.location.LocationLine)public void update(Collection<LocationLine> entities)
LocationLineDaoentities collection in the persistent store.update in interface LocationLineDaofr.ifremer.adagio.core.dao.referential.location.LocationLineDao#update(java.util.Collection) public void remove(LocationLine locationLine)
LocationLineDaoremove in interface LocationLineDaoLocationLineDao.remove(fr.ifremer.adagio.core.dao.referential.location.LocationLine)public void remove(Integer id)
LocationLineDaoidentifier from the persistent store.remove in interface LocationLineDaoLocationLineDao.remove(java.lang.Integer)public void remove(Collection<LocationLine> entities)
LocationLineDaoentities collection.remove in interface LocationLineDaofr.ifremer.adagio.core.dao.referential.location.LocationLineDao#remove(java.util.Collection) protected Object transformEntity(int transform, LocationLine entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.location.LocationLineDao, please note
that the LocationLineDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown LocationLineDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in LocationLineDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.referential.location.LocationLine)
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.location.LocationLineDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.location.LocationLine)protected LocationLine 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)
LocationLineDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface LocationLineDaotransform - 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.LocationLineDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
LocationLineDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface LocationLineDaopageNumber - 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.LocationLineDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
LocationLineDaoLocationLineDao.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 LocationLineDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.LocationLineDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<LocationLine> search(Search search)
LocationLineDaosearch object.search in interface LocationLineDaosearch - the search object which provides the search parameters and pagination specification.LocationLineDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.