|
||||||||||
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.StatusDaoBase
public abstract class StatusDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.Status
.
Status
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.StatusDao |
---|
TRANSFORM_CLUSTERSTATUS, TRANSFORM_NONE, TRANSFORM_REMOTESTATUSFULLVO, TRANSFORM_REMOTESTATUSNATURALID |
Constructor Summary | |
---|---|
StatusDaoBase()
|
Method Summary | |
---|---|
void |
clusterStatusToEntity(ClusterStatus source,
Status target,
boolean copyIfNull)
Copies the fields of ClusterStatus to the specified entity. |
void |
clusterStatusToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterStatus to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.Status and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as StatusDao.create(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Status status)
Does the same thing as StatusDao.create(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String code,
java.lang.String name)
Does the same thing as StatusDao.create(java.lang.String,java.lang.String) with an
additional flag called transform . |
Status |
create(Status status)
Creates an instance of fr.ifremer.allegro.referential.Status and adds it to the persistent store. |
Status |
create(java.lang.String code,
java.lang.String name)
Creates a new fr.ifremer.allegro.referential.Status
instance from all attributes and
properties and adds it to the persistent store. |
Status |
createFromClusterStatus(ClusterStatus clusterStatus)
|
java.lang.Object |
findStatusByCode(int transform,
java.lang.String code)
Does the same thing as StatusDao.findStatusByCode(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
findStatusByCode(int transform,
java.lang.String queryString,
java.lang.String code)
Does the same thing as StatusDao.findStatusByCode(int, java.lang.String) with an
additional argument called queryString . |
Status |
findStatusByCode(java.lang.String code)
|
Status |
findStatusByCode(java.lang.String queryString,
java.lang.String code)
Does the same thing as StatusDao.findStatusByCode(java.lang.String) with an
additional argument called queryString . |
java.lang.Object |
findStatusByNaturalId(int transform,
java.lang.String code)
Does the same thing as StatusDao.findStatusByNaturalId(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
findStatusByNaturalId(int transform,
java.lang.String queryString,
java.lang.String code)
Does the same thing as StatusDao.findStatusByNaturalId(int, java.lang.String) with an
additional argument called queryString . |
Status |
findStatusByNaturalId(java.lang.String code)
|
Status |
findStatusByNaturalId(java.lang.String queryString,
java.lang.String code)
Does the same thing as StatusDao.findStatusByNaturalId(java.lang.String) with an
additional argument called queryString . |
ClusterStatus[] |
getAllClusterStatus(java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllStatus()
|
java.util.Collection |
getAllStatus(int transform)
Does the same thing as StatusDao.getAllStatus() with an
additional flag called transform . |
java.util.Collection |
getAllStatus(int pageNumber,
int pageSize)
Does the same thing as StatusDao.getAllStatus() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllStatus(int transform,
int pageNumber,
int pageSize)
Does the same thing as StatusDao.getAllStatus(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllStatus(int transform,
java.lang.String queryString)
Does the same thing as StatusDao.getAllStatus(int) with an
additional argument called queryString . |
java.util.Collection |
getAllStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as StatusDao.getAllStatus(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllStatus(java.lang.String queryString)
Does the same thing as StatusDao.getAllStatus() with an
additional argument called queryString . |
java.util.Collection |
getAllStatus(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as StatusDao.getAllStatus(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 abstract Status |
handleCreateFromClusterStatus(ClusterStatus clusterStatus)
Performs the core logic for createFromClusterStatus(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus) |
protected abstract ClusterStatus[] |
handleGetAllClusterStatus(java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
Performs the core logic for getAllClusterStatus(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
java.lang.Object |
load(int transform,
java.lang.String code)
Does the same thing as StatusDao.load(java.lang.String) with an
additional flag called transform . |
Status |
load(java.lang.String code)
Loads an instance of fr.ifremer.allegro.referential.Status from the persistent store. |
java.util.Collection |
loadAll()
Loads all entities of type Status . |
java.util.Collection |
loadAll(int transform)
Does the same thing as StatusDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as StatusDao.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 StatusDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteStatusFullVOToEntity(RemoteStatusFullVO source,
Status target,
boolean copyIfNull)
Copies the fields of RemoteStatusFullVO to the specified entity. |
void |
remoteStatusFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteStatusFullVO to this
DAO's entity. |
void |
remoteStatusNaturalIdToEntity(RemoteStatusNaturalId source,
Status target,
boolean copyIfNull)
Copies the fields of RemoteStatusNaturalId to the specified entity. |
void |
remoteStatusNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteStatusNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(Status status)
Removes the instance of fr.ifremer.allegro.referential.Status from the persistent store. |
void |
remove(java.lang.String code)
Removes the instance of fr.ifremer.allegro.referential.Status 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.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 StatusDao.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. |
protected ClusterStatus |
toClusterStatus(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterStatus |
toClusterStatus(Status entity)
Converts this DAO's entity to an object of type ClusterStatus . |
void |
toClusterStatus(Status source,
ClusterStatus target)
Copies the fields of the specified entity to the target value object. |
ClusterStatus[] |
toClusterStatusArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterStatus . |
void |
toClusterStatusCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterStatus . |
protected Status |
toEntity(java.lang.Object[] row)
|
protected RemoteStatusFullVO |
toRemoteStatusFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteStatusFullVO |
toRemoteStatusFullVO(Status entity)
Converts this DAO's entity to an object of type RemoteStatusFullVO . |
void |
toRemoteStatusFullVO(Status source,
RemoteStatusFullVO target)
Copies the fields of the specified entity to the target value object. |
RemoteStatusFullVO[] |
toRemoteStatusFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteStatusFullVO . |
void |
toRemoteStatusFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteStatusFullVO . |
protected RemoteStatusNaturalId |
toRemoteStatusNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteStatusNaturalId |
toRemoteStatusNaturalId(Status entity)
Converts this DAO's entity to an object of type RemoteStatusNaturalId . |
void |
toRemoteStatusNaturalId(Status source,
RemoteStatusNaturalId target)
Copies the fields of the specified entity to the target value object. |
RemoteStatusNaturalId[] |
toRemoteStatusNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteStatusNaturalId . |
void |
toRemoteStatusNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteStatusNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.Status)
method. |
protected java.lang.Object |
transformEntity(int transform,
Status 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.StatusDao , please note
that the StatusDao.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(Status status)
Updates the status 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.StatusDao |
---|
clusterStatusToEntity, remoteStatusFullVOToEntity, remoteStatusNaturalIdToEntity |
Constructor Detail |
---|
public StatusDaoBase()
Method Detail |
---|
public java.lang.Object load(int transform, java.lang.String code)
StatusDao
Does the same thing as StatusDao.load(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 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 StatusDao
code
- identifier of the entity to load
StatusDao.load(int, java.lang.String)
public Status load(java.lang.String code)
StatusDao
load
in interface StatusDao
StatusDao.load(java.lang.String)
public java.util.Collection loadAll()
StatusDao
Status
.
loadAll
in interface StatusDao
StatusDao.loadAll()
public java.util.Collection loadAll(int transform)
StatusDao
Does the same thing as StatusDao.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 StatusDao
transform
- the flag indicating what transformation to use.
StatusDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
StatusDao
Does the same thing as StatusDao.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 StatusDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
StatusDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
StatusDao
Does the same thing as StatusDao.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 StatusDao
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.
StatusDao.loadAll(int, int, int)
public Status create(Status status)
StatusDao
create
in interface StatusDao
StatusDao.create(fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, Status status)
StatusDao
Does the same thing as StatusDao.create(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 StatusDao
StatusDao.create(int transform, fr.ifremer.allegro.referential.Status)
public java.util.Collection create(java.util.Collection entities)
StatusDao
entities
collection
create
in interface StatusDao
entities
- the collection of fr.ifremer.allegro.referential.Status
instances to create.
StatusDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
StatusDao
Does the same thing as StatusDao.create(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 entities (into value objects for example). By default, transformation does
not occur.
create
in interface StatusDao
StatusDao.create(int, java.util.Collection)
public Status create(java.lang.String code, java.lang.String name)
StatusDao
Creates a new fr.ifremer.allegro.referential.Status
instance from all attributes and
properties and adds it to the persistent store.
create
in interface StatusDao
StatusDao.create(java.lang.String,java.lang.String)
public java.lang.Object create(int transform, java.lang.String code, java.lang.String name)
StatusDao
Does the same thing as StatusDao.create(java.lang.String,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 StatusDao
StatusDao.create(int, java.lang.String,java.lang.String)
public void update(Status status)
StatusDao
status
instance in the persistent store.
update
in interface StatusDao
StatusDao.update(fr.ifremer.allegro.referential.Status)
public void update(java.util.Collection entities)
StatusDao
entities
collection in the persistent store.
update
in interface StatusDao
StatusDao.update(java.util.Collection)
public void remove(Status status)
StatusDao
remove
in interface StatusDao
StatusDao.remove(fr.ifremer.allegro.referential.Status)
public void remove(java.lang.String code)
StatusDao
identifier
from the persistent store.
remove
in interface StatusDao
StatusDao.remove(java.lang.String)
public void remove(java.util.Collection entities)
StatusDao
entities collection.
- Specified by:
remove
in interface StatusDao
- See Also:
StatusDao.remove(java.util.Collection)
public java.util.Collection getAllStatus()
getAllStatus
in interface StatusDao
StatusDao.getAllStatus()
public java.util.Collection getAllStatus(int transform)
StatusDao
Does the same thing as StatusDao.getAllStatus()
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.
getAllStatus
in interface StatusDao
StatusDao.getAllStatus(int)
public java.util.Collection getAllStatus(java.lang.String queryString)
StatusDao
Does the same thing as StatusDao.getAllStatus()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in StatusDao.getAllStatus()
.
getAllStatus
in interface StatusDao
StatusDao.getAllStatus(java.lang.String)
public java.util.Collection getAllStatus(int pageNumber, int pageSize)
StatusDao
Does the same thing as StatusDao.getAllStatus()
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.
getAllStatus
in interface StatusDao
StatusDao.getAllStatus(int, int)
public java.util.Collection getAllStatus(java.lang.String queryString, int pageNumber, int pageSize)
StatusDao
Does the same thing as StatusDao.getAllStatus(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.
getAllStatus
in interface StatusDao
StatusDao.getAllStatus(String, int, int)
public java.util.Collection getAllStatus(int transform, java.lang.String queryString)
StatusDao
Does the same thing as StatusDao.getAllStatus(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in StatusDao.getAllStatus(int)
.
getAllStatus
in interface StatusDao
StatusDao.getAllStatus(int, String)
public java.util.Collection getAllStatus(int transform, int pageNumber, int pageSize)
StatusDao
Does the same thing as StatusDao.getAllStatus(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.
getAllStatus
in interface StatusDao
StatusDao.getAllStatus(int, int, int)
public java.util.Collection getAllStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize)
StatusDao
Does the same thing as StatusDao.getAllStatus(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.
getAllStatus
in interface StatusDao
StatusDao.getAllStatus(int, java.lang.String, int, int)
public Status findStatusByCode(java.lang.String code)
findStatusByCode
in interface StatusDao
StatusDao.findStatusByCode(java.lang.String)
public java.lang.Object findStatusByCode(int transform, java.lang.String code)
StatusDao
Does the same thing as StatusDao.findStatusByCode(java.lang.String)
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.
findStatusByCode
in interface StatusDao
StatusDao.findStatusByCode(int, java.lang.String)
public Status findStatusByCode(java.lang.String queryString, java.lang.String code)
StatusDao
Does the same thing as StatusDao.findStatusByCode(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in StatusDao.findStatusByCode(java.lang.String)
.
findStatusByCode
in interface StatusDao
StatusDao.findStatusByCode(java.lang.String, java.lang.String)
public java.lang.Object findStatusByCode(int transform, java.lang.String queryString, java.lang.String code)
StatusDao
Does the same thing as StatusDao.findStatusByCode(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in StatusDao.findStatusByCode(int, java.lang.String code)
.
findStatusByCode
in interface StatusDao
StatusDao.findStatusByCode(int, java.lang.String, java.lang.String)
public Status findStatusByNaturalId(java.lang.String code)
findStatusByNaturalId
in interface StatusDao
StatusDao.findStatusByNaturalId(java.lang.String)
public java.lang.Object findStatusByNaturalId(int transform, java.lang.String code)
StatusDao
Does the same thing as StatusDao.findStatusByNaturalId(java.lang.String)
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.
findStatusByNaturalId
in interface StatusDao
StatusDao.findStatusByNaturalId(int, java.lang.String)
public Status findStatusByNaturalId(java.lang.String queryString, java.lang.String code)
StatusDao
Does the same thing as StatusDao.findStatusByNaturalId(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in StatusDao.findStatusByNaturalId(java.lang.String)
.
findStatusByNaturalId
in interface StatusDao
StatusDao.findStatusByNaturalId(java.lang.String, java.lang.String)
public java.lang.Object findStatusByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
StatusDao
Does the same thing as StatusDao.findStatusByNaturalId(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in StatusDao.findStatusByNaturalId(int, java.lang.String code)
.
findStatusByNaturalId
in interface StatusDao
StatusDao.findStatusByNaturalId(int, java.lang.String, java.lang.String)
public Status createFromClusterStatus(ClusterStatus clusterStatus)
createFromClusterStatus
in interface StatusDao
StatusDao.createFromClusterStatus(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus)
protected abstract Status handleCreateFromClusterStatus(ClusterStatus clusterStatus) throws java.lang.Exception
createFromClusterStatus(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus)
java.lang.Exception
public ClusterStatus[] getAllClusterStatus(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterStatus
in interface StatusDao
StatusDao.getAllClusterStatus(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterStatus[] handleGetAllClusterStatus(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterStatus(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
java.lang.Exception
protected java.lang.Object transformEntity(int transform, Status entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.StatusDao
, please note
that the StatusDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Status
- StatusDao.TRANSFORM_NONE
RemoteStatusFullVO
- TRANSFORM_REMOTESTATUSFULLVO
RemoteStatusNaturalId
- TRANSFORM_REMOTESTATUSNATURALID
ClusterStatus
- TRANSFORM_CLUSTERSTATUS
StatusDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in StatusDao
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.Status)
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.StatusDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.Status)
protected Status toEntity(java.lang.Object[] row)
public final void toRemoteStatusFullVOCollection(java.util.Collection entities)
StatusDao
RemoteStatusFullVO
.
toRemoteStatusFullVOCollection
in interface StatusDao
StatusDao.toRemoteStatusFullVOCollection(java.util.Collection)
public final RemoteStatusFullVO[] toRemoteStatusFullVOArray(java.util.Collection entities)
StatusDao
RemoteStatusFullVO
.
toRemoteStatusFullVOArray
in interface StatusDao
StatusDao.toRemoteStatusFullVOArray(java.util.Collection)
protected RemoteStatusFullVO toRemoteStatusFullVO(java.lang.Object[] row)
StatusDaoImpl
class if you intend to use reporting queries.
StatusDao.toRemoteStatusFullVO(fr.ifremer.allegro.referential.Status)
public final void remoteStatusFullVOToEntityCollection(java.util.Collection instances)
StatusDao
RemoteStatusFullVO
to this
DAO's entity.
remoteStatusFullVOToEntityCollection
in interface StatusDao
StatusDao.remoteStatusFullVOToEntityCollection(java.util.Collection)
public void toRemoteStatusFullVO(Status source, RemoteStatusFullVO target)
StatusDao
toRemoteStatusFullVO
in interface StatusDao
StatusDao.toRemoteStatusFullVO(fr.ifremer.allegro.referential.Status, fr.ifremer.allegro.referential.generic.vo.RemoteStatusFullVO)
public RemoteStatusFullVO toRemoteStatusFullVO(Status entity)
StatusDao
RemoteStatusFullVO
.
toRemoteStatusFullVO
in interface StatusDao
StatusDao.toRemoteStatusFullVO(fr.ifremer.allegro.referential.Status)
public void remoteStatusFullVOToEntity(RemoteStatusFullVO source, Status target, boolean copyIfNull)
StatusDao
RemoteStatusFullVO
to the specified entity.
remoteStatusFullVOToEntity
in interface StatusDao
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.StatusDao#remoteStatusFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteStatusFullVO, fr.ifremer.allegro.referential.Status)
public final void toRemoteStatusNaturalIdCollection(java.util.Collection entities)
StatusDao
RemoteStatusNaturalId
.
toRemoteStatusNaturalIdCollection
in interface StatusDao
StatusDao.toRemoteStatusNaturalIdCollection(java.util.Collection)
public final RemoteStatusNaturalId[] toRemoteStatusNaturalIdArray(java.util.Collection entities)
StatusDao
RemoteStatusNaturalId
.
toRemoteStatusNaturalIdArray
in interface StatusDao
StatusDao.toRemoteStatusNaturalIdArray(java.util.Collection)
protected RemoteStatusNaturalId toRemoteStatusNaturalId(java.lang.Object[] row)
StatusDaoImpl
class if you intend to use reporting queries.
StatusDao.toRemoteStatusNaturalId(fr.ifremer.allegro.referential.Status)
public final void remoteStatusNaturalIdToEntityCollection(java.util.Collection instances)
StatusDao
RemoteStatusNaturalId
to this
DAO's entity.
remoteStatusNaturalIdToEntityCollection
in interface StatusDao
StatusDao.remoteStatusNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteStatusNaturalId(Status source, RemoteStatusNaturalId target)
StatusDao
toRemoteStatusNaturalId
in interface StatusDao
StatusDao.toRemoteStatusNaturalId(fr.ifremer.allegro.referential.Status, fr.ifremer.allegro.referential.generic.vo.RemoteStatusNaturalId)
public RemoteStatusNaturalId toRemoteStatusNaturalId(Status entity)
StatusDao
RemoteStatusNaturalId
.
toRemoteStatusNaturalId
in interface StatusDao
StatusDao.toRemoteStatusNaturalId(fr.ifremer.allegro.referential.Status)
public void remoteStatusNaturalIdToEntity(RemoteStatusNaturalId source, Status target, boolean copyIfNull)
StatusDao
RemoteStatusNaturalId
to the specified entity.
remoteStatusNaturalIdToEntity
in interface StatusDao
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.StatusDao#remoteStatusNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteStatusNaturalId, fr.ifremer.allegro.referential.Status)
public final void toClusterStatusCollection(java.util.Collection entities)
StatusDao
ClusterStatus
.
toClusterStatusCollection
in interface StatusDao
StatusDao.toClusterStatusCollection(java.util.Collection)
public final ClusterStatus[] toClusterStatusArray(java.util.Collection entities)
StatusDao
ClusterStatus
.
toClusterStatusArray
in interface StatusDao
StatusDao.toClusterStatusArray(java.util.Collection)
protected ClusterStatus toClusterStatus(java.lang.Object[] row)
StatusDaoImpl
class if you intend to use reporting queries.
StatusDao.toClusterStatus(fr.ifremer.allegro.referential.Status)
public final void clusterStatusToEntityCollection(java.util.Collection instances)
StatusDao
ClusterStatus
to this
DAO's entity.
clusterStatusToEntityCollection
in interface StatusDao
StatusDao.clusterStatusToEntityCollection(java.util.Collection)
public void toClusterStatus(Status source, ClusterStatus target)
StatusDao
toClusterStatus
in interface StatusDao
StatusDao.toClusterStatus(fr.ifremer.allegro.referential.Status, fr.ifremer.allegro.referential.generic.cluster.ClusterStatus)
public ClusterStatus toClusterStatus(Status entity)
StatusDao
ClusterStatus
.
toClusterStatus
in interface StatusDao
StatusDao.toClusterStatus(fr.ifremer.allegro.referential.Status)
public void clusterStatusToEntity(ClusterStatus source, Status target, boolean copyIfNull)
StatusDao
ClusterStatus
to the specified entity.
clusterStatusToEntity
in interface StatusDao
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.StatusDao#clusterStatusToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus, fr.ifremer.allegro.referential.Status)
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)
StatusDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface StatusDao
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.StatusDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
StatusDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface StatusDao
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.StatusDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
StatusDao
StatusDao.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 StatusDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
StatusDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
StatusDao
search
object.
search
in interface StatusDao
search
- the search object which provides the search parameters and pagination specification.
StatusDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |