|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate3.support.HibernateDaoSupport
fr.ifremer.allegro.referential.vessel.VesselDaoBase
public abstract class VesselDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.vessel.Vessel
.
Vessel
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.vessel.VesselDao |
---|
TRANSFORM_CLUSTERVESSEL, TRANSFORM_NONE, TRANSFORM_REMOTEVESSELFULLVO, TRANSFORM_REMOTEVESSELNATURALID |
Constructor Summary | |
---|---|
VesselDaoBase()
|
Method Summary | |
---|---|
void |
clusterVesselToEntity(ClusterVessel source,
Vessel target,
boolean copyIfNull)
Copies the fields of ClusterVessel to the specified entity. |
void |
clusterVesselToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterVessel to this
DAO's entity. |
java.lang.Object |
findVesselByCode(int transform,
java.lang.String code)
Does the same thing as VesselDao.findVesselByCode(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
findVesselByCode(int transform,
java.lang.String queryString,
java.lang.String code)
Does the same thing as VesselDao.findVesselByCode(int, java.lang.String) with an
additional argument called queryString . |
Vessel |
findVesselByCode(java.lang.String code)
|
Vessel |
findVesselByCode(java.lang.String queryString,
java.lang.String code)
Does the same thing as VesselDao.findVesselByCode(java.lang.String) with an
additional argument called queryString . |
java.lang.Object |
findVesselByNaturalId(int transform,
java.lang.String code)
Does the same thing as VesselDao.findVesselByNaturalId(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
findVesselByNaturalId(int transform,
java.lang.String queryString,
java.lang.String code)
Does the same thing as VesselDao.findVesselByNaturalId(int, java.lang.String) with an
additional argument called queryString . |
Vessel |
findVesselByNaturalId(java.lang.String code)
|
Vessel |
findVesselByNaturalId(java.lang.String queryString,
java.lang.String code)
Does the same thing as VesselDao.findVesselByNaturalId(java.lang.String) with an
additional argument called queryString . |
java.util.Collection |
findVesselByStatus(int transform,
int pageNumber,
int pageSize,
Status status)
Does the same thing as VesselDao.findVesselByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByStatus(int pageNumber,
int pageSize,
Status status)
Does the same thing as VesselDao.findVesselByStatus(fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByStatus(int transform,
Status status)
Does the same thing as VesselDao.findVesselByStatus(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.util.Collection |
findVesselByStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as VesselDao.findVesselByStatus(int, String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByStatus(int transform,
java.lang.String queryString,
Status status)
Does the same thing as VesselDao.findVesselByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
java.util.Collection |
findVesselByStatus(Status status)
|
java.util.Collection |
findVesselByStatus(java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as VesselDao.findVesselByStatus(String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByStatus(java.lang.String queryString,
Status status)
Does the same thing as VesselDao.findVesselByStatus(fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
java.util.Collection |
findVesselByVesselType(int transform,
int pageNumber,
int pageSize,
VesselType vesselType)
Does the same thing as VesselDao.findVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByVesselType(int pageNumber,
int pageSize,
VesselType vesselType)
Does the same thing as VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByVesselType(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
VesselType vesselType)
Does the same thing as VesselDao.findVesselByVesselType(int, String, fr.ifremer.allegro.referential.VesselType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByVesselType(int transform,
java.lang.String queryString,
VesselType vesselType)
Does the same thing as VesselDao.findVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType) with an
additional argument called queryString . |
java.util.Collection |
findVesselByVesselType(int transform,
VesselType vesselType)
Does the same thing as VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType) with an
additional flag called transform . |
java.util.Collection |
findVesselByVesselType(java.lang.String queryString,
int pageNumber,
int pageSize,
VesselType vesselType)
Does the same thing as VesselDao.findVesselByVesselType(String, fr.ifremer.allegro.referential.VesselType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findVesselByVesselType(java.lang.String queryString,
VesselType vesselType)
Does the same thing as VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType) with an
additional argument called queryString . |
java.util.Collection |
findVesselByVesselType(VesselType vesselType)
|
java.util.Collection |
getAllVessel()
|
java.util.Collection |
getAllVessel(int transform)
Does the same thing as VesselDao.getAllVessel() with an
additional flag called transform . |
java.util.Collection |
getAllVessel(int pageNumber,
int pageSize)
Does the same thing as VesselDao.getAllVessel() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVessel(int transform,
int pageNumber,
int pageSize)
Does the same thing as VesselDao.getAllVessel(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVessel(int transform,
java.lang.String queryString)
Does the same thing as VesselDao.getAllVessel(int) with an
additional argument called queryString . |
java.util.Collection |
getAllVessel(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as VesselDao.getAllVessel(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVessel(java.lang.String queryString)
Does the same thing as VesselDao.getAllVessel() with an
additional argument called queryString . |
java.util.Collection |
getAllVessel(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as VesselDao.getAllVessel(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVesselSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVesselSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVesselSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVesselSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllVesselSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllVesselSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllVesselSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllVesselSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected RightToProduceDao |
getRightToProduceDao()
Gets the reference to rightToProduceDao . |
protected StatusDao |
getStatusDao()
Gets the reference to statusDao . |
protected VesselOwnerPeriodDao |
getVesselOwnerPeriodDao()
Gets the reference to vesselOwnerPeriodDao . |
protected VesselRegistrationPeriodDao |
getVesselRegistrationPeriodDao()
Gets the reference to vesselRegistrationPeriodDao . |
protected VesselTypeDao |
getVesselTypeDao()
Gets the reference to vesselTypeDao . |
java.lang.Object |
load(int transform,
java.lang.String code)
Does the same thing as VesselDao.load(java.lang.String) with an
additional flag called transform . |
Vessel |
load(java.lang.String code)
Loads an instance of fr.ifremer.allegro.referential.vessel.Vessel from the persistent store. |
java.util.Collection |
loadAll()
Loads all entities of type Vessel . |
java.util.Collection |
loadAll(int transform)
Does the same thing as VesselDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as VesselDao.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 VesselDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteVesselFullVOToEntity(RemoteVesselFullVO source,
Vessel target,
boolean copyIfNull)
Copies the fields of RemoteVesselFullVO to the specified entity. |
void |
remoteVesselFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteVesselFullVO to this
DAO's entity. |
void |
remoteVesselNaturalIdToEntity(RemoteVesselNaturalId source,
Vessel target,
boolean copyIfNull)
Copies the fields of RemoteVesselNaturalId to the specified entity. |
void |
remoteVesselNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteVesselNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(java.lang.String code)
Removes the instance of fr.ifremer.allegro.referential.vessel.Vessel having the given identifier from the persistent store. |
void |
remove(Vessel vessel)
Removes the instance of fr.ifremer.allegro.referential.vessel.Vessel 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 VesselDao.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 |
setRightToProduceDao(RightToProduceDao rightToProduceDao)
Sets the reference to rightToProduceDao . |
void |
setStatusDao(StatusDao statusDao)
Sets the reference to statusDao . |
void |
setVesselOwnerPeriodDao(VesselOwnerPeriodDao vesselOwnerPeriodDao)
Sets the reference to vesselOwnerPeriodDao . |
void |
setVesselRegistrationPeriodDao(VesselRegistrationPeriodDao vesselRegistrationPeriodDao)
Sets the reference to vesselRegistrationPeriodDao . |
void |
setVesselTypeDao(VesselTypeDao vesselTypeDao)
Sets the reference to vesselTypeDao . |
protected ClusterVessel |
toClusterVessel(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterVessel |
toClusterVessel(Vessel entity)
Converts this DAO's entity to an object of type ClusterVessel . |
void |
toClusterVessel(Vessel source,
ClusterVessel target)
Copies the fields of the specified entity to the target value object. |
ClusterVessel[] |
toClusterVesselArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterVessel . |
void |
toClusterVesselCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterVessel . |
protected Vessel |
toEntity(java.lang.Object[] row)
|
protected RemoteVesselFullVO |
toRemoteVesselFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteVesselFullVO |
toRemoteVesselFullVO(Vessel entity)
Converts this DAO's entity to an object of type RemoteVesselFullVO . |
void |
toRemoteVesselFullVO(Vessel source,
RemoteVesselFullVO target)
Copies the fields of the specified entity to the target value object. |
RemoteVesselFullVO[] |
toRemoteVesselFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteVesselFullVO . |
void |
toRemoteVesselFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteVesselFullVO . |
protected RemoteVesselNaturalId |
toRemoteVesselNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteVesselNaturalId |
toRemoteVesselNaturalId(Vessel entity)
Converts this DAO's entity to an object of type RemoteVesselNaturalId . |
void |
toRemoteVesselNaturalId(Vessel source,
RemoteVesselNaturalId target)
Copies the fields of the specified entity to the target value object. |
RemoteVesselNaturalId[] |
toRemoteVesselNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteVesselNaturalId . |
void |
toRemoteVesselNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteVesselNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.vessel.Vessel)
method. |
protected java.lang.Object |
transformEntity(int transform,
Vessel 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.vessel.VesselDao , please note
that the VesselDao.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(Vessel vessel)
Updates the vessel 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.vessel.VesselDao |
---|
clusterVesselToEntity, remoteVesselFullVOToEntity, remoteVesselNaturalIdToEntity |
Constructor Detail |
---|
public VesselDaoBase()
Method Detail |
---|
public void setStatusDao(StatusDao statusDao)
statusDao
.
protected StatusDao getStatusDao()
statusDao
.
public void setVesselTypeDao(VesselTypeDao vesselTypeDao)
vesselTypeDao
.
protected VesselTypeDao getVesselTypeDao()
vesselTypeDao
.
public void setRightToProduceDao(RightToProduceDao rightToProduceDao)
rightToProduceDao
.
protected RightToProduceDao getRightToProduceDao()
rightToProduceDao
.
public void setVesselOwnerPeriodDao(VesselOwnerPeriodDao vesselOwnerPeriodDao)
vesselOwnerPeriodDao
.
protected VesselOwnerPeriodDao getVesselOwnerPeriodDao()
vesselOwnerPeriodDao
.
public void setVesselRegistrationPeriodDao(VesselRegistrationPeriodDao vesselRegistrationPeriodDao)
vesselRegistrationPeriodDao
.
protected VesselRegistrationPeriodDao getVesselRegistrationPeriodDao()
vesselRegistrationPeriodDao
.
public java.lang.Object load(int transform, java.lang.String code)
VesselDao
Does the same thing as VesselDao.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 VesselDao
code
- identifier of the entity to load
VesselDao.load(int, java.lang.String)
public Vessel load(java.lang.String code)
VesselDao
load
in interface VesselDao
VesselDao.load(java.lang.String)
public java.util.Collection loadAll()
VesselDao
Vessel
.
loadAll
in interface VesselDao
VesselDao.loadAll()
public java.util.Collection loadAll(int transform)
VesselDao
Does the same thing as VesselDao.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 VesselDao
transform
- the flag indicating what transformation to use.
VesselDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
VesselDao
Does the same thing as VesselDao.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 VesselDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
VesselDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
VesselDao
Does the same thing as VesselDao.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 VesselDao
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.
VesselDao.loadAll(int, int, int)
public void update(Vessel vessel)
VesselDao
vessel
instance in the persistent store.
update
in interface VesselDao
VesselDao.update(fr.ifremer.allegro.referential.vessel.Vessel)
public void update(java.util.Collection entities)
VesselDao
entities
collection in the persistent store.
update
in interface VesselDao
VesselDao.update(java.util.Collection)
public void remove(Vessel vessel)
VesselDao
remove
in interface VesselDao
VesselDao.remove(fr.ifremer.allegro.referential.vessel.Vessel)
public void remove(java.lang.String code)
VesselDao
identifier
from the persistent store.
remove
in interface VesselDao
VesselDao.remove(java.lang.String)
public void remove(java.util.Collection entities)
VesselDao
entities collection.
- Specified by:
remove
in interface VesselDao
- See Also:
VesselDao.remove(java.util.Collection)
getAllVessel
public java.util.Collection getAllVessel()
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel()
getAllVessel
public java.util.Collection getAllVessel(int transform)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVessel()
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.
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel(int)
getAllVessel
public java.util.Collection getAllVessel(java.lang.String queryString)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVessel()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.getAllVessel()
.
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel(java.lang.String)
getAllVessel
public java.util.Collection getAllVessel(int pageNumber,
int pageSize)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVessel()
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.
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel(int, int)
getAllVessel
public java.util.Collection getAllVessel(java.lang.String queryString,
int pageNumber,
int pageSize)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVessel(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.
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel(String, int, int)
getAllVessel
public java.util.Collection getAllVessel(int transform,
java.lang.String queryString)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVessel(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.getAllVessel(int)
.
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel(int, String)
getAllVessel
public java.util.Collection getAllVessel(int transform,
int pageNumber,
int pageSize)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVessel(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.
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel(int, int, int)
getAllVessel
public java.util.Collection getAllVessel(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVessel(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.
- Specified by:
getAllVessel
in interface VesselDao
- See Also:
VesselDao.getAllVessel(int, java.lang.String, int, int)
findVesselByCode
public Vessel findVesselByCode(java.lang.String code)
- Specified by:
findVesselByCode
in interface VesselDao
- See Also:
VesselDao.findVesselByCode(java.lang.String)
findVesselByCode
public java.lang.Object findVesselByCode(int transform,
java.lang.String code)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByCode(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.
- Specified by:
findVesselByCode
in interface VesselDao
- See Also:
VesselDao.findVesselByCode(int, java.lang.String)
findVesselByCode
public Vessel findVesselByCode(java.lang.String queryString,
java.lang.String code)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByCode(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByCode(java.lang.String)
.
- Specified by:
findVesselByCode
in interface VesselDao
- See Also:
VesselDao.findVesselByCode(java.lang.String, java.lang.String)
findVesselByCode
public java.lang.Object findVesselByCode(int transform,
java.lang.String queryString,
java.lang.String code)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByCode(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByCode(int, java.lang.String code)
.
- Specified by:
findVesselByCode
in interface VesselDao
- See Also:
VesselDao.findVesselByCode(int, java.lang.String, java.lang.String)
findVesselByStatus
public java.util.Collection findVesselByStatus(Status status)
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(fr.ifremer.allegro.referential.Status)
findVesselByStatus
public java.util.Collection findVesselByStatus(int transform,
Status status)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByStatus(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.
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(int, fr.ifremer.allegro.referential.Status)
findVesselByStatus
public java.util.Collection findVesselByStatus(java.lang.String queryString,
Status status)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByStatus(fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByStatus(fr.ifremer.allegro.referential.Status)
.
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)
findVesselByStatus
public java.util.Collection findVesselByStatus(int pageNumber,
int pageSize,
Status status)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByStatus(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.
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(int, int, fr.ifremer.allegro.referential.Status)
findVesselByStatus
public java.util.Collection findVesselByStatus(java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByStatus(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.
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(String, int, int, fr.ifremer.allegro.referential.Status)
findVesselByStatus
public java.util.Collection findVesselByStatus(int transform,
java.lang.String queryString,
Status status)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByStatus(int, fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByStatus(int, fr.ifremer.allegro.referential.Status status)
.
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(int, String, fr.ifremer.allegro.referential.Status)
findVesselByStatus
public java.util.Collection findVesselByStatus(int transform,
int pageNumber,
int pageSize,
Status status)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByStatus(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.
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(int, int, int, fr.ifremer.allegro.referential.Status)
findVesselByStatus
public java.util.Collection findVesselByStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByStatus(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.
- Specified by:
findVesselByStatus
in interface VesselDao
- See Also:
VesselDao.findVesselByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(VesselType vesselType)
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(int transform,
VesselType vesselType)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType)
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.
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(java.lang.String queryString,
VesselType vesselType)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType)
.
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(java.lang.String, fr.ifremer.allegro.referential.VesselType)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(int pageNumber,
int pageSize,
VesselType vesselType)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByVesselType(fr.ifremer.allegro.referential.VesselType)
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.
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(int, int, fr.ifremer.allegro.referential.VesselType)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(java.lang.String queryString,
int pageNumber,
int pageSize,
VesselType vesselType)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByVesselType(String, fr.ifremer.allegro.referential.VesselType)
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.
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(String, int, int, fr.ifremer.allegro.referential.VesselType)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(int transform,
java.lang.String queryString,
VesselType vesselType)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType vesselType)
.
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(int, String, fr.ifremer.allegro.referential.VesselType)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(int transform,
int pageNumber,
int pageSize,
VesselType vesselType)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType)
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.
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(int, int, int, fr.ifremer.allegro.referential.VesselType)
findVesselByVesselType
public java.util.Collection findVesselByVesselType(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
VesselType vesselType)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByVesselType(int, String, fr.ifremer.allegro.referential.VesselType)
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.
- Specified by:
findVesselByVesselType
in interface VesselDao
- See Also:
VesselDao.findVesselByVesselType(int, java.lang.String, int, int, fr.ifremer.allegro.referential.VesselType)
findVesselByNaturalId
public Vessel findVesselByNaturalId(java.lang.String code)
- Specified by:
findVesselByNaturalId
in interface VesselDao
- See Also:
VesselDao.findVesselByNaturalId(java.lang.String)
findVesselByNaturalId
public java.lang.Object findVesselByNaturalId(int transform,
java.lang.String code)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByNaturalId(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.
- Specified by:
findVesselByNaturalId
in interface VesselDao
- See Also:
VesselDao.findVesselByNaturalId(int, java.lang.String)
findVesselByNaturalId
public Vessel findVesselByNaturalId(java.lang.String queryString,
java.lang.String code)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByNaturalId(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByNaturalId(java.lang.String)
.
- Specified by:
findVesselByNaturalId
in interface VesselDao
- See Also:
VesselDao.findVesselByNaturalId(java.lang.String, java.lang.String)
findVesselByNaturalId
public java.lang.Object findVesselByNaturalId(int transform,
java.lang.String queryString,
java.lang.String code)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.findVesselByNaturalId(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.findVesselByNaturalId(int, java.lang.String code)
.
- Specified by:
findVesselByNaturalId
in interface VesselDao
- See Also:
VesselDao.findVesselByNaturalId(int, java.lang.String, java.lang.String)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(java.sql.Timestamp updateDate)
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(java.sql.Timestamp)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(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.
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(int, java.sql.Timestamp)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.getAllVesselSinceDateSynchro(java.sql.Timestamp)
.
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(java.lang.String, java.sql.Timestamp)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(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.
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(int, int, java.sql.Timestamp)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(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.
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(String, int, int, java.sql.Timestamp)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in VesselDao.getAllVesselSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(int, String, java.sql.Timestamp)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(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.
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(int, int, int, java.sql.Timestamp)
getAllVesselSinceDateSynchro
public java.util.Collection getAllVesselSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
- Description copied from interface:
VesselDao
Does the same thing as VesselDao.getAllVesselSinceDateSynchro(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.
- Specified by:
getAllVesselSinceDateSynchro
in interface VesselDao
- See Also:
VesselDao.getAllVesselSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
transformEntity
protected java.lang.Object transformEntity(int transform,
Vessel 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.vessel.VesselDao
, please note
that the VesselDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Vessel
- VesselDao.TRANSFORM_NONE
RemoteVesselFullVO
- TRANSFORM_REMOTEVESSELFULLVO
RemoteVesselNaturalId
- TRANSFORM_REMOTEVESSELNATURALID
ClusterVessel
- TRANSFORM_CLUSTERVESSEL
If the integer argument value is unknown VesselDao.TRANSFORM_NONE
is assumed.
- Parameters:
transform
- one of the constants declared in VesselDao
entity
- an entity that was found
- Returns:
- the transformed entity (i.e. new value object, etc)
- See Also:
transformEntities(int,java.util.Collection)
transformEntities
protected void transformEntities(int transform,
java.util.Collection entities)
- Transforms a collection of entities using the
transformEntity(int,fr.ifremer.allegro.referential.vessel.Vessel)
method. This method does not instantiate a new collection.
This method is to be used internally only.
- Parameters:
transform
- one of the constants declared in fr.ifremer.allegro.referential.vessel.VesselDao
entities
- the collection of entities to transform- See Also:
transformEntity(int,fr.ifremer.allegro.referential.vessel.Vessel)
toEntity
protected Vessel toEntity(java.lang.Object[] row)
toRemoteVesselFullVOCollection
public final void toRemoteVesselFullVOCollection(java.util.Collection entities)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to a Collection of instances of type
RemoteVesselFullVO
.
- Specified by:
toRemoteVesselFullVOCollection
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselFullVOCollection(java.util.Collection)
toRemoteVesselFullVOArray
public final RemoteVesselFullVO[] toRemoteVesselFullVOArray(java.util.Collection entities)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to an array of instances of type
RemoteVesselFullVO
.
- Specified by:
toRemoteVesselFullVOArray
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselFullVOArray(java.util.Collection)
toRemoteVesselFullVO
protected RemoteVesselFullVO toRemoteVesselFullVO(java.lang.Object[] row)
- Default implementation for transforming the results of a report query into a value object. This
implementation exists for convenience reasons only. It needs only be overridden in the
VesselDaoImpl
class if you intend to use reporting queries.
- See Also:
VesselDao.toRemoteVesselFullVO(fr.ifremer.allegro.referential.vessel.Vessel)
remoteVesselFullVOToEntityCollection
public final void remoteVesselFullVOToEntityCollection(java.util.Collection instances)
- Description copied from interface:
VesselDao
- Converts a Collection of instances of type
RemoteVesselFullVO
to this
DAO's entity.
- Specified by:
remoteVesselFullVOToEntityCollection
in interface VesselDao
- See Also:
VesselDao.remoteVesselFullVOToEntityCollection(java.util.Collection)
toRemoteVesselFullVO
public void toRemoteVesselFullVO(Vessel source,
RemoteVesselFullVO target)
- Description copied from interface:
VesselDao
- Copies the fields of the specified entity to the target value object. This method is similar to
toRemoteVesselFullVO(), but it does not handle any attributes in the target
value object that are "read-only" (as those do not have setter methods exposed).
- Specified by:
toRemoteVesselFullVO
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselFullVO(fr.ifremer.allegro.referential.vessel.Vessel, fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselFullVO)
toRemoteVesselFullVO
public RemoteVesselFullVO toRemoteVesselFullVO(Vessel entity)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to an object of type
RemoteVesselFullVO
.
- Specified by:
toRemoteVesselFullVO
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselFullVO(fr.ifremer.allegro.referential.vessel.Vessel)
remoteVesselFullVOToEntity
public void remoteVesselFullVOToEntity(RemoteVesselFullVO source,
Vessel target,
boolean copyIfNull)
- Description copied from interface:
VesselDao
- Copies the fields of
RemoteVesselFullVO
to the specified entity.
- Specified by:
remoteVesselFullVOToEntity
in interface VesselDao
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.- See Also:
fr.ifremer.allegro.referential.vessel.VesselDao#remoteVesselFullVOToEntity(fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselFullVO, fr.ifremer.allegro.referential.vessel.Vessel)
toRemoteVesselNaturalIdCollection
public final void toRemoteVesselNaturalIdCollection(java.util.Collection entities)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to a Collection of instances of type
RemoteVesselNaturalId
.
- Specified by:
toRemoteVesselNaturalIdCollection
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselNaturalIdCollection(java.util.Collection)
toRemoteVesselNaturalIdArray
public final RemoteVesselNaturalId[] toRemoteVesselNaturalIdArray(java.util.Collection entities)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to an array of instances of type
RemoteVesselNaturalId
.
- Specified by:
toRemoteVesselNaturalIdArray
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselNaturalIdArray(java.util.Collection)
toRemoteVesselNaturalId
protected RemoteVesselNaturalId toRemoteVesselNaturalId(java.lang.Object[] row)
- Default implementation for transforming the results of a report query into a value object. This
implementation exists for convenience reasons only. It needs only be overridden in the
VesselDaoImpl
class if you intend to use reporting queries.
- See Also:
VesselDao.toRemoteVesselNaturalId(fr.ifremer.allegro.referential.vessel.Vessel)
remoteVesselNaturalIdToEntityCollection
public final void remoteVesselNaturalIdToEntityCollection(java.util.Collection instances)
- Description copied from interface:
VesselDao
- Converts a Collection of instances of type
RemoteVesselNaturalId
to this
DAO's entity.
- Specified by:
remoteVesselNaturalIdToEntityCollection
in interface VesselDao
- See Also:
VesselDao.remoteVesselNaturalIdToEntityCollection(java.util.Collection)
toRemoteVesselNaturalId
public void toRemoteVesselNaturalId(Vessel source,
RemoteVesselNaturalId target)
- Description copied from interface:
VesselDao
- Copies the fields of the specified entity to the target value object. This method is similar to
toRemoteVesselNaturalId(), but it does not handle any attributes in the target
value object that are "read-only" (as those do not have setter methods exposed).
- Specified by:
toRemoteVesselNaturalId
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselNaturalId(fr.ifremer.allegro.referential.vessel.Vessel, fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselNaturalId)
toRemoteVesselNaturalId
public RemoteVesselNaturalId toRemoteVesselNaturalId(Vessel entity)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to an object of type
RemoteVesselNaturalId
.
- Specified by:
toRemoteVesselNaturalId
in interface VesselDao
- See Also:
VesselDao.toRemoteVesselNaturalId(fr.ifremer.allegro.referential.vessel.Vessel)
remoteVesselNaturalIdToEntity
public void remoteVesselNaturalIdToEntity(RemoteVesselNaturalId source,
Vessel target,
boolean copyIfNull)
- Description copied from interface:
VesselDao
- Copies the fields of
RemoteVesselNaturalId
to the specified entity.
- Specified by:
remoteVesselNaturalIdToEntity
in interface VesselDao
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.- See Also:
fr.ifremer.allegro.referential.vessel.VesselDao#remoteVesselNaturalIdToEntity(fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselNaturalId, fr.ifremer.allegro.referential.vessel.Vessel)
toClusterVesselCollection
public final void toClusterVesselCollection(java.util.Collection entities)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to a Collection of instances of type
ClusterVessel
.
- Specified by:
toClusterVesselCollection
in interface VesselDao
- See Also:
VesselDao.toClusterVesselCollection(java.util.Collection)
toClusterVesselArray
public final ClusterVessel[] toClusterVesselArray(java.util.Collection entities)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to an array of instances of type
ClusterVessel
.
- Specified by:
toClusterVesselArray
in interface VesselDao
- See Also:
VesselDao.toClusterVesselArray(java.util.Collection)
toClusterVessel
protected ClusterVessel toClusterVessel(java.lang.Object[] row)
- Default implementation for transforming the results of a report query into a value object. This
implementation exists for convenience reasons only. It needs only be overridden in the
VesselDaoImpl
class if you intend to use reporting queries.
- See Also:
VesselDao.toClusterVessel(fr.ifremer.allegro.referential.vessel.Vessel)
clusterVesselToEntityCollection
public final void clusterVesselToEntityCollection(java.util.Collection instances)
- Description copied from interface:
VesselDao
- Converts a Collection of instances of type
ClusterVessel
to this
DAO's entity.
- Specified by:
clusterVesselToEntityCollection
in interface VesselDao
- See Also:
VesselDao.clusterVesselToEntityCollection(java.util.Collection)
toClusterVessel
public void toClusterVessel(Vessel source,
ClusterVessel target)
- Description copied from interface:
VesselDao
- Copies the fields of the specified entity to the target value object. This method is similar to
toClusterVessel(), but it does not handle any attributes in the target
value object that are "read-only" (as those do not have setter methods exposed).
- Specified by:
toClusterVessel
in interface VesselDao
- See Also:
VesselDao.toClusterVessel(fr.ifremer.allegro.referential.vessel.Vessel, fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVessel)
toClusterVessel
public ClusterVessel toClusterVessel(Vessel entity)
- Description copied from interface:
VesselDao
- Converts this DAO's entity to an object of type
ClusterVessel
.
- Specified by:
toClusterVessel
in interface VesselDao
- See Also:
VesselDao.toClusterVessel(fr.ifremer.allegro.referential.vessel.Vessel)
clusterVesselToEntity
public void clusterVesselToEntity(ClusterVessel source,
Vessel target,
boolean copyIfNull)
- Description copied from interface:
VesselDao
- Copies the fields of
ClusterVessel
to the specified entity.
- Specified by:
clusterVesselToEntity
in interface VesselDao
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.- See Also:
fr.ifremer.allegro.referential.vessel.VesselDao#clusterVesselToEntity(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVessel, fr.ifremer.allegro.referential.vessel.Vessel)
getPrincipal
protected java.security.Principal getPrincipal()
- Gets the current
principal
if one has been set,
otherwise returns null
.
- Returns:
- the current principal
search
public PaginationResult search(int transform,
int pageNumber,
int pageSize,
Search search)
- Description copied from interface:
VesselDao
- Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an
additional two flags called
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
- Specified by:
search
in interface VesselDao
- Parameters:
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.
- Returns:
- any found results from the search wrapped in a
PaginationResult
instance. - See Also:
VesselDao.search(int, int, int, fr.ifremer.allegro.Search)
search
public PaginationResult search(int pageNumber,
int pageSize,
Search search)
- Description copied from interface:
VesselDao
- Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an
additional two flags called
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
- Specified by:
search
in interface VesselDao
- Parameters:
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.
- Returns:
- any found results from the search wrapped in a
PaginationResult
instance. - See Also:
VesselDao.search(int, int, fr.ifremer.allegro.Search)
search
public java.util.Set search(int transform,
Search search)
- Description copied from interface:
VesselDao
- Does the same thing as
VesselDao.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.
- Specified by:
search
in interface VesselDao
- Parameters:
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
- Returns:
- any found results from the search.
- See Also:
VesselDao.search(int, fr.ifremer.allegro.Search)
search
public java.util.Set search(Search search)
- Description copied from interface:
VesselDao
- Performs a search using the parameters specified in the given
search
object.
- Specified by:
search
in interface VesselDao
- Parameters:
search
- the search object which provides the search parameters and pagination specification.
- Returns:
- any found results from the search.
- See Also:
VesselDao.search(fr.ifremer.allegro.Search)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2008-2010 IFREMER. All Rights Reserved.