|
||||||||||
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.metier.MetierDaoBase
public abstract class MetierDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.metier.Metier
.
Metier
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.metier.MetierDao |
---|
TRANSFORM_CLUSTERMETIER, TRANSFORM_NONE, TRANSFORM_REMOTEMETIERFULLVO, TRANSFORM_REMOTEMETIERNATURALID |
Constructor Summary | |
---|---|
MetierDaoBase()
|
Method Summary | |
---|---|
void |
clusterMetierToEntity(ClusterMetier source,
Metier target,
boolean copyIfNull)
Copies the fields of ClusterMetier to the specified entity. |
void |
clusterMetierToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterMetier to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.metier.Metier and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as MetierDao.create(fr.ifremer.allegro.referential.metier.Metier) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Metier metier)
Does the same thing as MetierDao.create(fr.ifremer.allegro.referential.metier.Metier) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name,
Status status)
Does the same thing as MetierDao.create(java.lang.String,fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String label,
java.lang.String name,
java.lang.String description,
java.sql.Timestamp updateDate,
Status status)
Does the same thing as MetierDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
Metier |
create(Metier metier)
Creates an instance of fr.ifremer.allegro.referential.metier.Metier and adds it to the persistent store. |
Metier |
create(java.lang.String name,
Status status)
Creates a new fr.ifremer.allegro.referential.metier.Metier
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Metier |
create(java.lang.String label,
java.lang.String name,
java.lang.String description,
java.sql.Timestamp updateDate,
Status status)
Creates a new fr.ifremer.allegro.referential.metier.Metier
instance from all attributes and
properties and adds it to the persistent store. |
Metier |
createFromClusterMetier(ClusterMetier clusterMetier)
|
Metier |
findMetierById(java.lang.Integer id)
|
java.lang.Object |
findMetierById(int transform,
java.lang.Integer id)
Does the same thing as MetierDao.findMetierById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findMetierById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as MetierDao.findMetierById(int, java.lang.Integer) with an
additional argument called queryString . |
Metier |
findMetierById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as MetierDao.findMetierById(java.lang.Integer) with an
additional argument called queryString . |
Metier |
findMetierByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findMetierByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as MetierDao.findMetierByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findMetierByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as MetierDao.findMetierByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
Metier |
findMetierByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as MetierDao.findMetierByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findMetierByStatus(int transform,
int pageNumber,
int pageSize,
Status status)
Does the same thing as MetierDao.findMetierByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findMetierByStatus(int pageNumber,
int pageSize,
Status status)
Does the same thing as MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findMetierByStatus(int transform,
Status status)
Does the same thing as MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.util.Collection |
findMetierByStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as MetierDao.findMetierByStatus(int, String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findMetierByStatus(int transform,
java.lang.String queryString,
Status status)
Does the same thing as MetierDao.findMetierByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
java.util.Collection |
findMetierByStatus(Status status)
|
java.util.Collection |
findMetierByStatus(java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as MetierDao.findMetierByStatus(String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findMetierByStatus(java.lang.String queryString,
Status status)
Does the same thing as MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
ClusterMetier[] |
getAllClusterMetierSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllMetier()
|
java.util.Collection |
getAllMetier(int transform)
Does the same thing as MetierDao.getAllMetier() with an
additional flag called transform . |
java.util.Collection |
getAllMetier(int pageNumber,
int pageSize)
Does the same thing as MetierDao.getAllMetier() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetier(int transform,
int pageNumber,
int pageSize)
Does the same thing as MetierDao.getAllMetier(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetier(int transform,
java.lang.String queryString)
Does the same thing as MetierDao.getAllMetier(int) with an
additional argument called queryString . |
java.util.Collection |
getAllMetier(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as MetierDao.getAllMetier(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetier(java.lang.String queryString)
Does the same thing as MetierDao.getAllMetier() with an
additional argument called queryString . |
java.util.Collection |
getAllMetier(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as MetierDao.getAllMetier(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetierSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetierSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetierSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetierSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllMetierSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllMetierSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllMetierSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllMetierSinceDateSynchro(java.sql.Timestamp updateDate)
|
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 Metier |
handleCreateFromClusterMetier(ClusterMetier clusterMetier)
Performs the core logic for createFromClusterMetier(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier) |
protected abstract ClusterMetier[] |
handleGetAllClusterMetierSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
Performs the core logic for getAllClusterMetierSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
Metier |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.metier.Metier from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as MetierDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type Metier . |
java.util.Collection |
loadAll(int transform)
Does the same thing as MetierDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as MetierDao.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 MetierDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteMetierFullVOToEntity(RemoteMetierFullVO source,
Metier target,
boolean copyIfNull)
Copies the fields of RemoteMetierFullVO to the specified entity. |
void |
remoteMetierFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteMetierFullVO to this
DAO's entity. |
void |
remoteMetierNaturalIdToEntity(RemoteMetierNaturalId source,
Metier target,
boolean copyIfNull)
Copies the fields of RemoteMetierNaturalId to the specified entity. |
void |
remoteMetierNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteMetierNaturalId 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.metier.Metier having the given identifier from the persistent store. |
void |
remove(Metier metier)
Removes the instance of fr.ifremer.allegro.referential.metier.Metier 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 MetierDao.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 . |
ClusterMetier |
toClusterMetier(Metier entity)
Converts this DAO's entity to an object of type ClusterMetier . |
void |
toClusterMetier(Metier source,
ClusterMetier target)
Copies the fields of the specified entity to the target value object. |
protected ClusterMetier |
toClusterMetier(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterMetier[] |
toClusterMetierArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterMetier . |
void |
toClusterMetierCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterMetier . |
protected Metier |
toEntity(java.lang.Object[] row)
|
RemoteMetierFullVO |
toRemoteMetierFullVO(Metier entity)
Converts this DAO's entity to an object of type RemoteMetierFullVO . |
void |
toRemoteMetierFullVO(Metier source,
RemoteMetierFullVO target)
Copies the fields of the specified entity to the target value object. |
protected RemoteMetierFullVO |
toRemoteMetierFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteMetierFullVO[] |
toRemoteMetierFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteMetierFullVO . |
void |
toRemoteMetierFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteMetierFullVO . |
RemoteMetierNaturalId |
toRemoteMetierNaturalId(Metier entity)
Converts this DAO's entity to an object of type RemoteMetierNaturalId . |
void |
toRemoteMetierNaturalId(Metier source,
RemoteMetierNaturalId target)
Copies the fields of the specified entity to the target value object. |
protected RemoteMetierNaturalId |
toRemoteMetierNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteMetierNaturalId[] |
toRemoteMetierNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteMetierNaturalId . |
void |
toRemoteMetierNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteMetierNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.metier.Metier)
method. |
protected java.lang.Object |
transformEntity(int transform,
Metier 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.metier.MetierDao , please note
that the MetierDao.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(Metier metier)
Updates the metier 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.metier.MetierDao |
---|
clusterMetierToEntity, remoteMetierFullVOToEntity, remoteMetierNaturalIdToEntity |
Constructor Detail |
---|
public MetierDaoBase()
Method Detail |
---|
public void setStatusDao(StatusDao statusDao)
statusDao
.
protected StatusDao getStatusDao()
statusDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
MetierDao
Does the same thing as MetierDao.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 MetierDao
id
- identifier of the entity to load
MetierDao.load(int, java.lang.Integer)
public Metier load(java.lang.Integer id)
MetierDao
load
in interface MetierDao
MetierDao.load(java.lang.Integer)
public java.util.Collection loadAll()
MetierDao
Metier
.
loadAll
in interface MetierDao
MetierDao.loadAll()
public java.util.Collection loadAll(int transform)
MetierDao
Does the same thing as MetierDao.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 MetierDao
transform
- the flag indicating what transformation to use.
MetierDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
MetierDao
Does the same thing as MetierDao.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 MetierDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
MetierDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
MetierDao
Does the same thing as MetierDao.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 MetierDao
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.
MetierDao.loadAll(int, int, int)
public Metier create(Metier metier)
MetierDao
create
in interface MetierDao
MetierDao.create(fr.ifremer.allegro.referential.metier.Metier)
public java.lang.Object create(int transform, Metier metier)
MetierDao
Does the same thing as MetierDao.create(fr.ifremer.allegro.referential.metier.Metier)
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 MetierDao
MetierDao.create(int transform, fr.ifremer.allegro.referential.metier.Metier)
public java.util.Collection create(java.util.Collection entities)
MetierDao
entities
collection
create
in interface MetierDao
entities
- the collection of fr.ifremer.allegro.referential.metier.Metier
instances to create.
MetierDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
MetierDao
Does the same thing as MetierDao.create(fr.ifremer.allegro.referential.metier.Metier)
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 MetierDao
MetierDao.create(int, java.util.Collection)
public Metier create(java.lang.String label, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, Status status)
MetierDao
Creates a new fr.ifremer.allegro.referential.metier.Metier
instance from all attributes and
properties and adds it to the persistent store.
create
in interface MetierDao
MetierDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, java.lang.String label, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, Status status)
MetierDao
Does the same thing as MetierDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,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 MetierDao
MetierDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)
public Metier create(java.lang.String name, Status status)
MetierDao
Creates a new fr.ifremer.allegro.referential.metier.Metier
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface MetierDao
MetierDao.create(java.lang.String,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, java.lang.String name, Status status)
MetierDao
Does the same thing as MetierDao.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 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 MetierDao
MetierDao.create(int, java.lang.String,fr.ifremer.allegro.referential.Status)
public void update(Metier metier)
MetierDao
metier
instance in the persistent store.
update
in interface MetierDao
MetierDao.update(fr.ifremer.allegro.referential.metier.Metier)
public void update(java.util.Collection entities)
MetierDao
entities
collection in the persistent store.
update
in interface MetierDao
MetierDao.update(java.util.Collection)
public void remove(Metier metier)
MetierDao
remove
in interface MetierDao
MetierDao.remove(fr.ifremer.allegro.referential.metier.Metier)
public void remove(java.lang.Integer id)
MetierDao
identifier
from the persistent store.
remove
in interface MetierDao
MetierDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
MetierDao
entities collection.
- Specified by:
remove
in interface MetierDao
- See Also:
MetierDao.remove(java.util.Collection)
public java.util.Collection getAllMetier()
getAllMetier
in interface MetierDao
MetierDao.getAllMetier()
public java.util.Collection getAllMetier(int transform)
MetierDao
Does the same thing as MetierDao.getAllMetier()
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.
getAllMetier
in interface MetierDao
MetierDao.getAllMetier(int)
public java.util.Collection getAllMetier(java.lang.String queryString)
MetierDao
Does the same thing as MetierDao.getAllMetier()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.getAllMetier()
.
getAllMetier
in interface MetierDao
MetierDao.getAllMetier(java.lang.String)
public java.util.Collection getAllMetier(int pageNumber, int pageSize)
MetierDao
Does the same thing as MetierDao.getAllMetier()
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.
getAllMetier
in interface MetierDao
MetierDao.getAllMetier(int, int)
public java.util.Collection getAllMetier(java.lang.String queryString, int pageNumber, int pageSize)
MetierDao
Does the same thing as MetierDao.getAllMetier(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.
getAllMetier
in interface MetierDao
MetierDao.getAllMetier(String, int, int)
public java.util.Collection getAllMetier(int transform, java.lang.String queryString)
MetierDao
Does the same thing as MetierDao.getAllMetier(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.getAllMetier(int)
.
getAllMetier
in interface MetierDao
MetierDao.getAllMetier(int, String)
public java.util.Collection getAllMetier(int transform, int pageNumber, int pageSize)
MetierDao
Does the same thing as MetierDao.getAllMetier(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.
getAllMetier
in interface MetierDao
MetierDao.getAllMetier(int, int, int)
public java.util.Collection getAllMetier(int transform, java.lang.String queryString, int pageNumber, int pageSize)
MetierDao
Does the same thing as MetierDao.getAllMetier(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.
getAllMetier
in interface MetierDao
MetierDao.getAllMetier(int, java.lang.String, int, int)
public Metier findMetierById(java.lang.Integer id)
findMetierById
in interface MetierDao
MetierDao.findMetierById(java.lang.Integer)
public java.lang.Object findMetierById(int transform, java.lang.Integer id)
MetierDao
Does the same thing as MetierDao.findMetierById(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.
findMetierById
in interface MetierDao
MetierDao.findMetierById(int, java.lang.Integer)
public Metier findMetierById(java.lang.String queryString, java.lang.Integer id)
MetierDao
Does the same thing as MetierDao.findMetierById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.findMetierById(java.lang.Integer)
.
findMetierById
in interface MetierDao
MetierDao.findMetierById(java.lang.String, java.lang.Integer)
public java.lang.Object findMetierById(int transform, java.lang.String queryString, java.lang.Integer id)
MetierDao
Does the same thing as MetierDao.findMetierById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.findMetierById(int, java.lang.Integer id)
.
findMetierById
in interface MetierDao
MetierDao.findMetierById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findMetierByStatus(Status status)
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status)
public java.util.Collection findMetierByStatus(int transform, Status status)
MetierDao
Does the same thing as MetierDao.findMetierByStatus(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.
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findMetierByStatus(java.lang.String queryString, Status status)
MetierDao
Does the same thing as MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status)
.
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findMetierByStatus(int pageNumber, int pageSize, Status status)
MetierDao
Does the same thing as MetierDao.findMetierByStatus(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.
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findMetierByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
MetierDao
Does the same thing as MetierDao.findMetierByStatus(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.
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findMetierByStatus(int transform, java.lang.String queryString, Status status)
MetierDao
Does the same thing as MetierDao.findMetierByStatus(int, fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.findMetierByStatus(int, fr.ifremer.allegro.referential.Status status)
.
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(int, String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findMetierByStatus(int transform, int pageNumber, int pageSize, Status status)
MetierDao
Does the same thing as MetierDao.findMetierByStatus(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.
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(int, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findMetierByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
MetierDao
Does the same thing as MetierDao.findMetierByStatus(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.
findMetierByStatus
in interface MetierDao
MetierDao.findMetierByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)
public Metier findMetierByNaturalId(java.lang.Integer id)
findMetierByNaturalId
in interface MetierDao
MetierDao.findMetierByNaturalId(java.lang.Integer)
public java.lang.Object findMetierByNaturalId(int transform, java.lang.Integer id)
MetierDao
Does the same thing as MetierDao.findMetierByNaturalId(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.
findMetierByNaturalId
in interface MetierDao
MetierDao.findMetierByNaturalId(int, java.lang.Integer)
public Metier findMetierByNaturalId(java.lang.String queryString, java.lang.Integer id)
MetierDao
Does the same thing as MetierDao.findMetierByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.findMetierByNaturalId(java.lang.Integer)
.
findMetierByNaturalId
in interface MetierDao
MetierDao.findMetierByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findMetierByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
MetierDao
Does the same thing as MetierDao.findMetierByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.findMetierByNaturalId(int, java.lang.Integer id)
.
findMetierByNaturalId
in interface MetierDao
MetierDao.findMetierByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllMetierSinceDateSynchro(java.sql.Timestamp updateDate)
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllMetierSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
MetierDao
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp)
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.
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllMetierSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
MetierDao
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp)
.
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllMetierSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
MetierDao
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp)
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.
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllMetierSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
MetierDao
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(String, java.sql.Timestamp)
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.
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllMetierSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
MetierDao
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllMetierSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
MetierDao
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp)
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.
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllMetierSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
MetierDao
Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, String, java.sql.Timestamp)
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.
getAllMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllMetierSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public Metier createFromClusterMetier(ClusterMetier clusterMetier)
createFromClusterMetier
in interface MetierDao
MetierDao.createFromClusterMetier(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier)
protected abstract Metier handleCreateFromClusterMetier(ClusterMetier clusterMetier) throws java.lang.Exception
createFromClusterMetier(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier)
java.lang.Exception
public ClusterMetier[] getAllClusterMetierSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterMetierSinceDateSynchro
in interface MetierDao
MetierDao.getAllClusterMetierSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterMetier[] handleGetAllClusterMetierSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterMetierSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
java.lang.Exception
protected java.lang.Object transformEntity(int transform, Metier entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.metier.MetierDao
, please note
that the MetierDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Metier
- MetierDao.TRANSFORM_NONE
RemoteMetierFullVO
- TRANSFORM_REMOTEMETIERFULLVO
RemoteMetierNaturalId
- TRANSFORM_REMOTEMETIERNATURALID
ClusterMetier
- TRANSFORM_CLUSTERMETIER
MetierDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in MetierDao
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.metier.Metier)
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.metier.MetierDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.metier.Metier)
protected Metier toEntity(java.lang.Object[] row)
public final void toRemoteMetierFullVOCollection(java.util.Collection entities)
MetierDao
RemoteMetierFullVO
.
toRemoteMetierFullVOCollection
in interface MetierDao
MetierDao.toRemoteMetierFullVOCollection(java.util.Collection)
public final RemoteMetierFullVO[] toRemoteMetierFullVOArray(java.util.Collection entities)
MetierDao
RemoteMetierFullVO
.
toRemoteMetierFullVOArray
in interface MetierDao
MetierDao.toRemoteMetierFullVOArray(java.util.Collection)
protected RemoteMetierFullVO toRemoteMetierFullVO(java.lang.Object[] row)
MetierDaoImpl
class if you intend to use reporting queries.
MetierDao.toRemoteMetierFullVO(fr.ifremer.allegro.referential.metier.Metier)
public final void remoteMetierFullVOToEntityCollection(java.util.Collection instances)
MetierDao
RemoteMetierFullVO
to this
DAO's entity.
remoteMetierFullVOToEntityCollection
in interface MetierDao
MetierDao.remoteMetierFullVOToEntityCollection(java.util.Collection)
public void toRemoteMetierFullVO(Metier source, RemoteMetierFullVO target)
MetierDao
toRemoteMetierFullVO
in interface MetierDao
MetierDao.toRemoteMetierFullVO(fr.ifremer.allegro.referential.metier.Metier, fr.ifremer.allegro.referential.metier.generic.vo.RemoteMetierFullVO)
public RemoteMetierFullVO toRemoteMetierFullVO(Metier entity)
MetierDao
RemoteMetierFullVO
.
toRemoteMetierFullVO
in interface MetierDao
MetierDao.toRemoteMetierFullVO(fr.ifremer.allegro.referential.metier.Metier)
public void remoteMetierFullVOToEntity(RemoteMetierFullVO source, Metier target, boolean copyIfNull)
MetierDao
RemoteMetierFullVO
to the specified entity.
remoteMetierFullVOToEntity
in interface MetierDao
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.metier.MetierDao#remoteMetierFullVOToEntity(fr.ifremer.allegro.referential.metier.generic.vo.RemoteMetierFullVO, fr.ifremer.allegro.referential.metier.Metier)
public final void toRemoteMetierNaturalIdCollection(java.util.Collection entities)
MetierDao
RemoteMetierNaturalId
.
toRemoteMetierNaturalIdCollection
in interface MetierDao
MetierDao.toRemoteMetierNaturalIdCollection(java.util.Collection)
public final RemoteMetierNaturalId[] toRemoteMetierNaturalIdArray(java.util.Collection entities)
MetierDao
RemoteMetierNaturalId
.
toRemoteMetierNaturalIdArray
in interface MetierDao
MetierDao.toRemoteMetierNaturalIdArray(java.util.Collection)
protected RemoteMetierNaturalId toRemoteMetierNaturalId(java.lang.Object[] row)
MetierDaoImpl
class if you intend to use reporting queries.
MetierDao.toRemoteMetierNaturalId(fr.ifremer.allegro.referential.metier.Metier)
public final void remoteMetierNaturalIdToEntityCollection(java.util.Collection instances)
MetierDao
RemoteMetierNaturalId
to this
DAO's entity.
remoteMetierNaturalIdToEntityCollection
in interface MetierDao
MetierDao.remoteMetierNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteMetierNaturalId(Metier source, RemoteMetierNaturalId target)
MetierDao
toRemoteMetierNaturalId
in interface MetierDao
MetierDao.toRemoteMetierNaturalId(fr.ifremer.allegro.referential.metier.Metier, fr.ifremer.allegro.referential.metier.generic.vo.RemoteMetierNaturalId)
public RemoteMetierNaturalId toRemoteMetierNaturalId(Metier entity)
MetierDao
RemoteMetierNaturalId
.
toRemoteMetierNaturalId
in interface MetierDao
MetierDao.toRemoteMetierNaturalId(fr.ifremer.allegro.referential.metier.Metier)
public void remoteMetierNaturalIdToEntity(RemoteMetierNaturalId source, Metier target, boolean copyIfNull)
MetierDao
RemoteMetierNaturalId
to the specified entity.
remoteMetierNaturalIdToEntity
in interface MetierDao
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.metier.MetierDao#remoteMetierNaturalIdToEntity(fr.ifremer.allegro.referential.metier.generic.vo.RemoteMetierNaturalId, fr.ifremer.allegro.referential.metier.Metier)
public final void toClusterMetierCollection(java.util.Collection entities)
MetierDao
ClusterMetier
.
toClusterMetierCollection
in interface MetierDao
MetierDao.toClusterMetierCollection(java.util.Collection)
public final ClusterMetier[] toClusterMetierArray(java.util.Collection entities)
MetierDao
ClusterMetier
.
toClusterMetierArray
in interface MetierDao
MetierDao.toClusterMetierArray(java.util.Collection)
protected ClusterMetier toClusterMetier(java.lang.Object[] row)
MetierDaoImpl
class if you intend to use reporting queries.
MetierDao.toClusterMetier(fr.ifremer.allegro.referential.metier.Metier)
public final void clusterMetierToEntityCollection(java.util.Collection instances)
MetierDao
ClusterMetier
to this
DAO's entity.
clusterMetierToEntityCollection
in interface MetierDao
MetierDao.clusterMetierToEntityCollection(java.util.Collection)
public void toClusterMetier(Metier source, ClusterMetier target)
MetierDao
toClusterMetier
in interface MetierDao
MetierDao.toClusterMetier(fr.ifremer.allegro.referential.metier.Metier, fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier)
public ClusterMetier toClusterMetier(Metier entity)
MetierDao
ClusterMetier
.
toClusterMetier
in interface MetierDao
MetierDao.toClusterMetier(fr.ifremer.allegro.referential.metier.Metier)
public void clusterMetierToEntity(ClusterMetier source, Metier target, boolean copyIfNull)
MetierDao
ClusterMetier
to the specified entity.
clusterMetierToEntity
in interface MetierDao
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.metier.MetierDao#clusterMetierToEntity(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier, fr.ifremer.allegro.referential.metier.Metier)
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)
MetierDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface MetierDao
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.MetierDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
MetierDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface MetierDao
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.MetierDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
MetierDao
MetierDao.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 MetierDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
MetierDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
MetierDao
search
object.
search
in interface MetierDao
search
- the search object which provides the search parameters and pagination specification.
MetierDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |