|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate3.support.HibernateDaoSupport
fr.ifremer.allegro.referential.SaleTypeDaoBase
public abstract class SaleTypeDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.SaleType
.
SaleType
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.SaleTypeDao |
---|
TRANSFORM_CLUSTERSALETYPE, TRANSFORM_NONE, TRANSFORM_REMOTESALETYPEFULLVO, TRANSFORM_REMOTESALETYPENATURALID |
Constructor Summary | |
---|---|
SaleTypeDaoBase()
|
Method Summary | |
---|---|
void |
clusterSaleTypeToEntity(ClusterSaleType source,
SaleType target,
boolean copyIfNull)
Copies the fields of ClusterSaleType to the specified entity. |
void |
clusterSaleTypeToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterSaleType to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.SaleType and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as SaleTypeDao.create(fr.ifremer.allegro.referential.SaleType) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
SaleType saleType)
Does the same thing as SaleTypeDao.create(fr.ifremer.allegro.referential.SaleType) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name,
Status status)
Does the same thing as SaleTypeDao.create(java.lang.String,fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
SaleType |
create(SaleType saleType)
Creates an instance of fr.ifremer.allegro.referential.SaleType and adds it to the persistent store. |
SaleType |
create(java.lang.String name,
Status status)
Creates a new fr.ifremer.allegro.referential.SaleType
instance from all attributes and
properties and adds it to the persistent store. |
SaleType |
createFromClusterSaleType(ClusterSaleType clusterSaleType)
|
SaleType |
findSaleTypeById(java.lang.Integer id)
|
java.lang.Object |
findSaleTypeById(int transform,
java.lang.Integer id)
Does the same thing as SaleTypeDao.findSaleTypeById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findSaleTypeById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SaleTypeDao.findSaleTypeById(int, java.lang.Integer) with an
additional argument called queryString . |
SaleType |
findSaleTypeById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SaleTypeDao.findSaleTypeById(java.lang.Integer) with an
additional argument called queryString . |
SaleType |
findSaleTypeByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findSaleTypeByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as SaleTypeDao.findSaleTypeByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findSaleTypeByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SaleTypeDao.findSaleTypeByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
SaleType |
findSaleTypeByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SaleTypeDao.findSaleTypeByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findSaleTypeByStatus(int transform,
int pageNumber,
int pageSize,
Status status)
Does the same thing as SaleTypeDao.findSaleTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSaleTypeByStatus(int pageNumber,
int pageSize,
Status status)
Does the same thing as SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSaleTypeByStatus(int transform,
Status status)
Does the same thing as SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.util.Collection |
findSaleTypeByStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as SaleTypeDao.findSaleTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSaleTypeByStatus(int transform,
java.lang.String queryString,
Status status)
Does the same thing as SaleTypeDao.findSaleTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
java.util.Collection |
findSaleTypeByStatus(Status status)
|
java.util.Collection |
findSaleTypeByStatus(java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as SaleTypeDao.findSaleTypeByStatus(String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSaleTypeByStatus(java.lang.String queryString,
Status status)
Does the same thing as SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
ClusterSaleType[] |
getAllClusterSaleType(java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllSaleType()
|
java.util.Collection |
getAllSaleType(int transform)
Does the same thing as SaleTypeDao.getAllSaleType() with an
additional flag called transform . |
java.util.Collection |
getAllSaleType(int pageNumber,
int pageSize)
Does the same thing as SaleTypeDao.getAllSaleType() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSaleType(int transform,
int pageNumber,
int pageSize)
Does the same thing as SaleTypeDao.getAllSaleType(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSaleType(int transform,
java.lang.String queryString)
Does the same thing as SaleTypeDao.getAllSaleType(int) with an
additional argument called queryString . |
java.util.Collection |
getAllSaleType(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as SaleTypeDao.getAllSaleType(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSaleType(java.lang.String queryString)
Does the same thing as SaleTypeDao.getAllSaleType() with an
additional argument called queryString . |
java.util.Collection |
getAllSaleType(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as SaleTypeDao.getAllSaleType(String) with an
additional two arguments called pageNumber and pageSize . |
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected StatusDao |
getStatusDao()
Gets the reference to statusDao . |
protected abstract SaleType |
handleCreateFromClusterSaleType(ClusterSaleType clusterSaleType)
Performs the core logic for createFromClusterSaleType(fr.ifremer.allegro.referential.generic.cluster.ClusterSaleType) |
protected abstract ClusterSaleType[] |
handleGetAllClusterSaleType(java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
Performs the core logic for getAllClusterSaleType(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
SaleType |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.SaleType from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as SaleTypeDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type SaleType . |
java.util.Collection |
loadAll(int transform)
Does the same thing as SaleTypeDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as SaleTypeDao.loadAll() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as SaleTypeDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteSaleTypeFullVOToEntity(RemoteSaleTypeFullVO source,
SaleType target,
boolean copyIfNull)
Copies the fields of RemoteSaleTypeFullVO to the specified entity. |
void |
remoteSaleTypeFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteSaleTypeFullVO to this
DAO's entity. |
void |
remoteSaleTypeNaturalIdToEntity(RemoteSaleTypeNaturalId source,
SaleType target,
boolean copyIfNull)
Copies the fields of RemoteSaleTypeNaturalId to the specified entity. |
void |
remoteSaleTypeNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteSaleTypeNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(java.lang.Integer id)
Removes the instance of fr.ifremer.allegro.referential.SaleType having the given identifier from the persistent store. |
void |
remove(SaleType saleType)
Removes the instance of fr.ifremer.allegro.referential.SaleType from the persistent store. |
PaginationResult |
search(int transform,
int pageNumber,
int pageSize,
Search search)
Does the same thing as {@link #search(int, fr.ifremer.allegro.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.allegro.Search) but with an additional two flags called pageNumber and pageSize . |
java.util.Set |
search(int transform,
Search search)
Does the same thing as SaleTypeDao.search(fr.ifremer.allegro.Search) but with an
additional flag called transform . |
java.util.Set |
search(Search search)
Performs a search using the parameters specified in the given search object. |
void |
setStatusDao(StatusDao statusDao)
Sets the reference to statusDao . |
protected ClusterSaleType |
toClusterSaleType(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterSaleType |
toClusterSaleType(SaleType entity)
Converts this DAO's entity to an object of type ClusterSaleType . |
void |
toClusterSaleType(SaleType source,
ClusterSaleType target)
Copies the fields of the specified entity to the target value object. |
ClusterSaleType[] |
toClusterSaleTypeArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterSaleType . |
void |
toClusterSaleTypeCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterSaleType . |
protected SaleType |
toEntity(java.lang.Object[] row)
|
protected RemoteSaleTypeFullVO |
toRemoteSaleTypeFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteSaleTypeFullVO |
toRemoteSaleTypeFullVO(SaleType entity)
Converts this DAO's entity to an object of type RemoteSaleTypeFullVO . |
void |
toRemoteSaleTypeFullVO(SaleType source,
RemoteSaleTypeFullVO target)
Copies the fields of the specified entity to the target value object. |
RemoteSaleTypeFullVO[] |
toRemoteSaleTypeFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteSaleTypeFullVO . |
void |
toRemoteSaleTypeFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteSaleTypeFullVO . |
protected RemoteSaleTypeNaturalId |
toRemoteSaleTypeNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteSaleTypeNaturalId |
toRemoteSaleTypeNaturalId(SaleType entity)
Converts this DAO's entity to an object of type RemoteSaleTypeNaturalId . |
void |
toRemoteSaleTypeNaturalId(SaleType source,
RemoteSaleTypeNaturalId target)
Copies the fields of the specified entity to the target value object. |
RemoteSaleTypeNaturalId[] |
toRemoteSaleTypeNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteSaleTypeNaturalId . |
void |
toRemoteSaleTypeNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteSaleTypeNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.SaleType)
method. |
protected java.lang.Object |
transformEntity(int transform,
SaleType 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.allegro.referential.SaleTypeDao , please note
that the SaleTypeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store. |
void |
update(SaleType saleType)
Updates the saleType instance in the persistent store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.ifremer.allegro.referential.SaleTypeDao |
---|
clusterSaleTypeToEntity, remoteSaleTypeFullVOToEntity, remoteSaleTypeNaturalIdToEntity |
Constructor Detail |
---|
public SaleTypeDaoBase()
Method Detail |
---|
public void setStatusDao(StatusDao statusDao)
statusDao
.
protected StatusDao getStatusDao()
statusDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
SaleTypeDao
Does the same thing as SaleTypeDao.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 SaleTypeDao
id
- identifier of the entity to load
SaleTypeDao.load(int, java.lang.Integer)
public SaleType load(java.lang.Integer id)
SaleTypeDao
load
in interface SaleTypeDao
SaleTypeDao.load(java.lang.Integer)
public java.util.Collection loadAll()
SaleTypeDao
SaleType
.
loadAll
in interface SaleTypeDao
SaleTypeDao.loadAll()
public java.util.Collection loadAll(int transform)
SaleTypeDao
Does the same thing as SaleTypeDao.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 SaleTypeDao
transform
- the flag indicating what transformation to use.
SaleTypeDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
SaleTypeDao
Does the same thing as SaleTypeDao.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 SaleTypeDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
SaleTypeDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
SaleTypeDao
Does the same thing as SaleTypeDao.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 SaleTypeDao
transform
- 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.
SaleTypeDao.loadAll(int, int, int)
public SaleType create(SaleType saleType)
SaleTypeDao
create
in interface SaleTypeDao
SaleTypeDao.create(fr.ifremer.allegro.referential.SaleType)
public java.lang.Object create(int transform, SaleType saleType)
SaleTypeDao
Does the same thing as SaleTypeDao.create(fr.ifremer.allegro.referential.SaleType)
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 SaleTypeDao
SaleTypeDao.create(int transform, fr.ifremer.allegro.referential.SaleType)
public java.util.Collection create(java.util.Collection entities)
SaleTypeDao
entities
collection
create
in interface SaleTypeDao
entities
- the collection of fr.ifremer.allegro.referential.SaleType
instances to create.
SaleTypeDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
SaleTypeDao
Does the same thing as SaleTypeDao.create(fr.ifremer.allegro.referential.SaleType)
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 SaleTypeDao
SaleTypeDao.create(int, java.util.Collection)
public SaleType create(java.lang.String name, Status status)
SaleTypeDao
Creates a new fr.ifremer.allegro.referential.SaleType
instance from all attributes and
properties and adds it to the persistent store.
create
in interface SaleTypeDao
SaleTypeDao.create(java.lang.String,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, java.lang.String name, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.create(java.lang.String,fr.ifremer.allegro.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.
create
in interface SaleTypeDao
SaleTypeDao.create(int, java.lang.String,fr.ifremer.allegro.referential.Status)
public void update(SaleType saleType)
SaleTypeDao
saleType
instance in the persistent store.
update
in interface SaleTypeDao
SaleTypeDao.update(fr.ifremer.allegro.referential.SaleType)
public void update(java.util.Collection entities)
SaleTypeDao
entities
collection in the persistent store.
update
in interface SaleTypeDao
SaleTypeDao.update(java.util.Collection)
public void remove(SaleType saleType)
SaleTypeDao
remove
in interface SaleTypeDao
SaleTypeDao.remove(fr.ifremer.allegro.referential.SaleType)
public void remove(java.lang.Integer id)
SaleTypeDao
identifier
from the persistent store.
remove
in interface SaleTypeDao
SaleTypeDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
SaleTypeDao
entities collection.
- Specified by:
remove
in interface SaleTypeDao
- See Also:
SaleTypeDao.remove(java.util.Collection)
public java.util.Collection getAllSaleType()
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType()
public java.util.Collection getAllSaleType(int transform)
SaleTypeDao
Does the same thing as SaleTypeDao.getAllSaleType()
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 finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType(int)
public java.util.Collection getAllSaleType(java.lang.String queryString)
SaleTypeDao
Does the same thing as SaleTypeDao.getAllSaleType()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.getAllSaleType()
.
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType(java.lang.String)
public java.util.Collection getAllSaleType(int pageNumber, int pageSize)
SaleTypeDao
Does the same thing as SaleTypeDao.getAllSaleType()
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.
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType(int, int)
public java.util.Collection getAllSaleType(java.lang.String queryString, int pageNumber, int pageSize)
SaleTypeDao
Does the same thing as SaleTypeDao.getAllSaleType(String)
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.
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType(String, int, int)
public java.util.Collection getAllSaleType(int transform, java.lang.String queryString)
SaleTypeDao
Does the same thing as SaleTypeDao.getAllSaleType(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.getAllSaleType(int)
.
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType(int, String)
public java.util.Collection getAllSaleType(int transform, int pageNumber, int pageSize)
SaleTypeDao
Does the same thing as SaleTypeDao.getAllSaleType(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.
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType(int, int, int)
public java.util.Collection getAllSaleType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
SaleTypeDao
Does the same thing as SaleTypeDao.getAllSaleType(int, String)
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.
getAllSaleType
in interface SaleTypeDao
SaleTypeDao.getAllSaleType(int, java.lang.String, int, int)
public SaleType findSaleTypeById(java.lang.Integer id)
findSaleTypeById
in interface SaleTypeDao
SaleTypeDao.findSaleTypeById(java.lang.Integer)
public java.lang.Object findSaleTypeById(int transform, java.lang.Integer id)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeById(java.lang.Integer)
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 finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
findSaleTypeById
in interface SaleTypeDao
SaleTypeDao.findSaleTypeById(int, java.lang.Integer)
public SaleType findSaleTypeById(java.lang.String queryString, java.lang.Integer id)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.findSaleTypeById(java.lang.Integer)
.
findSaleTypeById
in interface SaleTypeDao
SaleTypeDao.findSaleTypeById(java.lang.String, java.lang.Integer)
public java.lang.Object findSaleTypeById(int transform, java.lang.String queryString, java.lang.Integer id)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.findSaleTypeById(int, java.lang.Integer id)
.
findSaleTypeById
in interface SaleTypeDao
SaleTypeDao.findSaleTypeById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findSaleTypeByStatus(Status status)
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status)
public java.util.Collection findSaleTypeByStatus(int transform, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status)
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 finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findSaleTypeByStatus(java.lang.String queryString, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status)
.
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findSaleTypeByStatus(int pageNumber, int pageSize, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByStatus(fr.ifremer.allegro.referential.Status)
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.
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findSaleTypeByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByStatus(String, fr.ifremer.allegro.referential.Status)
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.
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findSaleTypeByStatus(int transform, java.lang.String queryString, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByStatus(int, fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.findSaleTypeByStatus(int, fr.ifremer.allegro.referential.Status status)
.
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(int, String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findSaleTypeByStatus(int transform, int pageNumber, int pageSize, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByStatus(int, fr.ifremer.allegro.referential.Status)
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.
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(int, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findSaleTypeByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByStatus(int, String, fr.ifremer.allegro.referential.Status)
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.
findSaleTypeByStatus
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)
public SaleType findSaleTypeByNaturalId(java.lang.Integer id)
findSaleTypeByNaturalId
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByNaturalId(java.lang.Integer)
public java.lang.Object findSaleTypeByNaturalId(int transform, java.lang.Integer id)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByNaturalId(java.lang.Integer)
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 finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
findSaleTypeByNaturalId
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByNaturalId(int, java.lang.Integer)
public SaleType findSaleTypeByNaturalId(java.lang.String queryString, java.lang.Integer id)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.findSaleTypeByNaturalId(java.lang.Integer)
.
findSaleTypeByNaturalId
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findSaleTypeByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
SaleTypeDao
Does the same thing as SaleTypeDao.findSaleTypeByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SaleTypeDao.findSaleTypeByNaturalId(int, java.lang.Integer id)
.
findSaleTypeByNaturalId
in interface SaleTypeDao
SaleTypeDao.findSaleTypeByNaturalId(int, java.lang.String, java.lang.Integer)
public SaleType createFromClusterSaleType(ClusterSaleType clusterSaleType)
createFromClusterSaleType
in interface SaleTypeDao
SaleTypeDao.createFromClusterSaleType(fr.ifremer.allegro.referential.generic.cluster.ClusterSaleType)
protected abstract SaleType handleCreateFromClusterSaleType(ClusterSaleType clusterSaleType) throws java.lang.Exception
createFromClusterSaleType(fr.ifremer.allegro.referential.generic.cluster.ClusterSaleType)
java.lang.Exception
public ClusterSaleType[] getAllClusterSaleType(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterSaleType
in interface SaleTypeDao
SaleTypeDao.getAllClusterSaleType(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterSaleType[] handleGetAllClusterSaleType(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterSaleType(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
java.lang.Exception
protected java.lang.Object transformEntity(int transform, SaleType entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.SaleTypeDao
, please note
that the SaleTypeDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
SaleType
- SaleTypeDao.TRANSFORM_NONE
RemoteSaleTypeFullVO
- TRANSFORM_REMOTESALETYPEFULLVO
RemoteSaleTypeNaturalId
- TRANSFORM_REMOTESALETYPENATURALID
ClusterSaleType
- TRANSFORM_CLUSTERSALETYPE
SaleTypeDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in SaleTypeDao
entity
- an entity that was found
transformEntities(int,java.util.Collection)
protected void transformEntities(int transform, java.util.Collection entities)
transformEntity(int,fr.ifremer.allegro.referential.SaleType)
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.allegro.referential.SaleTypeDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.SaleType)
protected SaleType toEntity(java.lang.Object[] row)
public final void toRemoteSaleTypeFullVOCollection(java.util.Collection entities)
SaleTypeDao
RemoteSaleTypeFullVO
.
toRemoteSaleTypeFullVOCollection
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeFullVOCollection(java.util.Collection)
public final RemoteSaleTypeFullVO[] toRemoteSaleTypeFullVOArray(java.util.Collection entities)
SaleTypeDao
RemoteSaleTypeFullVO
.
toRemoteSaleTypeFullVOArray
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeFullVOArray(java.util.Collection)
protected RemoteSaleTypeFullVO toRemoteSaleTypeFullVO(java.lang.Object[] row)
SaleTypeDaoImpl
class if you intend to use reporting queries.
SaleTypeDao.toRemoteSaleTypeFullVO(fr.ifremer.allegro.referential.SaleType)
public final void remoteSaleTypeFullVOToEntityCollection(java.util.Collection instances)
SaleTypeDao
RemoteSaleTypeFullVO
to this
DAO's entity.
remoteSaleTypeFullVOToEntityCollection
in interface SaleTypeDao
SaleTypeDao.remoteSaleTypeFullVOToEntityCollection(java.util.Collection)
public void toRemoteSaleTypeFullVO(SaleType source, RemoteSaleTypeFullVO target)
SaleTypeDao
toRemoteSaleTypeFullVO
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeFullVO(fr.ifremer.allegro.referential.SaleType, fr.ifremer.allegro.referential.generic.vo.RemoteSaleTypeFullVO)
public RemoteSaleTypeFullVO toRemoteSaleTypeFullVO(SaleType entity)
SaleTypeDao
RemoteSaleTypeFullVO
.
toRemoteSaleTypeFullVO
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeFullVO(fr.ifremer.allegro.referential.SaleType)
public void remoteSaleTypeFullVOToEntity(RemoteSaleTypeFullVO source, SaleType target, boolean copyIfNull)
SaleTypeDao
RemoteSaleTypeFullVO
to the specified entity.
remoteSaleTypeFullVOToEntity
in interface SaleTypeDao
copyIfNull
- If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE,
it will be copied regardless of its value.fr.ifremer.allegro.referential.SaleTypeDao#remoteSaleTypeFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteSaleTypeFullVO, fr.ifremer.allegro.referential.SaleType)
public final void toRemoteSaleTypeNaturalIdCollection(java.util.Collection entities)
SaleTypeDao
RemoteSaleTypeNaturalId
.
toRemoteSaleTypeNaturalIdCollection
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeNaturalIdCollection(java.util.Collection)
public final RemoteSaleTypeNaturalId[] toRemoteSaleTypeNaturalIdArray(java.util.Collection entities)
SaleTypeDao
RemoteSaleTypeNaturalId
.
toRemoteSaleTypeNaturalIdArray
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeNaturalIdArray(java.util.Collection)
protected RemoteSaleTypeNaturalId toRemoteSaleTypeNaturalId(java.lang.Object[] row)
SaleTypeDaoImpl
class if you intend to use reporting queries.
SaleTypeDao.toRemoteSaleTypeNaturalId(fr.ifremer.allegro.referential.SaleType)
public final void remoteSaleTypeNaturalIdToEntityCollection(java.util.Collection instances)
SaleTypeDao
RemoteSaleTypeNaturalId
to this
DAO's entity.
remoteSaleTypeNaturalIdToEntityCollection
in interface SaleTypeDao
SaleTypeDao.remoteSaleTypeNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteSaleTypeNaturalId(SaleType source, RemoteSaleTypeNaturalId target)
SaleTypeDao
toRemoteSaleTypeNaturalId
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeNaturalId(fr.ifremer.allegro.referential.SaleType, fr.ifremer.allegro.referential.generic.vo.RemoteSaleTypeNaturalId)
public RemoteSaleTypeNaturalId toRemoteSaleTypeNaturalId(SaleType entity)
SaleTypeDao
RemoteSaleTypeNaturalId
.
toRemoteSaleTypeNaturalId
in interface SaleTypeDao
SaleTypeDao.toRemoteSaleTypeNaturalId(fr.ifremer.allegro.referential.SaleType)
public void remoteSaleTypeNaturalIdToEntity(RemoteSaleTypeNaturalId source, SaleType target, boolean copyIfNull)
SaleTypeDao
RemoteSaleTypeNaturalId
to the specified entity.
remoteSaleTypeNaturalIdToEntity
in interface SaleTypeDao
copyIfNull
- If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE,
it will be copied regardless of its value.fr.ifremer.allegro.referential.SaleTypeDao#remoteSaleTypeNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteSaleTypeNaturalId, fr.ifremer.allegro.referential.SaleType)
public final void toClusterSaleTypeCollection(java.util.Collection entities)
SaleTypeDao
ClusterSaleType
.
toClusterSaleTypeCollection
in interface SaleTypeDao
SaleTypeDao.toClusterSaleTypeCollection(java.util.Collection)
public final ClusterSaleType[] toClusterSaleTypeArray(java.util.Collection entities)
SaleTypeDao
ClusterSaleType
.
toClusterSaleTypeArray
in interface SaleTypeDao
SaleTypeDao.toClusterSaleTypeArray(java.util.Collection)
protected ClusterSaleType toClusterSaleType(java.lang.Object[] row)
SaleTypeDaoImpl
class if you intend to use reporting queries.
SaleTypeDao.toClusterSaleType(fr.ifremer.allegro.referential.SaleType)
public final void clusterSaleTypeToEntityCollection(java.util.Collection instances)
SaleTypeDao
ClusterSaleType
to this
DAO's entity.
clusterSaleTypeToEntityCollection
in interface SaleTypeDao
SaleTypeDao.clusterSaleTypeToEntityCollection(java.util.Collection)
public void toClusterSaleType(SaleType source, ClusterSaleType target)
SaleTypeDao
toClusterSaleType
in interface SaleTypeDao
SaleTypeDao.toClusterSaleType(fr.ifremer.allegro.referential.SaleType, fr.ifremer.allegro.referential.generic.cluster.ClusterSaleType)
public ClusterSaleType toClusterSaleType(SaleType entity)
SaleTypeDao
ClusterSaleType
.
toClusterSaleType
in interface SaleTypeDao
SaleTypeDao.toClusterSaleType(fr.ifremer.allegro.referential.SaleType)
public void clusterSaleTypeToEntity(ClusterSaleType source, SaleType target, boolean copyIfNull)
SaleTypeDao
ClusterSaleType
to the specified entity.
clusterSaleTypeToEntity
in interface SaleTypeDao
copyIfNull
- If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE,
it will be copied regardless of its value.fr.ifremer.allegro.referential.SaleTypeDao#clusterSaleTypeToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterSaleType, fr.ifremer.allegro.referential.SaleType)
protected java.security.Principal getPrincipal()
principal
if one has been set,
otherwise returns null
.
public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
SaleTypeDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface SaleTypeDao
transform
- 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.SaleTypeDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
SaleTypeDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface SaleTypeDao
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.SaleTypeDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
SaleTypeDao
SaleTypeDao.search(fr.ifremer.allegro.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 SaleTypeDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
SaleTypeDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
SaleTypeDao
search
object.
search
in interface SaleTypeDao
search
- the search object which provides the search parameters and pagination specification.
SaleTypeDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |