public abstract class TranscribingItemTypeDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements TranscribingItemTypeDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType.
TranscribingItemTypeTRANSFORM_NONE| Constructor and Description |
|---|
TranscribingItemTypeDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<TranscribingItemType> |
create(Collection<TranscribingItemType> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType and adds
from the passed in
entities collection |
Collection<?> |
create(int transform,
Collection<TranscribingItemType> entities)
Does the same thing as
TranscribingItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType) with an
additional flag called transform. |
Object |
create(int transform,
String label,
String name,
ObjectType objectType,
Status status,
TranscribingSide transcribingSide)
Does the same thing as
TranscribingItemTypeDao.create(java.lang.String,java.lang.String,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSide) with an
additional flag called transform. |
Object |
create(int transform,
String label,
String name,
String description,
Timestamp updateDate,
ObjectType objectType,
TranscribingSide transcribingSide,
Status status,
TranscribingSystem transcribingSystem)
Does the same thing as
TranscribingItemTypeDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSide,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSystem) with an
additional flag called transform. |
Object |
create(int transform,
TranscribingItemType transcribingItemType)
Does the same thing as
TranscribingItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType) with an
additional flag called transform. |
TranscribingItemType |
create(String label,
String name,
ObjectType objectType,
Status status,
TranscribingSide transcribingSide)
Creates a new
fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
TranscribingItemType |
create(String label,
String name,
String description,
Timestamp updateDate,
ObjectType objectType,
TranscribingSide transcribingSide,
Status status,
TranscribingSystem transcribingSystem)
Creates a new
fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType
instance from all attributes and
properties and adds it to the persistent store. |
TranscribingItemType |
create(TranscribingItemType transcribingItemType)
Creates an instance of fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType and adds it to the persistent store.
|
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
TranscribingItemType |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
TranscribingItemTypeDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<TranscribingItemType> |
loadAll()
Loads all entities of type
TranscribingItemType. |
Collection<?> |
loadAll(int transform)
Does the same thing as
TranscribingItemTypeDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
TranscribingItemTypeDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
TranscribingItemTypeDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<TranscribingItemType> entities)
Removes all entities in the given
entities |
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType having the given
identifier from the persistent store. |
void |
remove(TranscribingItemType transcribingItemType)
Removes the instance of fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType 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
TranscribingItemTypeDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<TranscribingItemType> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected TranscribingItemType |
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.transcribing.TranscribingItemType)
method. |
protected Object |
transformEntity(int transform,
TranscribingItemType 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.transcribing.TranscribingItemTypeDao, please note
that the TranscribingItemTypeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<TranscribingItemType> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(TranscribingItemType transcribingItemType)
Updates the
transcribingItemType instance in the persistent store. |
public Object load(int transform, Integer id)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.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 TranscribingItemTypeDaoid - identifier of the entity to loadTranscribingItemTypeDao.load(int, java.lang.Integer)public TranscribingItemType load(Integer id)
TranscribingItemTypeDaoload in interface TranscribingItemTypeDaoTranscribingItemTypeDao.load(java.lang.Integer)public Collection<TranscribingItemType> loadAll()
TranscribingItemTypeDaoTranscribingItemType.loadAll in interface TranscribingItemTypeDaoTranscribingItemTypeDao.loadAll()public Collection<?> loadAll(int transform)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.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 TranscribingItemTypeDaotransform - the flag indicating what transformation to use.TranscribingItemTypeDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.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 TranscribingItemTypeDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.TranscribingItemTypeDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.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 TranscribingItemTypeDaotransform - 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.TranscribingItemTypeDao.loadAll(int, int, int)public TranscribingItemType create(TranscribingItemType transcribingItemType)
TranscribingItemTypeDaocreate in interface TranscribingItemTypeDaoTranscribingItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType)public Object create(int transform, TranscribingItemType transcribingItemType)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType) 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 TranscribingItemTypeDaoTranscribingItemTypeDao.create(int transform, fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType)public Collection<TranscribingItemType> create(Collection<TranscribingItemType> entities)
TranscribingItemTypeDaoentities collectioncreate in interface TranscribingItemTypeDaoentities - the collection of fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType
instances to create.fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemTypeDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<TranscribingItemType> entities)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.create(fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType) 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 TranscribingItemTypeDaofr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemTypeDao#create(int, java.util.Collection) public TranscribingItemType create(String label, String name, String description, Timestamp updateDate, ObjectType objectType, TranscribingSide transcribingSide, Status status, TranscribingSystem transcribingSystem)
TranscribingItemTypeDao
Creates a new fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType
instance from all attributes and
properties and adds it to the persistent store.
create in interface TranscribingItemTypeDaoTranscribingItemTypeDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSide,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSystem)public Object create(int transform, String label, String name, String description, Timestamp updateDate, ObjectType objectType, TranscribingSide transcribingSide, Status status, TranscribingSystem transcribingSystem)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSide,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSystem) 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 TranscribingItemTypeDaoTranscribingItemTypeDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSide,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSystem)public TranscribingItemType create(String label, String name, ObjectType objectType, Status status, TranscribingSide transcribingSide)
TranscribingItemTypeDao
Creates a new fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
public Object create(int transform, String label, String name, ObjectType objectType, Status status, TranscribingSide transcribingSide)
TranscribingItemTypeDao
Does the same thing as TranscribingItemTypeDao.create(java.lang.String,java.lang.String,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSide) 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 TranscribingItemTypeDaoTranscribingItemTypeDao.create(int, java.lang.String,java.lang.String,fr.ifremer.adagio.core.dao.referential.ObjectType,fr.ifremer.adagio.core.dao.referential.Status,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingSide)public void update(TranscribingItemType transcribingItemType)
TranscribingItemTypeDaotranscribingItemType instance in the persistent store.update in interface TranscribingItemTypeDaoTranscribingItemTypeDao.update(fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType)public void update(Collection<TranscribingItemType> entities)
TranscribingItemTypeDaoentities collection in the persistent store.update in interface TranscribingItemTypeDaofr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemTypeDao#update(java.util.Collection) public void remove(TranscribingItemType transcribingItemType)
TranscribingItemTypeDaoremove in interface TranscribingItemTypeDaoTranscribingItemTypeDao.remove(fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType)public void remove(Integer id)
TranscribingItemTypeDaoidentifier from the persistent store.remove in interface TranscribingItemTypeDaoTranscribingItemTypeDao.remove(java.lang.Integer)public void remove(Collection<TranscribingItemType> entities)
TranscribingItemTypeDaoentities collection.remove in interface TranscribingItemTypeDaofr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemTypeDao#remove(java.util.Collection) protected Object transformEntity(int transform, TranscribingItemType entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemTypeDao, please note
that the TranscribingItemTypeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown TranscribingItemTypeDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in TranscribingItemTypeDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType)
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.transcribing.TranscribingItemTypeDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.transcribing.TranscribingItemType)protected TranscribingItemType 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)
TranscribingItemTypeDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface TranscribingItemTypeDaotransform - 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.TranscribingItemTypeDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
TranscribingItemTypeDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface TranscribingItemTypeDaopageNumber - 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.TranscribingItemTypeDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
TranscribingItemTypeDaoTranscribingItemTypeDao.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 TranscribingItemTypeDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.TranscribingItemTypeDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<TranscribingItemType> search(Search search)
TranscribingItemTypeDaosearch object.search in interface TranscribingItemTypeDaosearch - the search object which provides the search parameters and pagination specification.TranscribingItemTypeDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.