fr.ifremer.allegro.referential
Class VesselTypeDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.VesselTypeDaoBase
All Implemented Interfaces:
VesselTypeDao
Direct Known Subclasses:
VesselTypeDaoImpl

public abstract class VesselTypeDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements VesselTypeDao

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

See Also:
VesselType

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.VesselTypeDao
TRANSFORM_CLUSTERVESSELTYPE, TRANSFORM_NONE, TRANSFORM_REMOTEVESSELTYPEFULLVO, TRANSFORM_REMOTEVESSELTYPENATURALID
 
Constructor Summary
VesselTypeDaoBase()
           
 
Method Summary
 void clusterVesselTypeToEntity(ClusterVesselType source, VesselType target, boolean copyIfNull)
          Copies the fields of ClusterVesselType to the specified entity.
 void clusterVesselTypeToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterVesselType to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.VesselType and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as VesselTypeDao.create(fr.ifremer.allegro.referential.VesselType) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, Status status)
           Does the same thing as VesselTypeDao.create(java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.sql.Timestamp updateDate, Status status)
           Does the same thing as VesselTypeDao.create(java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, VesselType vesselType)
           Does the same thing as VesselTypeDao.create(fr.ifremer.allegro.referential.VesselType) with an additional flag called transform.
 VesselType create(java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.referential.VesselType instance from only required properties (attributes and association ends) and adds it to the persistent store.
 VesselType create(java.lang.String name, java.sql.Timestamp updateDate, Status status)
           Creates a new fr.ifremer.allegro.referential.VesselType instance from all attributes and properties and adds it to the persistent store.
 VesselType create(VesselType vesselType)
          Creates an instance of fr.ifremer.allegro.referential.VesselType and adds it to the persistent store.
 VesselType createFromClusterVesselType(ClusterVesselType clusterVesselType)
           
 VesselType findVesselTypeById(java.lang.Integer id)
           
 java.lang.Object findVesselTypeById(int transform, java.lang.Integer id)
           Does the same thing as VesselTypeDao.findVesselTypeById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findVesselTypeById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselTypeDao.findVesselTypeById(int, java.lang.Integer) with an additional argument called queryString.
 VesselType findVesselTypeById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselTypeDao.findVesselTypeById(java.lang.Integer) with an additional argument called queryString.
 VesselType findVesselTypeByNaturalId(java.lang.Integer id)
           
 java.lang.Object findVesselTypeByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as VesselTypeDao.findVesselTypeByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findVesselTypeByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselTypeDao.findVesselTypeByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 VesselType findVesselTypeByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselTypeDao.findVesselTypeByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findVesselTypeByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as VesselTypeDao.findVesselTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselTypeByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as VesselTypeDao.findVesselTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselTypeByStatus(int transform, Status status)
           Does the same thing as VesselTypeDao.findVesselTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findVesselTypeByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as VesselTypeDao.findVesselTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselTypeByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as VesselTypeDao.findVesselTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findVesselTypeByStatus(Status status)
           
 java.util.Collection findVesselTypeByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as VesselTypeDao.findVesselTypeByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findVesselTypeByStatus(java.lang.String queryString, Status status)
           Does the same thing as VesselTypeDao.findVesselTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterVesselType[] getAllClusterVesselTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllVesselType()
           
 java.util.Collection getAllVesselType(int transform)
           Does the same thing as VesselTypeDao.getAllVesselType() with an additional flag called transform.
 java.util.Collection getAllVesselType(int pageNumber, int pageSize)
           Does the same thing as VesselTypeDao.getAllVesselType() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselType(int transform, int pageNumber, int pageSize)
           Does the same thing as VesselTypeDao.getAllVesselType(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselType(int transform, java.lang.String queryString)
           Does the same thing as VesselTypeDao.getAllVesselType(int) with an additional argument called queryString.
 java.util.Collection getAllVesselType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as VesselTypeDao.getAllVesselType(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselType(java.lang.String queryString)
           Does the same thing as VesselTypeDao.getAllVesselType() with an additional argument called queryString.
 java.util.Collection getAllVesselType(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as VesselTypeDao.getAllVesselType(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselTypeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselTypeDao.getAllVesselTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselTypeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselTypeDao.getAllVesselTypeSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselTypeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselTypeDao.getAllVesselTypeSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselTypeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as VesselTypeDao.getAllVesselTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllVesselTypeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as VesselTypeDao.getAllVesselTypeSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllVesselTypeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as VesselTypeDao.getAllVesselTypeSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselTypeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as VesselTypeDao.getAllVesselTypeSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllVesselTypeSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  VesselType handleCreateFromClusterVesselType(ClusterVesselType clusterVesselType)
          Performs the core logic for createFromClusterVesselType(fr.ifremer.allegro.referential.generic.cluster.ClusterVesselType)
protected abstract  ClusterVesselType[] handleGetAllClusterVesselTypeSinceDateSynchro(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 getAllClusterVesselTypeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 VesselType load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.VesselType from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as VesselTypeDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type VesselType.
 java.util.Collection loadAll(int transform)
           Does the same thing as VesselTypeDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as VesselTypeDao.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 VesselTypeDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteVesselTypeFullVOToEntity(RemoteVesselTypeFullVO source, VesselType target, boolean copyIfNull)
          Copies the fields of RemoteVesselTypeFullVO to the specified entity.
 void remoteVesselTypeFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteVesselTypeFullVO to this DAO's entity.
 void remoteVesselTypeNaturalIdToEntity(RemoteVesselTypeNaturalId source, VesselType target, boolean copyIfNull)
          Copies the fields of RemoteVesselTypeNaturalId to the specified entity.
 void remoteVesselTypeNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteVesselTypeNaturalId 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.VesselType having the given identifier from the persistent store.
 void remove(VesselType vesselType)
          Removes the instance of fr.ifremer.allegro.referential.VesselType 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 VesselTypeDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
protected  ClusterVesselType toClusterVesselType(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterVesselType toClusterVesselType(VesselType entity)
          Converts this DAO's entity to an object of type ClusterVesselType.
 void toClusterVesselType(VesselType source, ClusterVesselType target)
          Copies the fields of the specified entity to the target value object.
 ClusterVesselType[] toClusterVesselTypeArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterVesselType.
 void toClusterVesselTypeCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterVesselType.
protected  VesselType toEntity(java.lang.Object[] row)
           
protected  RemoteVesselTypeFullVO toRemoteVesselTypeFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteVesselTypeFullVO toRemoteVesselTypeFullVO(VesselType entity)
          Converts this DAO's entity to an object of type RemoteVesselTypeFullVO.
 void toRemoteVesselTypeFullVO(VesselType source, RemoteVesselTypeFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteVesselTypeFullVO[] toRemoteVesselTypeFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteVesselTypeFullVO.
 void toRemoteVesselTypeFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteVesselTypeFullVO.
protected  RemoteVesselTypeNaturalId toRemoteVesselTypeNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteVesselTypeNaturalId toRemoteVesselTypeNaturalId(VesselType entity)
          Converts this DAO's entity to an object of type RemoteVesselTypeNaturalId.
 void toRemoteVesselTypeNaturalId(VesselType source, RemoteVesselTypeNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteVesselTypeNaturalId[] toRemoteVesselTypeNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteVesselTypeNaturalId.
 void toRemoteVesselTypeNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteVesselTypeNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.VesselType) method.
protected  java.lang.Object transformEntity(int transform, VesselType 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.VesselTypeDao, please note that the VesselTypeDao.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(VesselType vesselType)
          Updates the vesselType 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.VesselTypeDao
clusterVesselTypeToEntity, remoteVesselTypeFullVOToEntity, remoteVesselTypeNaturalIdToEntity
 

Constructor Detail

VesselTypeDaoBase

public VesselTypeDaoBase()
Method Detail

setStatusDao

public void setStatusDao(StatusDao statusDao)
Sets the reference to statusDao.


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


load

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

Does the same thing as VesselTypeDao.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 VesselTypeDao
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
VesselTypeDao.load(int, java.lang.Integer)

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public VesselType create(VesselType vesselType)
Description copied from interface: VesselTypeDao
Creates an instance of fr.ifremer.allegro.referential.VesselType and adds it to the persistent store.

Specified by:
create in interface VesselTypeDao
See Also:
VesselTypeDao.create(fr.ifremer.allegro.referential.VesselType)

create

public java.lang.Object create(int transform,
                               VesselType vesselType)
Description copied from interface: VesselTypeDao

Does the same thing as VesselTypeDao.create(fr.ifremer.allegro.referential.VesselType) 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 VesselTypeDao
See Also:
VesselTypeDao.create(int transform, fr.ifremer.allegro.referential.VesselType)

create

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

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

create

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

Does the same thing as VesselTypeDao.create(fr.ifremer.allegro.referential.VesselType) 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 VesselTypeDao
See Also:
VesselTypeDao.create(int, java.util.Collection)

create

public VesselType create(java.lang.String name,
                         java.sql.Timestamp updateDate,
                         Status status)
Description copied from interface: VesselTypeDao

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

Specified by:
create in interface VesselTypeDao
See Also:
VesselTypeDao.create(java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.sql.Timestamp updateDate,
                               Status status)
Description copied from interface: VesselTypeDao

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

Specified by:
create in interface VesselTypeDao
See Also:
VesselTypeDao.create(int, java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)

create

public VesselType create(java.lang.String name,
                         Status status)
Description copied from interface: VesselTypeDao

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

Specified by:
create in interface VesselTypeDao
See Also:
VesselTypeDao.create(java.lang.String,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               Status status)
Description copied from interface: VesselTypeDao

Does the same thing as VesselTypeDao.create(java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOTWILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface VesselTypeDao
See Also:
VesselTypeDao.create(int, java.lang.String,fr.ifremer.allegro.referential.Status)

update

public void update(VesselType vesselType)
Description copied from interface: VesselTypeDao
Updates the vesselType instance in the persistent store.

Specified by:
update in interface VesselTypeDao
See Also:
VesselTypeDao.update(fr.ifremer.allegro.referential.VesselType)

update

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

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

remove

public void remove(VesselType vesselType)
Description copied from interface: VesselTypeDao
Removes the instance of fr.ifremer.allegro.referential.VesselType from the persistent store.

Specified by:
remove in interface VesselTypeDao
See Also:
VesselTypeDao.remove(fr.ifremer.allegro.referential.VesselType)

remove

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

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

remove

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

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

getAllVesselType

public java.util.Collection getAllVesselType()
Specified by:
getAllVesselType in interface VesselTypeDao
See Also:
VesselTypeDao.getAllVesselType()

getAllVesselType

public java.util.Collection getAllVesselType(int transform)
Description copied from interface: VesselTypeDao

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

getAllVesselType

public java.util.Collection getAllVesselType(java.lang.String queryString)
Description copied from interface: VesselTypeDao

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

Specified by:
getAllVesselType in interface VesselTypeDao
See Also:
VesselTypeDao.getAllVesselType(java.lang.String)

getAllVesselType

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

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

getAllVesselType

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

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

getAllVesselType

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

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

Specified by:
getAllVesselType in interface VesselTypeDao
See Also:
VesselTypeDao.getAllVesselType(int, String)

getAllVesselType

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

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

getAllVesselType

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

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

findVesselTypeById

public VesselType findVesselTypeById(java.lang.Integer id)
Specified by:
findVesselTypeById in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeById(java.lang.Integer)

findVesselTypeById

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

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

findVesselTypeById

public VesselType findVesselTypeById(java.lang.String queryString,
                                     java.lang.Integer id)
Description copied from interface: VesselTypeDao

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

Specified by:
findVesselTypeById in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeById(java.lang.String, java.lang.Integer)

findVesselTypeById

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

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

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

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(Status status)
Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(fr.ifremer.allegro.referential.Status)

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(int transform,
                                                   Status status)
Description copied from interface: VesselTypeDao

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

Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(int, fr.ifremer.allegro.referential.Status)

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(java.lang.String queryString,
                                                   Status status)
Description copied from interface: VesselTypeDao

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

Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(int pageNumber,
                                                   int pageSize,
                                                   Status status)
Description copied from interface: VesselTypeDao

Does the same thing as VesselTypeDao.findVesselTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(int, int, fr.ifremer.allegro.referential.Status)

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Status status)
Description copied from interface: VesselTypeDao

Does the same thing as VesselTypeDao.findVesselTypeByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(String, int, int, fr.ifremer.allegro.referential.Status)

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(int transform,
                                                   java.lang.String queryString,
                                                   Status status)
Description copied from interface: VesselTypeDao

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

Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(int, String, fr.ifremer.allegro.referential.Status)

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(int transform,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Status status)
Description copied from interface: VesselTypeDao

Does the same thing as VesselTypeDao.findVesselTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(int, int, int, fr.ifremer.allegro.referential.Status)

findVesselTypeByStatus

public java.util.Collection findVesselTypeByStatus(int transform,
                                                   java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Status status)
Description copied from interface: VesselTypeDao

Does the same thing as VesselTypeDao.findVesselTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findVesselTypeByStatus in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)

findVesselTypeByNaturalId

public VesselType findVesselTypeByNaturalId(java.lang.Integer id)
Specified by:
findVesselTypeByNaturalId in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByNaturalId(java.lang.Integer)

findVesselTypeByNaturalId

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

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

findVesselTypeByNaturalId

public VesselType findVesselTypeByNaturalId(java.lang.String queryString,
                                            java.lang.Integer id)
Description copied from interface: VesselTypeDao

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

Specified by:
findVesselTypeByNaturalId in interface VesselTypeDao
See Also:
VesselTypeDao.findVesselTypeByNaturalId(java.lang.String, java.lang.Integer)

findVesselTypeByNaturalId

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

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

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

getAllVesselTypeSinceDateSynchro

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

getAllVesselTypeSinceDateSynchro

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

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

getAllVesselTypeSinceDateSynchro

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

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

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

getAllVesselTypeSinceDateSynchro

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

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

getAllVesselTypeSinceDateSynchro

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

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

getAllVesselTypeSinceDateSynchro

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

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

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

getAllVesselTypeSinceDateSynchro

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

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

getAllVesselTypeSinceDateSynchro

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

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

createFromClusterVesselType

public VesselType createFromClusterVesselType(ClusterVesselType clusterVesselType)
Specified by:
createFromClusterVesselType in interface VesselTypeDao
See Also:
VesselTypeDao.createFromClusterVesselType(fr.ifremer.allegro.referential.generic.cluster.ClusterVesselType)

handleCreateFromClusterVesselType

protected abstract VesselType handleCreateFromClusterVesselType(ClusterVesselType clusterVesselType)
                                                         throws java.lang.Exception
Performs the core logic for createFromClusterVesselType(fr.ifremer.allegro.referential.generic.cluster.ClusterVesselType)

Throws:
java.lang.Exception

getAllClusterVesselTypeSinceDateSynchro

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

handleGetAllClusterVesselTypeSinceDateSynchro

protected abstract ClusterVesselType[] handleGetAllClusterVesselTypeSinceDateSynchro(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 getAllClusterVesselTypeSinceDateSynchro(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,
                                           VesselType 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.VesselTypeDao, please note that the VesselTypeDao.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 VesselTypeDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteVesselTypeFullVOCollection

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

Specified by:
toRemoteVesselTypeFullVOCollection in interface VesselTypeDao
See Also:
VesselTypeDao.toRemoteVesselTypeFullVOCollection(java.util.Collection)

toRemoteVesselTypeFullVOArray

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

Specified by:
toRemoteVesselTypeFullVOArray in interface VesselTypeDao
See Also:
VesselTypeDao.toRemoteVesselTypeFullVOArray(java.util.Collection)

toRemoteVesselTypeFullVO

protected RemoteVesselTypeFullVO toRemoteVesselTypeFullVO(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 VesselTypeDaoImpl class if you intend to use reporting queries.

See Also:
VesselTypeDao.toRemoteVesselTypeFullVO(fr.ifremer.allegro.referential.VesselType)

remoteVesselTypeFullVOToEntityCollection

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

Specified by:
remoteVesselTypeFullVOToEntityCollection in interface VesselTypeDao
See Also:
VesselTypeDao.remoteVesselTypeFullVOToEntityCollection(java.util.Collection)

toRemoteVesselTypeFullVO

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

toRemoteVesselTypeFullVO

public RemoteVesselTypeFullVO toRemoteVesselTypeFullVO(VesselType entity)
Description copied from interface: VesselTypeDao
Converts this DAO's entity to an object of type RemoteVesselTypeFullVO.

Specified by:
toRemoteVesselTypeFullVO in interface VesselTypeDao
See Also:
VesselTypeDao.toRemoteVesselTypeFullVO(fr.ifremer.allegro.referential.VesselType)

remoteVesselTypeFullVOToEntity

public void remoteVesselTypeFullVOToEntity(RemoteVesselTypeFullVO source,
                                           VesselType target,
                                           boolean copyIfNull)
Description copied from interface: VesselTypeDao
Copies the fields of RemoteVesselTypeFullVO to the specified entity.

Specified by:
remoteVesselTypeFullVOToEntity in interface VesselTypeDao
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.VesselTypeDao#remoteVesselTypeFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteVesselTypeFullVO, fr.ifremer.allegro.referential.VesselType)

toRemoteVesselTypeNaturalIdCollection

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

Specified by:
toRemoteVesselTypeNaturalIdCollection in interface VesselTypeDao
See Also:
VesselTypeDao.toRemoteVesselTypeNaturalIdCollection(java.util.Collection)

toRemoteVesselTypeNaturalIdArray

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

Specified by:
toRemoteVesselTypeNaturalIdArray in interface VesselTypeDao
See Also:
VesselTypeDao.toRemoteVesselTypeNaturalIdArray(java.util.Collection)

toRemoteVesselTypeNaturalId

protected RemoteVesselTypeNaturalId toRemoteVesselTypeNaturalId(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 VesselTypeDaoImpl class if you intend to use reporting queries.

See Also:
VesselTypeDao.toRemoteVesselTypeNaturalId(fr.ifremer.allegro.referential.VesselType)

remoteVesselTypeNaturalIdToEntityCollection

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

Specified by:
remoteVesselTypeNaturalIdToEntityCollection in interface VesselTypeDao
See Also:
VesselTypeDao.remoteVesselTypeNaturalIdToEntityCollection(java.util.Collection)

toRemoteVesselTypeNaturalId

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

toRemoteVesselTypeNaturalId

public RemoteVesselTypeNaturalId toRemoteVesselTypeNaturalId(VesselType entity)
Description copied from interface: VesselTypeDao
Converts this DAO's entity to an object of type RemoteVesselTypeNaturalId.

Specified by:
toRemoteVesselTypeNaturalId in interface VesselTypeDao
See Also:
VesselTypeDao.toRemoteVesselTypeNaturalId(fr.ifremer.allegro.referential.VesselType)

remoteVesselTypeNaturalIdToEntity

public void remoteVesselTypeNaturalIdToEntity(RemoteVesselTypeNaturalId source,
                                              VesselType target,
                                              boolean copyIfNull)
Description copied from interface: VesselTypeDao
Copies the fields of RemoteVesselTypeNaturalId to the specified entity.

Specified by:
remoteVesselTypeNaturalIdToEntity in interface VesselTypeDao
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.VesselTypeDao#remoteVesselTypeNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteVesselTypeNaturalId, fr.ifremer.allegro.referential.VesselType)

toClusterVesselTypeCollection

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

Specified by:
toClusterVesselTypeCollection in interface VesselTypeDao
See Also:
VesselTypeDao.toClusterVesselTypeCollection(java.util.Collection)

toClusterVesselTypeArray

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

Specified by:
toClusterVesselTypeArray in interface VesselTypeDao
See Also:
VesselTypeDao.toClusterVesselTypeArray(java.util.Collection)

toClusterVesselType

protected ClusterVesselType toClusterVesselType(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 VesselTypeDaoImpl class if you intend to use reporting queries.

See Also:
VesselTypeDao.toClusterVesselType(fr.ifremer.allegro.referential.VesselType)

clusterVesselTypeToEntityCollection

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

Specified by:
clusterVesselTypeToEntityCollection in interface VesselTypeDao
See Also:
VesselTypeDao.clusterVesselTypeToEntityCollection(java.util.Collection)

toClusterVesselType

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

toClusterVesselType

public ClusterVesselType toClusterVesselType(VesselType entity)
Description copied from interface: VesselTypeDao
Converts this DAO's entity to an object of type ClusterVesselType.

Specified by:
toClusterVesselType in interface VesselTypeDao
See Also:
VesselTypeDao.toClusterVesselType(fr.ifremer.allegro.referential.VesselType)

clusterVesselTypeToEntity

public void clusterVesselTypeToEntity(ClusterVesselType source,
                                      VesselType target,
                                      boolean copyIfNull)
Description copied from interface: VesselTypeDao
Copies the fields of ClusterVesselType to the specified entity.

Specified by:
clusterVesselTypeToEntity in interface VesselTypeDao
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.VesselTypeDao#clusterVesselTypeToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterVesselType, fr.ifremer.allegro.referential.VesselType)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.