fr.ifremer.allegro.referential.vessel
Interface FishingVesselDao

All Superinterfaces:
VesselDao
All Known Implementing Classes:
FishingVesselDaoBase, FishingVesselDaoImpl

public interface FishingVesselDao
extends VesselDao

See Also:
FishingVessel

Field Summary
static int TRANSFORM_CLUSTERFISHINGVESSEL
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEFISHINGVESSELFULLVO
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEFISHINGVESSELNATURALID
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
 
Fields inherited from interface fr.ifremer.allegro.referential.vessel.VesselDao
TRANSFORM_CLUSTERVESSEL, TRANSFORM_NONE, TRANSFORM_REMOTEVESSELFULLVO, TRANSFORM_REMOTEVESSELNATURALID
 
Method Summary
 FishingVessel clusterFishingVesselToEntity(ClusterFishingVessel clusterFishingVessel)
          Converts an instance of type ClusterFishingVessel to this DAO's entity.
 void clusterFishingVesselToEntity(ClusterFishingVessel source, FishingVessel target, boolean copyIfNull)
          Copies the fields of ClusterFishingVessel to the specified entity.
 void clusterFishingVesselToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterFishingVessel to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.vessel.FishingVessel and adds from the passed in entities collection
 Vessel create(FishingVessel fishingVessel)
          Creates an instance of fr.ifremer.allegro.referential.vessel.FishingVessel and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as create(fr.ifremer.allegro.referential.vessel.FishingVessel) with an additional flag called transform.
 java.lang.Object create(int transform, FishingVessel fishingVessel)
           Does the same thing as create(fr.ifremer.allegro.referential.vessel.FishingVessel) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, Status status, java.util.Collection vesselFeatures, VesselType vesselType)
           Does the same thing as create(java.lang.String,fr.ifremer.allegro.referential.Status,java.util.Collection,fr.ifremer.allegro.referential.VesselType) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.sql.Timestamp updateDate, java.util.Collection rightToProduces, java.util.Collection vesselOwnerPeriods, java.util.Collection vesselRegistrationPeriods, Status status, VesselType vesselType, java.util.Collection vesselFeatures, java.util.Collection vesselMasterPeriods)
           Does the same thing as create(java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.Status,fr.ifremer.allegro.referential.VesselType,java.util.Collection,java.util.Collection) with an additional flag called transform.
 Vessel create(java.lang.String code, Status status, java.util.Collection vesselFeatures, VesselType vesselType)
           Creates a new fr.ifremer.allegro.referential.vessel.FishingVessel instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Vessel create(java.lang.String code, java.sql.Timestamp updateDate, java.util.Collection rightToProduces, java.util.Collection vesselOwnerPeriods, java.util.Collection vesselRegistrationPeriods, Status status, VesselType vesselType, java.util.Collection vesselFeatures, java.util.Collection vesselMasterPeriods)
           Creates a new fr.ifremer.allegro.referential.vessel.FishingVessel instance from all attributes and properties and adds it to the persistent store.
 FishingVessel createFromClusterFishingVessel(ClusterFishingVessel clusterFishingVessel)
           
 java.lang.Object findFishingVesselByCode(int transform, java.lang.String code)
           Does the same thing as findFishingVesselByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findFishingVesselByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as findFishingVesselByCode(int, java.lang.String) with an additional argument called queryString.
 FishingVessel findFishingVesselByCode(java.lang.String code)
           
 FishingVessel findFishingVesselByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as findFishingVesselByCode(java.lang.String) with an additional argument called queryString.
 java.lang.Object findFishingVesselByNaturalId(int transform, java.lang.String code)
           Does the same thing as findFishingVesselByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findFishingVesselByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as findFishingVesselByNaturalId(int, java.lang.String) with an additional argument called queryString.
 FishingVessel findFishingVesselByNaturalId(java.lang.String code)
           
 FishingVessel findFishingVesselByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as findFishingVesselByNaturalId(java.lang.String) with an additional argument called queryString.
 java.util.Collection findFishingVesselByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as findFishingVesselByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as findFishingVesselByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByStatus(int transform, Status status)
           Does the same thing as findFishingVesselByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findFishingVesselByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as findFishingVesselByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as findFishingVesselByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findFishingVesselByStatus(Status status)
           
 java.util.Collection findFishingVesselByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as findFishingVesselByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByStatus(java.lang.String queryString, Status status)
           Does the same thing as findFishingVesselByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findFishingVesselByVesselType(int transform, int pageNumber, int pageSize, VesselType vesselType)
           Does the same thing as findFishingVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByVesselType(int pageNumber, int pageSize, VesselType vesselType)
           Does the same thing as findFishingVesselByVesselType(fr.ifremer.allegro.referential.VesselType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByVesselType(int transform, java.lang.String queryString, int pageNumber, int pageSize, VesselType vesselType)
           Does the same thing as findFishingVesselByVesselType(int, String, fr.ifremer.allegro.referential.VesselType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByVesselType(int transform, java.lang.String queryString, VesselType vesselType)
           Does the same thing as findFishingVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType) with an additional argument called queryString.
 java.util.Collection findFishingVesselByVesselType(int transform, VesselType vesselType)
           Does the same thing as findFishingVesselByVesselType(fr.ifremer.allegro.referential.VesselType) with an additional flag called transform.
 java.util.Collection findFishingVesselByVesselType(java.lang.String queryString, int pageNumber, int pageSize, VesselType vesselType)
           Does the same thing as findFishingVesselByVesselType(String, fr.ifremer.allegro.referential.VesselType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFishingVesselByVesselType(java.lang.String queryString, VesselType vesselType)
           Does the same thing as findFishingVesselByVesselType(fr.ifremer.allegro.referential.VesselType) with an additional argument called queryString.
 java.util.Collection findFishingVesselByVesselType(VesselType vesselType)
           
 ClusterFishingVessel[] getAllClusterFishingVesselSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize, java.lang.String[] fishingVesselCodes)
           
 java.util.Collection getAllFishingVessel()
           
 java.util.Collection getAllFishingVessel(int transform)
           Does the same thing as getAllFishingVessel() with an additional flag called transform.
 java.util.Collection getAllFishingVessel(int pageNumber, int pageSize)
           Does the same thing as getAllFishingVessel() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVessel(int transform, int pageNumber, int pageSize)
           Does the same thing as getAllFishingVessel(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVessel(int transform, java.lang.String queryString)
           Does the same thing as getAllFishingVessel(int) with an additional argument called queryString.
 java.util.Collection getAllFishingVessel(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllFishingVessel(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVessel(java.lang.String queryString)
           Does the same thing as getAllFishingVessel() with an additional argument called queryString.
 java.util.Collection getAllFishingVessel(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllFishingVessel(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVesselSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllFishingVesselSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVesselSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllFishingVesselSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVesselSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllFishingVesselSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVesselSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllFishingVesselSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllFishingVesselSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as getAllFishingVesselSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllFishingVesselSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllFishingVesselSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFishingVesselSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllFishingVesselSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllFishingVesselSinceDateSynchro(java.sql.Timestamp updateDate)
           
 java.lang.Object load(int transform, java.lang.String code)
           Does the same thing as 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.FishingVessel from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type FishingVessel.
 java.util.Collection loadAll(int transform)
           Does the same thing as loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as 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 loadAll(int) with an additional two arguments called pageNumber and pageSize.
 FishingVessel remoteFishingVesselFullVOToEntity(RemoteFishingVesselFullVO remoteFishingVesselFullVO)
          Converts an instance of type RemoteFishingVesselFullVO to this DAO's entity.
 void remoteFishingVesselFullVOToEntity(RemoteFishingVesselFullVO source, FishingVessel target, boolean copyIfNull)
          Copies the fields of RemoteFishingVesselFullVO to the specified entity.
 void remoteFishingVesselFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteFishingVesselFullVO to this DAO's entity.
 FishingVessel remoteFishingVesselNaturalIdToEntity(RemoteFishingVesselNaturalId remoteFishingVesselNaturalId)
          Converts an instance of type RemoteFishingVesselNaturalId to this DAO's entity.
 void remoteFishingVesselNaturalIdToEntity(RemoteFishingVesselNaturalId source, FishingVessel target, boolean copyIfNull)
          Copies the fields of RemoteFishingVesselNaturalId to the specified entity.
 void remoteFishingVesselNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteFishingVesselNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(FishingVessel fishingVessel)
          Removes the instance of fr.ifremer.allegro.referential.vessel.FishingVessel from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.referential.vessel.FishingVessel having the given identifier from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as 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.
 ClusterFishingVessel toClusterFishingVessel(FishingVessel entity)
          Converts this DAO's entity to an object of type ClusterFishingVessel.
 void toClusterFishingVessel(FishingVessel source, ClusterFishingVessel target)
          Copies the fields of the specified entity to the target value object.
 ClusterFishingVessel[] toClusterFishingVesselArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterFishingVessel.
 void toClusterFishingVesselCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterFishingVessel.
 RemoteFishingVesselFullVO toRemoteFishingVesselFullVO(FishingVessel entity)
          Converts this DAO's entity to an object of type RemoteFishingVesselFullVO.
 void toRemoteFishingVesselFullVO(FishingVessel source, RemoteFishingVesselFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteFishingVesselFullVO[] toRemoteFishingVesselFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteFishingVesselFullVO.
 void toRemoteFishingVesselFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteFishingVesselFullVO.
 RemoteFishingVesselNaturalId toRemoteFishingVesselNaturalId(FishingVessel entity)
          Converts this DAO's entity to an object of type RemoteFishingVesselNaturalId.
 void toRemoteFishingVesselNaturalId(FishingVessel source, RemoteFishingVesselNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteFishingVesselNaturalId[] toRemoteFishingVesselNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteFishingVesselNaturalId.
 void toRemoteFishingVesselNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteFishingVesselNaturalId.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(FishingVessel fishingVessel)
          Updates the fishingVessel instance in the persistent store.
 
Methods inherited from interface fr.ifremer.allegro.referential.vessel.VesselDao
clusterVesselToEntity, clusterVesselToEntity, clusterVesselToEntityCollection, findVesselByCode, findVesselByCode, findVesselByCode, findVesselByCode, findVesselByNaturalId, findVesselByNaturalId, findVesselByNaturalId, findVesselByNaturalId, findVesselByStatus, findVesselByStatus, findVesselByStatus, findVesselByStatus, findVesselByStatus, findVesselByStatus, findVesselByStatus, findVesselByStatus, findVesselByVesselType, findVesselByVesselType, findVesselByVesselType, findVesselByVesselType, findVesselByVesselType, findVesselByVesselType, findVesselByVesselType, findVesselByVesselType, getAllVessel, getAllVessel, getAllVessel, getAllVessel, getAllVessel, getAllVessel, getAllVessel, getAllVessel, getAllVesselSinceDateSynchro, getAllVesselSinceDateSynchro, getAllVesselSinceDateSynchro, getAllVesselSinceDateSynchro, getAllVesselSinceDateSynchro, getAllVesselSinceDateSynchro, getAllVesselSinceDateSynchro, getAllVesselSinceDateSynchro, remoteVesselFullVOToEntity, remoteVesselFullVOToEntity, remoteVesselFullVOToEntityCollection, remoteVesselNaturalIdToEntity, remoteVesselNaturalIdToEntity, remoteVesselNaturalIdToEntityCollection, remove, toClusterVessel, toClusterVessel, toClusterVesselArray, toClusterVesselCollection, toRemoteVesselFullVO, toRemoteVesselFullVO, toRemoteVesselFullVOArray, toRemoteVesselFullVOCollection, toRemoteVesselNaturalId, toRemoteVesselNaturalId, toRemoteVesselNaturalIdArray, toRemoteVesselNaturalIdCollection, update
 

Field Detail

TRANSFORM_REMOTEFISHINGVESSELFULLVO

static final int TRANSFORM_REMOTEFISHINGVESSELFULLVO
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type RemoteFishingVesselFullVO.

See Also:
Constant Field Values

TRANSFORM_REMOTEFISHINGVESSELNATURALID

static final int TRANSFORM_REMOTEFISHINGVESSELNATURALID
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type RemoteFishingVesselNaturalId.

See Also:
Constant Field Values

TRANSFORM_CLUSTERFISHINGVESSEL

static final int TRANSFORM_CLUSTERFISHINGVESSEL
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type ClusterFishingVessel.

See Also:
Constant Field Values
Method Detail

toRemoteFishingVesselFullVO

void toRemoteFishingVesselFullVO(FishingVessel source,
                                 RemoteFishingVesselFullVO target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteFishingVesselFullVO(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteFishingVesselFullVO

RemoteFishingVesselFullVO toRemoteFishingVesselFullVO(FishingVessel entity)
Converts this DAO's entity to an object of type RemoteFishingVesselFullVO.


toRemoteFishingVesselFullVOCollection

void toRemoteFishingVesselFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteFishingVesselFullVO.


toRemoteFishingVesselFullVOArray

RemoteFishingVesselFullVO[] toRemoteFishingVesselFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteFishingVesselFullVO.


remoteFishingVesselFullVOToEntity

void remoteFishingVesselFullVOToEntity(RemoteFishingVesselFullVO source,
                                       FishingVessel target,
                                       boolean copyIfNull)
Copies the fields of RemoteFishingVesselFullVO to the specified entity.

Parameters:
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.

remoteFishingVesselFullVOToEntity

FishingVessel remoteFishingVesselFullVOToEntity(RemoteFishingVesselFullVO remoteFishingVesselFullVO)
Converts an instance of type RemoteFishingVesselFullVO to this DAO's entity.


remoteFishingVesselFullVOToEntityCollection

void remoteFishingVesselFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteFishingVesselFullVO to this DAO's entity.


toRemoteFishingVesselNaturalId

void toRemoteFishingVesselNaturalId(FishingVessel source,
                                    RemoteFishingVesselNaturalId target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteFishingVesselNaturalId(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteFishingVesselNaturalId

RemoteFishingVesselNaturalId toRemoteFishingVesselNaturalId(FishingVessel entity)
Converts this DAO's entity to an object of type RemoteFishingVesselNaturalId.


toRemoteFishingVesselNaturalIdCollection

void toRemoteFishingVesselNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteFishingVesselNaturalId.


toRemoteFishingVesselNaturalIdArray

RemoteFishingVesselNaturalId[] toRemoteFishingVesselNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteFishingVesselNaturalId.


remoteFishingVesselNaturalIdToEntity

void remoteFishingVesselNaturalIdToEntity(RemoteFishingVesselNaturalId source,
                                          FishingVessel target,
                                          boolean copyIfNull)
Copies the fields of RemoteFishingVesselNaturalId to the specified entity.

Parameters:
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.

remoteFishingVesselNaturalIdToEntity

FishingVessel remoteFishingVesselNaturalIdToEntity(RemoteFishingVesselNaturalId remoteFishingVesselNaturalId)
Converts an instance of type RemoteFishingVesselNaturalId to this DAO's entity.


remoteFishingVesselNaturalIdToEntityCollection

void remoteFishingVesselNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteFishingVesselNaturalId to this DAO's entity.


toClusterFishingVessel

void toClusterFishingVessel(FishingVessel source,
                            ClusterFishingVessel target)
Copies the fields of the specified entity to the target value object. This method is similar to toClusterFishingVessel(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toClusterFishingVessel

ClusterFishingVessel toClusterFishingVessel(FishingVessel entity)
Converts this DAO's entity to an object of type ClusterFishingVessel.


toClusterFishingVesselCollection

void toClusterFishingVesselCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterFishingVessel.


toClusterFishingVesselArray

ClusterFishingVessel[] toClusterFishingVesselArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterFishingVessel.


clusterFishingVesselToEntity

void clusterFishingVesselToEntity(ClusterFishingVessel source,
                                  FishingVessel target,
                                  boolean copyIfNull)
Copies the fields of ClusterFishingVessel to the specified entity.

Parameters:
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.

clusterFishingVesselToEntity

FishingVessel clusterFishingVesselToEntity(ClusterFishingVessel clusterFishingVessel)
Converts an instance of type ClusterFishingVessel to this DAO's entity.


clusterFishingVesselToEntityCollection

void clusterFishingVesselToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterFishingVessel to this DAO's entity.


load

Vessel load(java.lang.String code)
Loads an instance of fr.ifremer.allegro.referential.vessel.FishingVessel from the persistent store.

Specified by:
load in interface VesselDao

load

java.lang.Object load(int transform,
                      java.lang.String code)

Does the same thing as 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.

Specified by:
load in interface VesselDao
Parameters:
code - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.

loadAll

java.util.Collection loadAll()
Loads all entities of type FishingVessel.

Specified by:
loadAll in interface VesselDao
Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int transform)

Does the same thing as 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.

Specified by:
loadAll in interface VesselDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int pageNumber,
                             int pageSize)

Does the same thing as 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.

Specified by:
loadAll in interface VesselDao
Parameters:
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int transform,
                             int pageNumber,
                             int pageSize)

Does the same thing as 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.

Specified by:
loadAll in interface VesselDao
Parameters:
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.
Returns:
the loaded entities.

create

Vessel create(FishingVessel fishingVessel)
Creates an instance of fr.ifremer.allegro.referential.vessel.FishingVessel and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        FishingVessel fishingVessel)

Does the same thing as create(fr.ifremer.allegro.referential.vessel.FishingVessel) 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

java.util.Collection create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.vessel.FishingVessel and adds from the passed in entities collection

Parameters:
entities - the collection of fr.ifremer.allegro.referential.vessel.FishingVessel instances to create.
Returns:
the created instances.

create

java.util.Collection create(int transform,
                            java.util.Collection entities)

Does the same thing as create(fr.ifremer.allegro.referential.vessel.FishingVessel) 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

Vessel create(java.lang.String code,
              java.sql.Timestamp updateDate,
              java.util.Collection rightToProduces,
              java.util.Collection vesselOwnerPeriods,
              java.util.Collection vesselRegistrationPeriods,
              Status status,
              VesselType vesselType,
              java.util.Collection vesselFeatures,
              java.util.Collection vesselMasterPeriods)

Creates a new fr.ifremer.allegro.referential.vessel.FishingVessel instance from all attributes and properties and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        java.lang.String code,
                        java.sql.Timestamp updateDate,
                        java.util.Collection rightToProduces,
                        java.util.Collection vesselOwnerPeriods,
                        java.util.Collection vesselRegistrationPeriods,
                        Status status,
                        VesselType vesselType,
                        java.util.Collection vesselFeatures,
                        java.util.Collection vesselMasterPeriods)

Does the same thing as create(java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.Status,fr.ifremer.allegro.referential.VesselType,java.util.Collection,java.util.Collection) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.


create

Vessel create(java.lang.String code,
              Status status,
              java.util.Collection vesselFeatures,
              VesselType vesselType)

Creates a new fr.ifremer.allegro.referential.vessel.FishingVessel instance from only required properties (attributes and association ends) and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        java.lang.String code,
                        Status status,
                        java.util.Collection vesselFeatures,
                        VesselType vesselType)

Does the same thing as create(java.lang.String,fr.ifremer.allegro.referential.Status,java.util.Collection,fr.ifremer.allegro.referential.VesselType) 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.


update

void update(FishingVessel fishingVessel)
Updates the fishingVessel instance in the persistent store.


update

void update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store.

Specified by:
update in interface VesselDao

remove

void remove(FishingVessel fishingVessel)
Removes the instance of fr.ifremer.allegro.referential.vessel.FishingVessel from the persistent store.


remove

void remove(java.lang.String code)
Removes the instance of fr.ifremer.allegro.referential.vessel.FishingVessel having the given identifier from the persistent store.

Specified by:
remove in interface VesselDao

remove

void remove(java.util.Collection entities)
Removes all entities in the given entities collection.

Specified by:
remove in interface VesselDao

getAllFishingVessel

java.util.Collection getAllFishingVessel()

getAllFishingVessel

java.util.Collection getAllFishingVessel(java.lang.String queryString)

Does the same thing as getAllFishingVessel() with an additional argument called queryString. This queryString argument allows you to override the query string defined in getAllFishingVessel().


getAllFishingVessel

java.util.Collection getAllFishingVessel(int pageNumber,
                                         int pageSize)

Does the same thing as getAllFishingVessel() 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.


getAllFishingVessel

java.util.Collection getAllFishingVessel(java.lang.String queryString,
                                         int pageNumber,
                                         int pageSize)

Does the same thing as getAllFishingVessel(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.


getAllFishingVessel

java.util.Collection getAllFishingVessel(int transform)

Does the same thing as getAllFishingVessel() 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.


getAllFishingVessel

java.util.Collection getAllFishingVessel(int transform,
                                         int pageNumber,
                                         int pageSize)

Does the same thing as getAllFishingVessel(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.


getAllFishingVessel

java.util.Collection getAllFishingVessel(int transform,
                                         java.lang.String queryString)

Does the same thing as getAllFishingVessel(int) with an additional argument called queryString. This queryString argument allows you to override the query string defined in getAllFishingVessel(int).


getAllFishingVessel

java.util.Collection getAllFishingVessel(int transform,
                                         java.lang.String queryString,
                                         int pageNumber,
                                         int pageSize)

Does the same thing as getAllFishingVessel(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.


findFishingVesselByCode

FishingVessel findFishingVesselByCode(java.lang.String code)

findFishingVesselByCode

FishingVessel findFishingVesselByCode(java.lang.String queryString,
                                      java.lang.String code)

Does the same thing as findFishingVesselByCode(java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByCode(java.lang.String).


findFishingVesselByCode

java.lang.Object findFishingVesselByCode(int transform,
                                         java.lang.String code)

Does the same thing as findFishingVesselByCode(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.


findFishingVesselByCode

java.lang.Object findFishingVesselByCode(int transform,
                                         java.lang.String queryString,
                                         java.lang.String code)

Does the same thing as findFishingVesselByCode(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByCode(int, java.lang.String code).


findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(Status status)

findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(java.lang.String queryString,
                                               Status status)

Does the same thing as findFishingVesselByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByStatus(fr.ifremer.allegro.referential.Status).


findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(int pageNumber,
                                               int pageSize,
                                               Status status)

Does the same thing as findFishingVesselByStatus(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.


findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(java.lang.String queryString,
                                               int pageNumber,
                                               int pageSize,
                                               Status status)

Does the same thing as findFishingVesselByStatus(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.


findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(int transform,
                                               Status status)

Does the same thing as findFishingVesselByStatus(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.


findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(int transform,
                                               int pageNumber,
                                               int pageSize,
                                               Status status)

Does the same thing as findFishingVesselByStatus(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.


findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(int transform,
                                               java.lang.String queryString,
                                               Status status)

Does the same thing as findFishingVesselByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByStatus(int, fr.ifremer.allegro.referential.Status status).


findFishingVesselByStatus

java.util.Collection findFishingVesselByStatus(int transform,
                                               java.lang.String queryString,
                                               int pageNumber,
                                               int pageSize,
                                               Status status)

Does the same thing as findFishingVesselByStatus(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.


findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(VesselType vesselType)

findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(java.lang.String queryString,
                                                   VesselType vesselType)

Does the same thing as findFishingVesselByVesselType(fr.ifremer.allegro.referential.VesselType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByVesselType(fr.ifremer.allegro.referential.VesselType).


findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(int pageNumber,
                                                   int pageSize,
                                                   VesselType vesselType)

Does the same thing as findFishingVesselByVesselType(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.


findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   VesselType vesselType)

Does the same thing as findFishingVesselByVesselType(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.


findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(int transform,
                                                   VesselType vesselType)

Does the same thing as findFishingVesselByVesselType(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.


findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(int transform,
                                                   int pageNumber,
                                                   int pageSize,
                                                   VesselType vesselType)

Does the same thing as findFishingVesselByVesselType(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.


findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(int transform,
                                                   java.lang.String queryString,
                                                   VesselType vesselType)

Does the same thing as findFishingVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByVesselType(int, fr.ifremer.allegro.referential.VesselType vesselType).


findFishingVesselByVesselType

java.util.Collection findFishingVesselByVesselType(int transform,
                                                   java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   VesselType vesselType)

Does the same thing as findFishingVesselByVesselType(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.


findFishingVesselByNaturalId

FishingVessel findFishingVesselByNaturalId(java.lang.String code)

findFishingVesselByNaturalId

FishingVessel findFishingVesselByNaturalId(java.lang.String queryString,
                                           java.lang.String code)

Does the same thing as findFishingVesselByNaturalId(java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByNaturalId(java.lang.String).


findFishingVesselByNaturalId

java.lang.Object findFishingVesselByNaturalId(int transform,
                                              java.lang.String code)

Does the same thing as findFishingVesselByNaturalId(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.


findFishingVesselByNaturalId

java.lang.Object findFishingVesselByNaturalId(int transform,
                                              java.lang.String queryString,
                                              java.lang.String code)

Does the same thing as findFishingVesselByNaturalId(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findFishingVesselByNaturalId(int, java.lang.String code).


getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(java.sql.Timestamp updateDate)

getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(java.lang.String queryString,
                                                         java.sql.Timestamp updateDate)

Does the same thing as getAllFishingVesselSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in getAllFishingVesselSinceDateSynchro(java.sql.Timestamp).


getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(int pageNumber,
                                                         int pageSize,
                                                         java.sql.Timestamp updateDate)

Does the same thing as getAllFishingVesselSinceDateSynchro(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.


getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         java.sql.Timestamp updateDate)

Does the same thing as getAllFishingVesselSinceDateSynchro(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.


getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(int transform,
                                                         java.sql.Timestamp updateDate)

Does the same thing as getAllFishingVesselSinceDateSynchro(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.


getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(int transform,
                                                         int pageNumber,
                                                         int pageSize,
                                                         java.sql.Timestamp updateDate)

Does the same thing as getAllFishingVesselSinceDateSynchro(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.


getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(int transform,
                                                         java.lang.String queryString,
                                                         java.sql.Timestamp updateDate)

Does the same thing as getAllFishingVesselSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in getAllFishingVesselSinceDateSynchro(int, java.sql.Timestamp updateDate).


getAllFishingVesselSinceDateSynchro

java.util.Collection getAllFishingVesselSinceDateSynchro(int transform,
                                                         java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         java.sql.Timestamp updateDate)

Does the same thing as getAllFishingVesselSinceDateSynchro(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.


createFromClusterFishingVessel

FishingVessel createFromClusterFishingVessel(ClusterFishingVessel clusterFishingVessel)

getAllClusterFishingVesselSinceDateSynchro

ClusterFishingVessel[] getAllClusterFishingVesselSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                  java.lang.Integer userId,
                                                                  java.lang.Integer[] registrationLocationIds,
                                                                  java.lang.Integer pageNumber,
                                                                  java.lang.Integer pageSize,
                                                                  java.lang.String[] fishingVesselCodes)

search

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. 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 retrieve
pageSize - 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.

search

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. 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 retrieve
pageSize - 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.

search

java.util.Set search(int transform,
                     Search search)
Does the same thing as 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.

search

java.util.Set search(Search search)
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.


Copyright © 2008-2010 IFREMER. All Rights Reserved.