public abstract class BuyerTypeDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements BuyerTypeDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.referential.buyer.BuyerType.
BuyerTypeTRANSFORM_NONE| Constructor and Description |
|---|
BuyerTypeDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
BuyerType |
create(BuyerType buyerType)
Creates an instance of fr.ifremer.adagio.core.dao.referential.buyer.BuyerType and adds it to the persistent store.
|
Collection<BuyerType> |
create(Collection<BuyerType> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.referential.buyer.BuyerType and adds
from the passed in
entities collection |
Object |
create(int transform,
BuyerType buyerType)
Does the same thing as
BuyerTypeDao.create(fr.ifremer.adagio.core.dao.referential.buyer.BuyerType) with an
additional flag called transform. |
Collection<?> |
create(int transform,
Collection<BuyerType> entities)
Does the same thing as
BuyerTypeDao.create(fr.ifremer.adagio.core.dao.referential.buyer.BuyerType) with an
additional flag called transform. |
Object |
create(int transform,
String name)
Does the same thing as
BuyerTypeDao.create(java.lang.String) with an
additional flag called transform. |
Object |
create(int transform,
String name,
Collection<Buyer> buyers)
Does the same thing as
#create(java.lang.String,java.util.Collection with an
additional flag called transform. |
BuyerType |
create(String name)
Creates a new
fr.ifremer.adagio.core.dao.referential.buyer.BuyerType
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
BuyerType |
create(String name,
Collection<Buyer> buyers)
Creates a new
fr.ifremer.adagio.core.dao.referential.buyer.BuyerType
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. |
Object |
load(int transform,
Short id)
Does the same thing as
BuyerTypeDao.load(java.lang.Short) with an
additional flag called transform. |
BuyerType |
load(Short id)
Loads an instance of fr.ifremer.adagio.core.dao.referential.buyer.BuyerType from the persistent store.
|
Collection<BuyerType> |
loadAll()
Loads all entities of type
BuyerType. |
Collection<?> |
loadAll(int transform)
Does the same thing as
BuyerTypeDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
BuyerTypeDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
BuyerTypeDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(BuyerType buyerType)
Removes the instance of fr.ifremer.adagio.core.dao.referential.buyer.BuyerType from the persistent store.
|
void |
remove(Collection<BuyerType> entities)
Removes all entities in the given
entities |
void |
remove(Short id)
Removes the instance of fr.ifremer.adagio.core.dao.referential.buyer.BuyerType 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
BuyerTypeDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<BuyerType> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected BuyerType |
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.buyer.BuyerType)
method. |
protected Object |
transformEntity(int transform,
BuyerType 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.buyer.BuyerTypeDao, please note
that the BuyerTypeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(BuyerType buyerType)
Updates the
buyerType instance in the persistent store. |
void |
update(Collection<BuyerType> entities)
Updates all instances in the
entities collection in the persistent store. |
public Object load(int transform, Short id)
BuyerTypeDao
Does the same thing as BuyerTypeDao.load(java.lang.Short) 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 BuyerTypeDaoid - identifier of the entity to loadBuyerTypeDao.load(int, java.lang.Short)public BuyerType load(Short id)
BuyerTypeDaoload in interface BuyerTypeDaoBuyerTypeDao.load(java.lang.Short)public Collection<BuyerType> loadAll()
BuyerTypeDaoBuyerType.loadAll in interface BuyerTypeDaoBuyerTypeDao.loadAll()public Collection<?> loadAll(int transform)
BuyerTypeDao
Does the same thing as BuyerTypeDao.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 BuyerTypeDaotransform - the flag indicating what transformation to use.BuyerTypeDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
BuyerTypeDao
Does the same thing as BuyerTypeDao.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 BuyerTypeDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.BuyerTypeDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
BuyerTypeDao
Does the same thing as BuyerTypeDao.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 BuyerTypeDaotransform - 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.BuyerTypeDao.loadAll(int, int, int)public BuyerType create(BuyerType buyerType)
BuyerTypeDaocreate in interface BuyerTypeDaoBuyerTypeDao.create(fr.ifremer.adagio.core.dao.referential.buyer.BuyerType)public Object create(int transform, BuyerType buyerType)
BuyerTypeDao
Does the same thing as BuyerTypeDao.create(fr.ifremer.adagio.core.dao.referential.buyer.BuyerType) 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 BuyerTypeDaoBuyerTypeDao.create(int transform, fr.ifremer.adagio.core.dao.referential.buyer.BuyerType)public Collection<BuyerType> create(Collection<BuyerType> entities)
BuyerTypeDaoentities collectioncreate in interface BuyerTypeDaoentities - the collection of fr.ifremer.adagio.core.dao.referential.buyer.BuyerType
instances to create.fr.ifremer.adagio.core.dao.referential.buyer.BuyerTypeDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<BuyerType> entities)
BuyerTypeDao
Does the same thing as BuyerTypeDao.create(fr.ifremer.adagio.core.dao.referential.buyer.BuyerType) 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 BuyerTypeDaofr.ifremer.adagio.core.dao.referential.buyer.BuyerTypeDao#create(int, java.util.Collection) public BuyerType create(String name, Collection<Buyer> buyers)
BuyerTypeDao
Creates a new fr.ifremer.adagio.core.dao.referential.buyer.BuyerType
instance from all attributes and
properties and adds it to the persistent store.
create in interface BuyerTypeDaofr.ifremer.adagio.core.dao.referential.buyer.BuyerTypeDao#create(java.lang.String,java.util.Collection) public Object create(int transform, String name, Collection<Buyer> buyers)
BuyerTypeDao
Does the same thing as #create(java.lang.String,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 BuyerTypeDaofr.ifremer.adagio.core.dao.referential.buyer.BuyerTypeDao#create(int, java.lang.String,java.util.Collection) public BuyerType create(String name)
BuyerTypeDao
Creates a new fr.ifremer.adagio.core.dao.referential.buyer.BuyerType
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create in interface BuyerTypeDaoBuyerTypeDao.create(java.lang.String)public Object create(int transform, String name)
BuyerTypeDao
Does the same thing as BuyerTypeDao.create(java.lang.String) 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 BuyerTypeDaoBuyerTypeDao.create(int, java.lang.String)public void update(BuyerType buyerType)
BuyerTypeDaobuyerType instance in the persistent store.update in interface BuyerTypeDaoBuyerTypeDao.update(fr.ifremer.adagio.core.dao.referential.buyer.BuyerType)public void update(Collection<BuyerType> entities)
BuyerTypeDaoentities collection in the persistent store.update in interface BuyerTypeDaofr.ifremer.adagio.core.dao.referential.buyer.BuyerTypeDao#update(java.util.Collection) public void remove(BuyerType buyerType)
BuyerTypeDaoremove in interface BuyerTypeDaoBuyerTypeDao.remove(fr.ifremer.adagio.core.dao.referential.buyer.BuyerType)public void remove(Short id)
BuyerTypeDaoidentifier from the persistent store.remove in interface BuyerTypeDaoBuyerTypeDao.remove(java.lang.Short)public void remove(Collection<BuyerType> entities)
BuyerTypeDaoentities collection.remove in interface BuyerTypeDaofr.ifremer.adagio.core.dao.referential.buyer.BuyerTypeDao#remove(java.util.Collection) protected Object transformEntity(int transform, BuyerType entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.referential.buyer.BuyerTypeDao, please note
that the BuyerTypeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown BuyerTypeDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in BuyerTypeDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.referential.buyer.BuyerType)
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.buyer.BuyerTypeDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.referential.buyer.BuyerType)protected Principal getPrincipal()
principal if one has been set,
otherwise returns null.public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
BuyerTypeDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface BuyerTypeDaotransform - 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.BuyerTypeDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
BuyerTypeDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface BuyerTypeDaopageNumber - 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.BuyerTypeDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
BuyerTypeDaoBuyerTypeDao.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 BuyerTypeDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.BuyerTypeDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<BuyerType> search(Search search)
BuyerTypeDaosearch object.search in interface BuyerTypeDaosearch - the search object which provides the search parameters and pagination specification.BuyerTypeDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.