fr.ifremer.allegro.referential.vessel
Class VesselOwnerDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.vessel.VesselOwnerDaoBase
All Implemented Interfaces:
VesselOwnerDao
Direct Known Subclasses:
VesselOwnerDaoImpl

public abstract class VesselOwnerDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements VesselOwnerDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.referential.vessel.VesselOwner.

See Also:
VesselOwner

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.vessel.VesselOwnerDao
TRANSFORM_CLUSTERVESSELOWNER, TRANSFORM_NONE, TRANSFORM_REMOTEVESSELOWNERFULLVO, TRANSFORM_REMOTEVESSELOWNERNATURALID
 
Constructor Summary
VesselOwnerDaoBase()
           
 
Method Summary
 void clusterVesselOwnerToEntity(ClusterVesselOwner source, VesselOwner target, boolean copyIfNull)
          Copies the fields of ClusterVesselOwner to the specified entity.
 void clusterVesselOwnerToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterVesselOwner to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.vessel.VesselOwner and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as VesselOwnerDao.create(fr.ifremer.allegro.referential.vessel.VesselOwner) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String registrationCode, java.lang.String lastname, java.lang.String firstname, java.lang.String street, java.lang.String zipCode, java.lang.String city, java.util.Date dateOfBirth, java.util.Date retirementDate, java.sql.Timestamp updateDate, java.util.Collection rightToProduces, Location countryLocation)
           Does the same thing as VesselOwnerDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.lang.Object create(int transform, VesselOwner vesselOwner)
           Does the same thing as VesselOwnerDao.create(fr.ifremer.allegro.referential.vessel.VesselOwner) with an additional flag called transform.
 VesselOwner create(java.lang.String registrationCode, java.lang.String lastname, java.lang.String firstname, java.lang.String street, java.lang.String zipCode, java.lang.String city, java.util.Date dateOfBirth, java.util.Date retirementDate, java.sql.Timestamp updateDate, java.util.Collection rightToProduces, Location countryLocation)
           Creates a new fr.ifremer.allegro.referential.vessel.VesselOwner instance from all attributes and properties and adds it to the persistent store.
 VesselOwner create(VesselOwner vesselOwner)
          Creates an instance of fr.ifremer.allegro.referential.vessel.VesselOwner and adds it to the persistent store.
 VesselOwner createFromClusterVesselOwner(ClusterVesselOwner clusterVesselOwner)
           
 java.util.Collection findVesselOwnerByCountryLocation(int transform, int pageNumber, int pageSize, Location countryLocation)
           Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselOwnerByCountryLocation(int pageNumber, int pageSize, Location countryLocation)
           Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselOwnerByCountryLocation(int transform, Location countryLocation)
           Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.util.Collection findVesselOwnerByCountryLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location countryLocation)
           Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselOwnerByCountryLocation(int transform, java.lang.String queryString, Location countryLocation)
           Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findVesselOwnerByCountryLocation(Location countryLocation)
           
 java.util.Collection findVesselOwnerByCountryLocation(java.lang.String queryString, int pageNumber, int pageSize, Location countryLocation)
           Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselOwnerByCountryLocation(java.lang.String queryString, Location countryLocation)
           Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 VesselOwner findVesselOwnerById(java.lang.Integer id)
           
 java.lang.Object findVesselOwnerById(int transform, java.lang.Integer id)
           Does the same thing as VesselOwnerDao.findVesselOwnerById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findVesselOwnerById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselOwnerDao.findVesselOwnerById(int, java.lang.Integer) with an additional argument called queryString.
 VesselOwner findVesselOwnerById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselOwnerDao.findVesselOwnerById(java.lang.Integer) with an additional argument called queryString.
 VesselOwner findVesselOwnerByNaturalId(java.lang.Integer id)
           
 java.lang.Object findVesselOwnerByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as VesselOwnerDao.findVesselOwnerByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findVesselOwnerByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselOwnerDao.findVesselOwnerByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 VesselOwner findVesselOwnerByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselOwnerDao.findVesselOwnerByNaturalId(java.lang.Integer) with an additional argument called queryString.
 ClusterVesselOwner[] getAllClusterVesselOwnerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllVesselOwner()
           
 java.util.Collection getAllVesselOwner(int transform)
           Does the same thing as VesselOwnerDao.getAllVesselOwner() with an additional flag called transform.
 java.util.Collection getAllVesselOwner(int pageNumber, int pageSize)
           Does the same thing as VesselOwnerDao.getAllVesselOwner() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwner(int transform, int pageNumber, int pageSize)
           Does the same thing as VesselOwnerDao.getAllVesselOwner(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwner(int transform, java.lang.String queryString)
           Does the same thing as VesselOwnerDao.getAllVesselOwner(int) with an additional argument called queryString.
 java.util.Collection getAllVesselOwner(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as VesselOwnerDao.getAllVesselOwner(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwner(java.lang.String queryString)
           Does the same thing as VesselOwnerDao.getAllVesselOwner() with an additional argument called queryString.
 java.util.Collection getAllVesselOwner(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as VesselOwnerDao.getAllVesselOwner(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllVesselOwnerSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  LocationDao getLocationDao()
          Gets the reference to locationDao.
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 abstract  VesselOwner handleCreateFromClusterVesselOwner(ClusterVesselOwner clusterVesselOwner)
          Performs the core logic for createFromClusterVesselOwner(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselOwner)
protected abstract  ClusterVesselOwner[] handleGetAllClusterVesselOwnerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterVesselOwnerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 VesselOwner load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.vessel.VesselOwner from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as VesselOwnerDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type VesselOwner.
 java.util.Collection loadAll(int transform)
           Does the same thing as VesselOwnerDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as VesselOwnerDao.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 VesselOwnerDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteVesselOwnerFullVOToEntity(RemoteVesselOwnerFullVO source, VesselOwner target, boolean copyIfNull)
          Copies the fields of RemoteVesselOwnerFullVO to the specified entity.
 void remoteVesselOwnerFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteVesselOwnerFullVO to this DAO's entity.
 void remoteVesselOwnerNaturalIdToEntity(RemoteVesselOwnerNaturalId source, VesselOwner target, boolean copyIfNull)
          Copies the fields of RemoteVesselOwnerNaturalId to the specified entity.
 void remoteVesselOwnerNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteVesselOwnerNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.vessel.VesselOwner having the given identifier from the persistent store.
 void remove(VesselOwner vesselOwner)
          Removes the instance of fr.ifremer.allegro.referential.vessel.VesselOwner 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 VesselOwnerDao.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 setLocationDao(LocationDao locationDao)
          Sets the reference to locationDao.
 void setRightToProduceDao(RightToProduceDao rightToProduceDao)
          Sets the reference to rightToProduceDao.
protected  ClusterVesselOwner toClusterVesselOwner(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterVesselOwner toClusterVesselOwner(VesselOwner entity)
          Converts this DAO's entity to an object of type ClusterVesselOwner.
 void toClusterVesselOwner(VesselOwner source, ClusterVesselOwner target)
          Copies the fields of the specified entity to the target value object.
 ClusterVesselOwner[] toClusterVesselOwnerArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterVesselOwner.
 void toClusterVesselOwnerCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterVesselOwner.
protected  VesselOwner toEntity(java.lang.Object[] row)
           
protected  RemoteVesselOwnerFullVO toRemoteVesselOwnerFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteVesselOwnerFullVO toRemoteVesselOwnerFullVO(VesselOwner entity)
          Converts this DAO's entity to an object of type RemoteVesselOwnerFullVO.
 void toRemoteVesselOwnerFullVO(VesselOwner source, RemoteVesselOwnerFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteVesselOwnerFullVO[] toRemoteVesselOwnerFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteVesselOwnerFullVO.
 void toRemoteVesselOwnerFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteVesselOwnerFullVO.
protected  RemoteVesselOwnerNaturalId toRemoteVesselOwnerNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteVesselOwnerNaturalId toRemoteVesselOwnerNaturalId(VesselOwner entity)
          Converts this DAO's entity to an object of type RemoteVesselOwnerNaturalId.
 void toRemoteVesselOwnerNaturalId(VesselOwner source, RemoteVesselOwnerNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteVesselOwnerNaturalId[] toRemoteVesselOwnerNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteVesselOwnerNaturalId.
 void toRemoteVesselOwnerNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteVesselOwnerNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.vessel.VesselOwner) method.
protected  java.lang.Object transformEntity(int transform, VesselOwner 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.VesselOwnerDao, please note that the VesselOwnerDao.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(VesselOwner vesselOwner)
          Updates the vesselOwner 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.VesselOwnerDao
clusterVesselOwnerToEntity, remoteVesselOwnerFullVOToEntity, remoteVesselOwnerNaturalIdToEntity
 

Constructor Detail

VesselOwnerDaoBase

public VesselOwnerDaoBase()
Method Detail

setRightToProduceDao

public void setRightToProduceDao(RightToProduceDao rightToProduceDao)
Sets the reference to rightToProduceDao.


getRightToProduceDao

protected RightToProduceDao getRightToProduceDao()
Gets the reference to rightToProduceDao.


setLocationDao

public void setLocationDao(LocationDao locationDao)
Sets the reference to locationDao.


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to locationDao.


load

public java.lang.Object load(int transform,
                             java.lang.Integer id)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.load(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined in this class then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
load in interface VesselOwnerDao
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
VesselOwnerDao.load(int, java.lang.Integer)

load

public VesselOwner load(java.lang.Integer id)
Description copied from interface: VesselOwnerDao
Loads an instance of fr.ifremer.allegro.referential.vessel.VesselOwner from the persistent store.

Specified by:
load in interface VesselOwnerDao
See Also:
VesselOwnerDao.load(java.lang.Integer)

loadAll

public java.util.Collection loadAll()
Description copied from interface: VesselOwnerDao
Loads all entities of type VesselOwner.

Specified by:
loadAll in interface VesselOwnerDao
Returns:
the loaded entities.
See Also:
VesselOwnerDao.loadAll()

loadAll

public java.util.Collection loadAll(int transform)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.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 VesselOwnerDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
VesselOwnerDao.loadAll(int)

loadAll

public java.util.Collection loadAll(int pageNumber,
                                    int pageSize)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.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 VesselOwnerDao
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.
See Also:
VesselOwnerDao.loadAll(int, int)

loadAll

public java.util.Collection loadAll(int transform,
                                    int pageNumber,
                                    int pageSize)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.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 VesselOwnerDao
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.
See Also:
VesselOwnerDao.loadAll(int, int, int)

create

public VesselOwner create(VesselOwner vesselOwner)
Description copied from interface: VesselOwnerDao
Creates an instance of fr.ifremer.allegro.referential.vessel.VesselOwner and adds it to the persistent store.

Specified by:
create in interface VesselOwnerDao
See Also:
VesselOwnerDao.create(fr.ifremer.allegro.referential.vessel.VesselOwner)

create

public java.lang.Object create(int transform,
                               VesselOwner vesselOwner)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.create(fr.ifremer.allegro.referential.vessel.VesselOwner) 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:
create in interface VesselOwnerDao
See Also:
VesselOwnerDao.create(int transform, fr.ifremer.allegro.referential.vessel.VesselOwner)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Creates a new instance of fr.ifremer.allegro.referential.vessel.VesselOwner and adds from the passed in entities collection

Specified by:
create in interface VesselOwnerDao
Parameters:
entities - the collection of fr.ifremer.allegro.referential.vessel.VesselOwner instances to create.
Returns:
the created instances.
See Also:
VesselOwnerDao.create(java.util.Collection)

create

public java.util.Collection create(int transform,
                                   java.util.Collection entities)
Description copied from interface: VesselOwnerDao

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

Specified by:
create in interface VesselOwnerDao
See Also:
VesselOwnerDao.create(int, java.util.Collection)

create

public VesselOwner create(java.lang.String registrationCode,
                          java.lang.String lastname,
                          java.lang.String firstname,
                          java.lang.String street,
                          java.lang.String zipCode,
                          java.lang.String city,
                          java.util.Date dateOfBirth,
                          java.util.Date retirementDate,
                          java.sql.Timestamp updateDate,
                          java.util.Collection rightToProduces,
                          Location countryLocation)
Description copied from interface: VesselOwnerDao

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

Specified by:
create in interface VesselOwnerDao
See Also:
VesselOwnerDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.Location)

create

public java.lang.Object create(int transform,
                               java.lang.String registrationCode,
                               java.lang.String lastname,
                               java.lang.String firstname,
                               java.lang.String street,
                               java.lang.String zipCode,
                               java.lang.String city,
                               java.util.Date dateOfBirth,
                               java.util.Date retirementDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection rightToProduces,
                               Location countryLocation)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.Location) 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:
create in interface VesselOwnerDao
See Also:
VesselOwnerDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.Location)

update

public void update(VesselOwner vesselOwner)
Description copied from interface: VesselOwnerDao
Updates the vesselOwner instance in the persistent store.

Specified by:
update in interface VesselOwnerDao
See Also:
VesselOwnerDao.update(fr.ifremer.allegro.referential.vessel.VesselOwner)

update

public void update(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Updates all instances in the entities collection in the persistent store.

Specified by:
update in interface VesselOwnerDao
See Also:
VesselOwnerDao.update(java.util.Collection)

remove

public void remove(VesselOwner vesselOwner)
Description copied from interface: VesselOwnerDao
Removes the instance of fr.ifremer.allegro.referential.vessel.VesselOwner from the persistent store.

Specified by:
remove in interface VesselOwnerDao
See Also:
VesselOwnerDao.remove(fr.ifremer.allegro.referential.vessel.VesselOwner)

remove

public void remove(java.lang.Integer id)
Description copied from interface: VesselOwnerDao
Removes the instance of fr.ifremer.allegro.referential.vessel.VesselOwner having the given identifier from the persistent store.

Specified by:
remove in interface VesselOwnerDao
See Also:
VesselOwnerDao.remove(java.lang.Integer)

remove

public void remove(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Removes all entities in the given entities collection.

Specified by:
remove in interface VesselOwnerDao
See Also:
VesselOwnerDao.remove(java.util.Collection)

getAllVesselOwner

public java.util.Collection getAllVesselOwner()
Specified by:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner()

getAllVesselOwner

public java.util.Collection getAllVesselOwner(int transform)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwner() 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:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner(int)

getAllVesselOwner

public java.util.Collection getAllVesselOwner(java.lang.String queryString)
Description copied from interface: VesselOwnerDao

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

Specified by:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner(java.lang.String)

getAllVesselOwner

public java.util.Collection getAllVesselOwner(int pageNumber,
                                              int pageSize)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwner() 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:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner(int, int)

getAllVesselOwner

public java.util.Collection getAllVesselOwner(java.lang.String queryString,
                                              int pageNumber,
                                              int pageSize)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwner(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:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner(String, int, int)

getAllVesselOwner

public java.util.Collection getAllVesselOwner(int transform,
                                              java.lang.String queryString)
Description copied from interface: VesselOwnerDao

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

Specified by:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner(int, String)

getAllVesselOwner

public java.util.Collection getAllVesselOwner(int transform,
                                              int pageNumber,
                                              int pageSize)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwner(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:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner(int, int, int)

getAllVesselOwner

public java.util.Collection getAllVesselOwner(int transform,
                                              java.lang.String queryString,
                                              int pageNumber,
                                              int pageSize)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwner(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:
getAllVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwner(int, java.lang.String, int, int)

findVesselOwnerById

public VesselOwner findVesselOwnerById(java.lang.Integer id)
Specified by:
findVesselOwnerById in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerById(java.lang.Integer)

findVesselOwnerById

public java.lang.Object findVesselOwnerById(int transform,
                                            java.lang.Integer id)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerById(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findVesselOwnerById in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerById(int, java.lang.Integer)

findVesselOwnerById

public VesselOwner findVesselOwnerById(java.lang.String queryString,
                                       java.lang.Integer id)
Description copied from interface: VesselOwnerDao

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

Specified by:
findVesselOwnerById in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerById(java.lang.String, java.lang.Integer)

findVesselOwnerById

public java.lang.Object findVesselOwnerById(int transform,
                                            java.lang.String queryString,
                                            java.lang.Integer id)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerById(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in VesselOwnerDao.findVesselOwnerById(int, java.lang.Integer id).

Specified by:
findVesselOwnerById in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerById(int, java.lang.String, java.lang.Integer)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(Location countryLocation)
Specified by:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(int transform,
                                                             Location countryLocation)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(fr.ifremer.allegro.referential.location.Location) 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:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(int, fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(java.lang.String queryString,
                                                             Location countryLocation)
Description copied from interface: VesselOwnerDao

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

Specified by:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(java.lang.String, fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(int pageNumber,
                                                             int pageSize,
                                                             Location countryLocation)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(fr.ifremer.allegro.referential.location.Location) 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:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(int, int, fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             Location countryLocation)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(String, fr.ifremer.allegro.referential.location.Location) 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:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(String, int, int, fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(int transform,
                                                             java.lang.String queryString,
                                                             Location countryLocation)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString. This queryString argument allows you to override the query string defined in VesselOwnerDao.findVesselOwnerByCountryLocation(int, fr.ifremer.allegro.referential.location.Location countryLocation).

Specified by:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(int, String, fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(int transform,
                                                             int pageNumber,
                                                             int pageSize,
                                                             Location countryLocation)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(int, fr.ifremer.allegro.referential.location.Location) 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:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(int, int, int, fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByCountryLocation

public java.util.Collection findVesselOwnerByCountryLocation(int transform,
                                                             java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             Location countryLocation)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByCountryLocation(int, String, fr.ifremer.allegro.referential.location.Location) 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:
findVesselOwnerByCountryLocation in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByCountryLocation(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.Location)

findVesselOwnerByNaturalId

public VesselOwner findVesselOwnerByNaturalId(java.lang.Integer id)
Specified by:
findVesselOwnerByNaturalId in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByNaturalId(java.lang.Integer)

findVesselOwnerByNaturalId

public java.lang.Object findVesselOwnerByNaturalId(int transform,
                                                   java.lang.Integer id)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByNaturalId(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findVesselOwnerByNaturalId in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByNaturalId(int, java.lang.Integer)

findVesselOwnerByNaturalId

public VesselOwner findVesselOwnerByNaturalId(java.lang.String queryString,
                                              java.lang.Integer id)
Description copied from interface: VesselOwnerDao

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

Specified by:
findVesselOwnerByNaturalId in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByNaturalId(java.lang.String, java.lang.Integer)

findVesselOwnerByNaturalId

public java.lang.Object findVesselOwnerByNaturalId(int transform,
                                                   java.lang.String queryString,
                                                   java.lang.Integer id)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.findVesselOwnerByNaturalId(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in VesselOwnerDao.findVesselOwnerByNaturalId(int, java.lang.Integer id).

Specified by:
findVesselOwnerByNaturalId in interface VesselOwnerDao
See Also:
VesselOwnerDao.findVesselOwnerByNaturalId(int, java.lang.String, java.lang.Integer)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(java.sql.Timestamp updateDate)
Specified by:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(java.sql.Timestamp)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(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:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, java.sql.Timestamp)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(java.lang.String queryString,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: VesselOwnerDao

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

Specified by:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(java.lang.String, java.sql.Timestamp)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(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:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, int, java.sql.Timestamp)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(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:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform,
                                                              java.lang.String queryString,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: VesselOwnerDao

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

Specified by:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, String, java.sql.Timestamp)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(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:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllVesselOwnerSinceDateSynchro

public java.util.Collection getAllVesselOwnerSinceDateSynchro(int transform,
                                                              java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: VesselOwnerDao

Does the same thing as VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(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:
getAllVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllVesselOwnerSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterVesselOwner

public VesselOwner createFromClusterVesselOwner(ClusterVesselOwner clusterVesselOwner)
Specified by:
createFromClusterVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.createFromClusterVesselOwner(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselOwner)

handleCreateFromClusterVesselOwner

protected abstract VesselOwner handleCreateFromClusterVesselOwner(ClusterVesselOwner clusterVesselOwner)
                                                           throws java.lang.Exception
Performs the core logic for createFromClusterVesselOwner(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselOwner)

Throws:
java.lang.Exception

getAllClusterVesselOwnerSinceDateSynchro

public ClusterVesselOwner[] getAllClusterVesselOwnerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                     java.lang.Integer userId,
                                                                     java.lang.Integer[] registrationLocationIds,
                                                                     java.lang.Integer pageNumber,
                                                                     java.lang.Integer pageSize)
Specified by:
getAllClusterVesselOwnerSinceDateSynchro in interface VesselOwnerDao
See Also:
VesselOwnerDao.getAllClusterVesselOwnerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterVesselOwnerSinceDateSynchro

protected abstract ClusterVesselOwner[] handleGetAllClusterVesselOwnerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                                       java.lang.Integer userId,
                                                                                       java.lang.Integer[] registrationLocationIds,
                                                                                       java.lang.Integer pageNumber,
                                                                                       java.lang.Integer pageSize)
                                                                                throws java.lang.Exception
Performs the core logic for getAllClusterVesselOwnerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           VesselOwner 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.VesselOwnerDao, please note that the VesselOwnerDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.

This method will return instances of these types:

If the integer argument value is unknown VesselOwnerDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in VesselOwnerDao
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.VesselOwner) 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.VesselOwnerDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.referential.vessel.VesselOwner)

toEntity

protected VesselOwner toEntity(java.lang.Object[] row)

toRemoteVesselOwnerFullVOCollection

public final void toRemoteVesselOwnerFullVOCollection(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to a Collection of instances of type RemoteVesselOwnerFullVO.

Specified by:
toRemoteVesselOwnerFullVOCollection in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerFullVOCollection(java.util.Collection)

toRemoteVesselOwnerFullVOArray

public final RemoteVesselOwnerFullVO[] toRemoteVesselOwnerFullVOArray(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to an array of instances of type RemoteVesselOwnerFullVO.

Specified by:
toRemoteVesselOwnerFullVOArray in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerFullVOArray(java.util.Collection)

toRemoteVesselOwnerFullVO

protected RemoteVesselOwnerFullVO toRemoteVesselOwnerFullVO(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 VesselOwnerDaoImpl class if you intend to use reporting queries.

See Also:
VesselOwnerDao.toRemoteVesselOwnerFullVO(fr.ifremer.allegro.referential.vessel.VesselOwner)

remoteVesselOwnerFullVOToEntityCollection

public final void remoteVesselOwnerFullVOToEntityCollection(java.util.Collection instances)
Description copied from interface: VesselOwnerDao
Converts a Collection of instances of type RemoteVesselOwnerFullVO to this DAO's entity.

Specified by:
remoteVesselOwnerFullVOToEntityCollection in interface VesselOwnerDao
See Also:
VesselOwnerDao.remoteVesselOwnerFullVOToEntityCollection(java.util.Collection)

toRemoteVesselOwnerFullVO

public void toRemoteVesselOwnerFullVO(VesselOwner source,
                                      RemoteVesselOwnerFullVO target)
Description copied from interface: VesselOwnerDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteVesselOwnerFullVO(), 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:
toRemoteVesselOwnerFullVO in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerFullVO(fr.ifremer.allegro.referential.vessel.VesselOwner, fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselOwnerFullVO)

toRemoteVesselOwnerFullVO

public RemoteVesselOwnerFullVO toRemoteVesselOwnerFullVO(VesselOwner entity)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to an object of type RemoteVesselOwnerFullVO.

Specified by:
toRemoteVesselOwnerFullVO in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerFullVO(fr.ifremer.allegro.referential.vessel.VesselOwner)

remoteVesselOwnerFullVOToEntity

public void remoteVesselOwnerFullVOToEntity(RemoteVesselOwnerFullVO source,
                                            VesselOwner target,
                                            boolean copyIfNull)
Description copied from interface: VesselOwnerDao
Copies the fields of RemoteVesselOwnerFullVO to the specified entity.

Specified by:
remoteVesselOwnerFullVOToEntity in interface VesselOwnerDao
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.VesselOwnerDao#remoteVesselOwnerFullVOToEntity(fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselOwnerFullVO, fr.ifremer.allegro.referential.vessel.VesselOwner)

toRemoteVesselOwnerNaturalIdCollection

public final void toRemoteVesselOwnerNaturalIdCollection(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to a Collection of instances of type RemoteVesselOwnerNaturalId.

Specified by:
toRemoteVesselOwnerNaturalIdCollection in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerNaturalIdCollection(java.util.Collection)

toRemoteVesselOwnerNaturalIdArray

public final RemoteVesselOwnerNaturalId[] toRemoteVesselOwnerNaturalIdArray(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to an array of instances of type RemoteVesselOwnerNaturalId.

Specified by:
toRemoteVesselOwnerNaturalIdArray in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerNaturalIdArray(java.util.Collection)

toRemoteVesselOwnerNaturalId

protected RemoteVesselOwnerNaturalId toRemoteVesselOwnerNaturalId(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 VesselOwnerDaoImpl class if you intend to use reporting queries.

See Also:
VesselOwnerDao.toRemoteVesselOwnerNaturalId(fr.ifremer.allegro.referential.vessel.VesselOwner)

remoteVesselOwnerNaturalIdToEntityCollection

public final void remoteVesselOwnerNaturalIdToEntityCollection(java.util.Collection instances)
Description copied from interface: VesselOwnerDao
Converts a Collection of instances of type RemoteVesselOwnerNaturalId to this DAO's entity.

Specified by:
remoteVesselOwnerNaturalIdToEntityCollection in interface VesselOwnerDao
See Also:
VesselOwnerDao.remoteVesselOwnerNaturalIdToEntityCollection(java.util.Collection)

toRemoteVesselOwnerNaturalId

public void toRemoteVesselOwnerNaturalId(VesselOwner source,
                                         RemoteVesselOwnerNaturalId target)
Description copied from interface: VesselOwnerDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteVesselOwnerNaturalId(), 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:
toRemoteVesselOwnerNaturalId in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerNaturalId(fr.ifremer.allegro.referential.vessel.VesselOwner, fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselOwnerNaturalId)

toRemoteVesselOwnerNaturalId

public RemoteVesselOwnerNaturalId toRemoteVesselOwnerNaturalId(VesselOwner entity)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to an object of type RemoteVesselOwnerNaturalId.

Specified by:
toRemoteVesselOwnerNaturalId in interface VesselOwnerDao
See Also:
VesselOwnerDao.toRemoteVesselOwnerNaturalId(fr.ifremer.allegro.referential.vessel.VesselOwner)

remoteVesselOwnerNaturalIdToEntity

public void remoteVesselOwnerNaturalIdToEntity(RemoteVesselOwnerNaturalId source,
                                               VesselOwner target,
                                               boolean copyIfNull)
Description copied from interface: VesselOwnerDao
Copies the fields of RemoteVesselOwnerNaturalId to the specified entity.

Specified by:
remoteVesselOwnerNaturalIdToEntity in interface VesselOwnerDao
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.VesselOwnerDao#remoteVesselOwnerNaturalIdToEntity(fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselOwnerNaturalId, fr.ifremer.allegro.referential.vessel.VesselOwner)

toClusterVesselOwnerCollection

public final void toClusterVesselOwnerCollection(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to a Collection of instances of type ClusterVesselOwner.

Specified by:
toClusterVesselOwnerCollection in interface VesselOwnerDao
See Also:
VesselOwnerDao.toClusterVesselOwnerCollection(java.util.Collection)

toClusterVesselOwnerArray

public final ClusterVesselOwner[] toClusterVesselOwnerArray(java.util.Collection entities)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to an array of instances of type ClusterVesselOwner.

Specified by:
toClusterVesselOwnerArray in interface VesselOwnerDao
See Also:
VesselOwnerDao.toClusterVesselOwnerArray(java.util.Collection)

toClusterVesselOwner

protected ClusterVesselOwner toClusterVesselOwner(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 VesselOwnerDaoImpl class if you intend to use reporting queries.

See Also:
VesselOwnerDao.toClusterVesselOwner(fr.ifremer.allegro.referential.vessel.VesselOwner)

clusterVesselOwnerToEntityCollection

public final void clusterVesselOwnerToEntityCollection(java.util.Collection instances)
Description copied from interface: VesselOwnerDao
Converts a Collection of instances of type ClusterVesselOwner to this DAO's entity.

Specified by:
clusterVesselOwnerToEntityCollection in interface VesselOwnerDao
See Also:
VesselOwnerDao.clusterVesselOwnerToEntityCollection(java.util.Collection)

toClusterVesselOwner

public void toClusterVesselOwner(VesselOwner source,
                                 ClusterVesselOwner target)
Description copied from interface: VesselOwnerDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterVesselOwner(), 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:
toClusterVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.toClusterVesselOwner(fr.ifremer.allegro.referential.vessel.VesselOwner, fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselOwner)

toClusterVesselOwner

public ClusterVesselOwner toClusterVesselOwner(VesselOwner entity)
Description copied from interface: VesselOwnerDao
Converts this DAO's entity to an object of type ClusterVesselOwner.

Specified by:
toClusterVesselOwner in interface VesselOwnerDao
See Also:
VesselOwnerDao.toClusterVesselOwner(fr.ifremer.allegro.referential.vessel.VesselOwner)

clusterVesselOwnerToEntity

public void clusterVesselOwnerToEntity(ClusterVesselOwner source,
                                       VesselOwner target,
                                       boolean copyIfNull)
Description copied from interface: VesselOwnerDao
Copies the fields of ClusterVesselOwner to the specified entity.

Specified by:
clusterVesselOwnerToEntity in interface VesselOwnerDao
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.VesselOwnerDao#clusterVesselOwnerToEntity(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselOwner, fr.ifremer.allegro.referential.vessel.VesselOwner)

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: VesselOwnerDao
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 VesselOwnerDao
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.
See Also:
VesselOwnerDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: VesselOwnerDao
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 VesselOwnerDao
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.
See Also:
VesselOwnerDao.search(int, int, fr.ifremer.allegro.Search)

search

public java.util.Set search(int transform,
                            Search search)
Description copied from interface: VesselOwnerDao
Does the same thing as VesselOwnerDao.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 VesselOwnerDao
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:
VesselOwnerDao.search(int, fr.ifremer.allegro.Search)

search

public java.util.Set search(Search search)
Description copied from interface: VesselOwnerDao
Performs a search using the parameters specified in the given search object.

Specified by:
search in interface VesselOwnerDao
Parameters:
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.
See Also:
VesselOwnerDao.search(fr.ifremer.allegro.Search)


Copyright © 2008-2010 IFREMER. All Rights Reserved.