fr.ifremer.allegro.referential.vessel
Class VesselEngineTypeDaoBase

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

public abstract class VesselEngineTypeDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements VesselEngineTypeDao

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

See Also:
VesselEngineType

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.vessel.VesselEngineTypeDao
TRANSFORM_CLUSTERVESSELENGINETYPE, TRANSFORM_NONE, TRANSFORM_REMOTEVESSELENGINETYPEFULLVO, TRANSFORM_REMOTEVESSELENGINETYPENATURALID
 
Constructor Summary
VesselEngineTypeDaoBase()
           
 
Method Summary
 void clusterVesselEngineTypeToEntity(ClusterVesselEngineType source, VesselEngineType target, boolean copyIfNull)
          Copies the fields of ClusterVesselEngineType to the specified entity.
 void clusterVesselEngineTypeToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterVesselEngineType to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.vessel.VesselEngineType and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as VesselEngineTypeDao.create(fr.ifremer.allegro.referential.vessel.VesselEngineType) with an additional flag called transform.
 java.lang.Object create(int transform, VesselEngineType vesselEngineType)
           Does the same thing as VesselEngineTypeDao.create(fr.ifremer.allegro.referential.vessel.VesselEngineType) with an additional flag called transform.
 VesselEngineType create(VesselEngineType vesselEngineType)
          Creates an instance of fr.ifremer.allegro.referential.vessel.VesselEngineType and adds it to the persistent store.
 VesselEngineType createFromClusterVesselEngineType(ClusterVesselEngineType clusterVesselEngineType)
           
 VesselEngineType findVesselEngineTypeById(java.lang.Integer id)
           
 java.lang.Object findVesselEngineTypeById(int transform, java.lang.Integer id)
           Does the same thing as VesselEngineTypeDao.findVesselEngineTypeById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findVesselEngineTypeById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselEngineTypeDao.findVesselEngineTypeById(int, java.lang.Integer) with an additional argument called queryString.
 VesselEngineType findVesselEngineTypeById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselEngineTypeDao.findVesselEngineTypeById(java.lang.Integer) with an additional argument called queryString.
 VesselEngineType findVesselEngineTypeByNaturalId(java.lang.Integer id)
           
 java.lang.Object findVesselEngineTypeByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as VesselEngineTypeDao.findVesselEngineTypeByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findVesselEngineTypeByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselEngineTypeDao.findVesselEngineTypeByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 VesselEngineType findVesselEngineTypeByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as VesselEngineTypeDao.findVesselEngineTypeByNaturalId(java.lang.Integer) with an additional argument called queryString.
 ClusterVesselEngineType[] getAllClusterVesselEngineType(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllVesselEngineType()
           
 java.util.Collection getAllVesselEngineType(int transform)
           Does the same thing as VesselEngineTypeDao.getAllVesselEngineType() with an additional flag called transform.
 java.util.Collection getAllVesselEngineType(int pageNumber, int pageSize)
           Does the same thing as VesselEngineTypeDao.getAllVesselEngineType() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselEngineType(int transform, int pageNumber, int pageSize)
           Does the same thing as VesselEngineTypeDao.getAllVesselEngineType(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselEngineType(int transform, java.lang.String queryString)
           Does the same thing as VesselEngineTypeDao.getAllVesselEngineType(int) with an additional argument called queryString.
 java.util.Collection getAllVesselEngineType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as VesselEngineTypeDao.getAllVesselEngineType(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllVesselEngineType(java.lang.String queryString)
           Does the same thing as VesselEngineTypeDao.getAllVesselEngineType() with an additional argument called queryString.
 java.util.Collection getAllVesselEngineType(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as VesselEngineTypeDao.getAllVesselEngineType(String) with an additional two arguments called pageNumber and pageSize.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected abstract  VesselEngineType handleCreateFromClusterVesselEngineType(ClusterVesselEngineType clusterVesselEngineType)
          Performs the core logic for createFromClusterVesselEngineType(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselEngineType)
protected abstract  ClusterVesselEngineType[] handleGetAllClusterVesselEngineType(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterVesselEngineType(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 VesselEngineType load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.vessel.VesselEngineType from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as VesselEngineTypeDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type VesselEngineType.
 java.util.Collection loadAll(int transform)
           Does the same thing as VesselEngineTypeDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as VesselEngineTypeDao.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 VesselEngineTypeDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteVesselEngineTypeFullVOToEntity(RemoteVesselEngineTypeFullVO source, VesselEngineType target, boolean copyIfNull)
          Copies the fields of RemoteVesselEngineTypeFullVO to the specified entity.
 void remoteVesselEngineTypeFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteVesselEngineTypeFullVO to this DAO's entity.
 void remoteVesselEngineTypeNaturalIdToEntity(RemoteVesselEngineTypeNaturalId source, VesselEngineType target, boolean copyIfNull)
          Copies the fields of RemoteVesselEngineTypeNaturalId to the specified entity.
 void remoteVesselEngineTypeNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteVesselEngineTypeNaturalId 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.VesselEngineType having the given identifier from the persistent store.
 void remove(VesselEngineType vesselEngineType)
          Removes the instance of fr.ifremer.allegro.referential.vessel.VesselEngineType 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 VesselEngineTypeDao.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.
protected  ClusterVesselEngineType toClusterVesselEngineType(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterVesselEngineType toClusterVesselEngineType(VesselEngineType entity)
          Converts this DAO's entity to an object of type ClusterVesselEngineType.
 void toClusterVesselEngineType(VesselEngineType source, ClusterVesselEngineType target)
          Copies the fields of the specified entity to the target value object.
 ClusterVesselEngineType[] toClusterVesselEngineTypeArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterVesselEngineType.
 void toClusterVesselEngineTypeCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterVesselEngineType.
protected  VesselEngineType toEntity(java.lang.Object[] row)
           
protected  RemoteVesselEngineTypeFullVO toRemoteVesselEngineTypeFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteVesselEngineTypeFullVO toRemoteVesselEngineTypeFullVO(VesselEngineType entity)
          Converts this DAO's entity to an object of type RemoteVesselEngineTypeFullVO.
 void toRemoteVesselEngineTypeFullVO(VesselEngineType source, RemoteVesselEngineTypeFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteVesselEngineTypeFullVO[] toRemoteVesselEngineTypeFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteVesselEngineTypeFullVO.
 void toRemoteVesselEngineTypeFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteVesselEngineTypeFullVO.
protected  RemoteVesselEngineTypeNaturalId toRemoteVesselEngineTypeNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteVesselEngineTypeNaturalId toRemoteVesselEngineTypeNaturalId(VesselEngineType entity)
          Converts this DAO's entity to an object of type RemoteVesselEngineTypeNaturalId.
 void toRemoteVesselEngineTypeNaturalId(VesselEngineType source, RemoteVesselEngineTypeNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteVesselEngineTypeNaturalId[] toRemoteVesselEngineTypeNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteVesselEngineTypeNaturalId.
 void toRemoteVesselEngineTypeNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteVesselEngineTypeNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.vessel.VesselEngineType) method.
protected  java.lang.Object transformEntity(int transform, VesselEngineType 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.VesselEngineTypeDao, please note that the VesselEngineTypeDao.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(VesselEngineType vesselEngineType)
          Updates the vesselEngineType 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.VesselEngineTypeDao
clusterVesselEngineTypeToEntity, remoteVesselEngineTypeFullVOToEntity, remoteVesselEngineTypeNaturalIdToEntity
 

Constructor Detail

VesselEngineTypeDaoBase

public VesselEngineTypeDaoBase()
Method Detail

load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               VesselEngineType vesselEngineType)
Description copied from interface: VesselEngineTypeDao

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

create

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

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

create

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

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

update

public void update(VesselEngineType vesselEngineType)
Description copied from interface: VesselEngineTypeDao
Updates the vesselEngineType instance in the persistent store.

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

update

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

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

remove

public void remove(VesselEngineType vesselEngineType)
Description copied from interface: VesselEngineTypeDao
Removes the instance of fr.ifremer.allegro.referential.vessel.VesselEngineType from the persistent store.

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

remove

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

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

remove

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

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

getAllVesselEngineType

public java.util.Collection getAllVesselEngineType()
Specified by:
getAllVesselEngineType in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.getAllVesselEngineType()

getAllVesselEngineType

public java.util.Collection getAllVesselEngineType(int transform)
Description copied from interface: VesselEngineTypeDao

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

getAllVesselEngineType

public java.util.Collection getAllVesselEngineType(java.lang.String queryString)
Description copied from interface: VesselEngineTypeDao

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

Specified by:
getAllVesselEngineType in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.getAllVesselEngineType(java.lang.String)

getAllVesselEngineType

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

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

getAllVesselEngineType

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

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

getAllVesselEngineType

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

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

Specified by:
getAllVesselEngineType in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.getAllVesselEngineType(int, String)

getAllVesselEngineType

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

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

getAllVesselEngineType

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

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

findVesselEngineTypeById

public VesselEngineType findVesselEngineTypeById(java.lang.Integer id)
Specified by:
findVesselEngineTypeById in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.findVesselEngineTypeById(java.lang.Integer)

findVesselEngineTypeById

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

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

findVesselEngineTypeById

public VesselEngineType findVesselEngineTypeById(java.lang.String queryString,
                                                 java.lang.Integer id)
Description copied from interface: VesselEngineTypeDao

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

Specified by:
findVesselEngineTypeById in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.findVesselEngineTypeById(java.lang.String, java.lang.Integer)

findVesselEngineTypeById

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

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

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

findVesselEngineTypeByNaturalId

public VesselEngineType findVesselEngineTypeByNaturalId(java.lang.Integer id)
Specified by:
findVesselEngineTypeByNaturalId in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.findVesselEngineTypeByNaturalId(java.lang.Integer)

findVesselEngineTypeByNaturalId

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

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

findVesselEngineTypeByNaturalId

public VesselEngineType findVesselEngineTypeByNaturalId(java.lang.String queryString,
                                                        java.lang.Integer id)
Description copied from interface: VesselEngineTypeDao

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

Specified by:
findVesselEngineTypeByNaturalId in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.findVesselEngineTypeByNaturalId(java.lang.String, java.lang.Integer)

findVesselEngineTypeByNaturalId

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

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

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

createFromClusterVesselEngineType

public VesselEngineType createFromClusterVesselEngineType(ClusterVesselEngineType clusterVesselEngineType)
Specified by:
createFromClusterVesselEngineType in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.createFromClusterVesselEngineType(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselEngineType)

handleCreateFromClusterVesselEngineType

protected abstract VesselEngineType handleCreateFromClusterVesselEngineType(ClusterVesselEngineType clusterVesselEngineType)
                                                                     throws java.lang.Exception
Performs the core logic for createFromClusterVesselEngineType(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselEngineType)

Throws:
java.lang.Exception

getAllClusterVesselEngineType

public ClusterVesselEngineType[] getAllClusterVesselEngineType(java.lang.Integer userId,
                                                               java.lang.Integer[] registrationLocationIds,
                                                               java.lang.Integer pageNumber,
                                                               java.lang.Integer pageSize)
Specified by:
getAllClusterVesselEngineType in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.getAllClusterVesselEngineType(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterVesselEngineType

protected abstract ClusterVesselEngineType[] handleGetAllClusterVesselEngineType(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 getAllClusterVesselEngineType(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           VesselEngineType 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.VesselEngineTypeDao, please note that the VesselEngineTypeDao.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 VesselEngineTypeDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteVesselEngineTypeFullVOCollection

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

Specified by:
toRemoteVesselEngineTypeFullVOCollection in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeFullVOCollection(java.util.Collection)

toRemoteVesselEngineTypeFullVOArray

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

Specified by:
toRemoteVesselEngineTypeFullVOArray in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeFullVOArray(java.util.Collection)

toRemoteVesselEngineTypeFullVO

protected RemoteVesselEngineTypeFullVO toRemoteVesselEngineTypeFullVO(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 VesselEngineTypeDaoImpl class if you intend to use reporting queries.

See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeFullVO(fr.ifremer.allegro.referential.vessel.VesselEngineType)

remoteVesselEngineTypeFullVOToEntityCollection

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

Specified by:
remoteVesselEngineTypeFullVOToEntityCollection in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.remoteVesselEngineTypeFullVOToEntityCollection(java.util.Collection)

toRemoteVesselEngineTypeFullVO

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

toRemoteVesselEngineTypeFullVO

public RemoteVesselEngineTypeFullVO toRemoteVesselEngineTypeFullVO(VesselEngineType entity)
Description copied from interface: VesselEngineTypeDao
Converts this DAO's entity to an object of type RemoteVesselEngineTypeFullVO.

Specified by:
toRemoteVesselEngineTypeFullVO in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeFullVO(fr.ifremer.allegro.referential.vessel.VesselEngineType)

remoteVesselEngineTypeFullVOToEntity

public void remoteVesselEngineTypeFullVOToEntity(RemoteVesselEngineTypeFullVO source,
                                                 VesselEngineType target,
                                                 boolean copyIfNull)
Description copied from interface: VesselEngineTypeDao
Copies the fields of RemoteVesselEngineTypeFullVO to the specified entity.

Specified by:
remoteVesselEngineTypeFullVOToEntity in interface VesselEngineTypeDao
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.VesselEngineTypeDao#remoteVesselEngineTypeFullVOToEntity(fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselEngineTypeFullVO, fr.ifremer.allegro.referential.vessel.VesselEngineType)

toRemoteVesselEngineTypeNaturalIdCollection

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

Specified by:
toRemoteVesselEngineTypeNaturalIdCollection in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeNaturalIdCollection(java.util.Collection)

toRemoteVesselEngineTypeNaturalIdArray

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

Specified by:
toRemoteVesselEngineTypeNaturalIdArray in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeNaturalIdArray(java.util.Collection)

toRemoteVesselEngineTypeNaturalId

protected RemoteVesselEngineTypeNaturalId toRemoteVesselEngineTypeNaturalId(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 VesselEngineTypeDaoImpl class if you intend to use reporting queries.

See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeNaturalId(fr.ifremer.allegro.referential.vessel.VesselEngineType)

remoteVesselEngineTypeNaturalIdToEntityCollection

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

Specified by:
remoteVesselEngineTypeNaturalIdToEntityCollection in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.remoteVesselEngineTypeNaturalIdToEntityCollection(java.util.Collection)

toRemoteVesselEngineTypeNaturalId

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

toRemoteVesselEngineTypeNaturalId

public RemoteVesselEngineTypeNaturalId toRemoteVesselEngineTypeNaturalId(VesselEngineType entity)
Description copied from interface: VesselEngineTypeDao
Converts this DAO's entity to an object of type RemoteVesselEngineTypeNaturalId.

Specified by:
toRemoteVesselEngineTypeNaturalId in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toRemoteVesselEngineTypeNaturalId(fr.ifremer.allegro.referential.vessel.VesselEngineType)

remoteVesselEngineTypeNaturalIdToEntity

public void remoteVesselEngineTypeNaturalIdToEntity(RemoteVesselEngineTypeNaturalId source,
                                                    VesselEngineType target,
                                                    boolean copyIfNull)
Description copied from interface: VesselEngineTypeDao
Copies the fields of RemoteVesselEngineTypeNaturalId to the specified entity.

Specified by:
remoteVesselEngineTypeNaturalIdToEntity in interface VesselEngineTypeDao
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.VesselEngineTypeDao#remoteVesselEngineTypeNaturalIdToEntity(fr.ifremer.allegro.referential.vessel.generic.vo.RemoteVesselEngineTypeNaturalId, fr.ifremer.allegro.referential.vessel.VesselEngineType)

toClusterVesselEngineTypeCollection

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

Specified by:
toClusterVesselEngineTypeCollection in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toClusterVesselEngineTypeCollection(java.util.Collection)

toClusterVesselEngineTypeArray

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

Specified by:
toClusterVesselEngineTypeArray in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toClusterVesselEngineTypeArray(java.util.Collection)

toClusterVesselEngineType

protected ClusterVesselEngineType toClusterVesselEngineType(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 VesselEngineTypeDaoImpl class if you intend to use reporting queries.

See Also:
VesselEngineTypeDao.toClusterVesselEngineType(fr.ifremer.allegro.referential.vessel.VesselEngineType)

clusterVesselEngineTypeToEntityCollection

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

Specified by:
clusterVesselEngineTypeToEntityCollection in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.clusterVesselEngineTypeToEntityCollection(java.util.Collection)

toClusterVesselEngineType

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

toClusterVesselEngineType

public ClusterVesselEngineType toClusterVesselEngineType(VesselEngineType entity)
Description copied from interface: VesselEngineTypeDao
Converts this DAO's entity to an object of type ClusterVesselEngineType.

Specified by:
toClusterVesselEngineType in interface VesselEngineTypeDao
See Also:
VesselEngineTypeDao.toClusterVesselEngineType(fr.ifremer.allegro.referential.vessel.VesselEngineType)

clusterVesselEngineTypeToEntity

public void clusterVesselEngineTypeToEntity(ClusterVesselEngineType source,
                                            VesselEngineType target,
                                            boolean copyIfNull)
Description copied from interface: VesselEngineTypeDao
Copies the fields of ClusterVesselEngineType to the specified entity.

Specified by:
clusterVesselEngineTypeToEntity in interface VesselEngineTypeDao
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.VesselEngineTypeDao#clusterVesselEngineTypeToEntity(fr.ifremer.allegro.referential.vessel.generic.cluster.ClusterVesselEngineType, fr.ifremer.allegro.referential.vessel.VesselEngineType)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.