fr.ifremer.allegro.referential.buyer
Class BuyerDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.buyer.BuyerDaoBase
All Implemented Interfaces:
BuyerDao
Direct Known Subclasses:
BuyerDaoImpl

public abstract class BuyerDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements BuyerDao

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

See Also:
Buyer

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.buyer.BuyerDao
TRANSFORM_CLUSTERBUYER, TRANSFORM_NONE, TRANSFORM_REMOTEBUYERFULLVO, TRANSFORM_REMOTEBUYERNATURALID
 
Constructor Summary
BuyerDaoBase()
           
 
Method Summary
 void clusterBuyerToEntity(ClusterBuyer source, Buyer target, boolean copyIfNull)
          Copies the fields of ClusterBuyer to the specified entity.
 void clusterBuyerToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterBuyer to this DAO's entity.
 Buyer create(Buyer buyer)
          Creates an instance of fr.ifremer.allegro.referential.buyer.Buyer and adds it to the persistent store.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.buyer.Buyer and adds from the passed in entities collection
 java.lang.Object create(int transform, Buyer buyer)
           Does the same thing as BuyerDao.create(fr.ifremer.allegro.referential.buyer.Buyer) with an additional flag called transform.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as BuyerDao.create(fr.ifremer.allegro.referential.buyer.Buyer) with an additional flag called transform.
 java.lang.Object create(int transform, Status status)
           Does the same thing as BuyerDao.create(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String registrationCode, java.lang.String name, java.lang.String street, java.lang.String zipCode, java.lang.String city, java.sql.Timestamp updateDate, Status status)
           Does the same thing as BuyerDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 Buyer create(Status status)
           Creates a new fr.ifremer.allegro.referential.buyer.Buyer instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Buyer create(java.lang.String registrationCode, java.lang.String name, java.lang.String street, java.lang.String zipCode, java.lang.String city, java.sql.Timestamp updateDate, Status status)
           Creates a new fr.ifremer.allegro.referential.buyer.Buyer instance from all attributes and properties and adds it to the persistent store.
 Buyer createFromClusterBuyer(ClusterBuyer clusterBuyer)
           
 Buyer findBuyerById(java.lang.Integer id)
           
 java.lang.Object findBuyerById(int transform, java.lang.Integer id)
           Does the same thing as BuyerDao.findBuyerById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findBuyerById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BuyerDao.findBuyerById(int, java.lang.Integer) with an additional argument called queryString.
 Buyer findBuyerById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BuyerDao.findBuyerById(java.lang.Integer) with an additional argument called queryString.
 Buyer findBuyerByNaturalId(java.lang.Integer id)
           
 java.lang.Object findBuyerByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as BuyerDao.findBuyerByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findBuyerByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BuyerDao.findBuyerByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Buyer findBuyerByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BuyerDao.findBuyerByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findBuyerByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as BuyerDao.findBuyerByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findBuyerByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as BuyerDao.findBuyerByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findBuyerByStatus(int transform, Status status)
           Does the same thing as BuyerDao.findBuyerByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findBuyerByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as BuyerDao.findBuyerByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findBuyerByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as BuyerDao.findBuyerByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findBuyerByStatus(Status status)
           
 java.util.Collection findBuyerByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as BuyerDao.findBuyerByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findBuyerByStatus(java.lang.String queryString, Status status)
           Does the same thing as BuyerDao.findBuyerByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection getAllBuyer()
           
 java.util.Collection getAllBuyer(int transform)
           Does the same thing as BuyerDao.getAllBuyer() with an additional flag called transform.
 java.util.Collection getAllBuyer(int pageNumber, int pageSize)
           Does the same thing as BuyerDao.getAllBuyer() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyer(int transform, int pageNumber, int pageSize)
           Does the same thing as BuyerDao.getAllBuyer(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyer(int transform, java.lang.String queryString)
           Does the same thing as BuyerDao.getAllBuyer(int) with an additional argument called queryString.
 java.util.Collection getAllBuyer(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as BuyerDao.getAllBuyer(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyer(java.lang.String queryString)
           Does the same thing as BuyerDao.getAllBuyer() with an additional argument called queryString.
 java.util.Collection getAllBuyer(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as BuyerDao.getAllBuyer(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyerSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as BuyerDao.getAllBuyerSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyerSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as BuyerDao.getAllBuyerSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyerSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as BuyerDao.getAllBuyerSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyerSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as BuyerDao.getAllBuyerSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllBuyerSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as BuyerDao.getAllBuyerSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllBuyerSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as BuyerDao.getAllBuyerSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBuyerSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as BuyerDao.getAllBuyerSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllBuyerSinceDateSynchro(java.sql.Timestamp updateDate)
           
 ClusterBuyer[] getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
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  Buyer handleCreateFromClusterBuyer(ClusterBuyer clusterBuyer)
          Performs the core logic for createFromClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)
protected abstract  ClusterBuyer[] handleGetAllClusterBuyerSinceDateSynchro(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 getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Buyer load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.buyer.Buyer from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as BuyerDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Buyer.
 java.util.Collection loadAll(int transform)
           Does the same thing as BuyerDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as BuyerDao.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 BuyerDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteBuyerFullVOToEntity(RemoteBuyerFullVO source, Buyer target, boolean copyIfNull)
          Copies the fields of RemoteBuyerFullVO to the specified entity.
 void remoteBuyerFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteBuyerFullVO to this DAO's entity.
 void remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId source, Buyer target, boolean copyIfNull)
          Copies the fields of RemoteBuyerNaturalId to the specified entity.
 void remoteBuyerNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteBuyerNaturalId to this DAO's entity.
 void remove(Buyer buyer)
          Removes the instance of fr.ifremer.allegro.referential.buyer.Buyer from the persistent store.
 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.buyer.Buyer having the given identifier from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as BuyerDao.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.
 ClusterBuyer toClusterBuyer(Buyer entity)
          Converts this DAO's entity to an object of type ClusterBuyer.
 void toClusterBuyer(Buyer source, ClusterBuyer target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterBuyer toClusterBuyer(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterBuyer[] toClusterBuyerArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterBuyer.
 void toClusterBuyerCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterBuyer.
protected  Buyer toEntity(java.lang.Object[] row)
           
 RemoteBuyerFullVO toRemoteBuyerFullVO(Buyer entity)
          Converts this DAO's entity to an object of type RemoteBuyerFullVO.
 void toRemoteBuyerFullVO(Buyer source, RemoteBuyerFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteBuyerFullVO toRemoteBuyerFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteBuyerFullVO[] toRemoteBuyerFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteBuyerFullVO.
 void toRemoteBuyerFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteBuyerFullVO.
 RemoteBuyerNaturalId toRemoteBuyerNaturalId(Buyer entity)
          Converts this DAO's entity to an object of type RemoteBuyerNaturalId.
 void toRemoteBuyerNaturalId(Buyer source, RemoteBuyerNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteBuyerNaturalId toRemoteBuyerNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteBuyerNaturalId[] toRemoteBuyerNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteBuyerNaturalId.
 void toRemoteBuyerNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteBuyerNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.buyer.Buyer) method.
protected  java.lang.Object transformEntity(int transform, Buyer 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.buyer.BuyerDao, please note that the BuyerDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(Buyer buyer)
          Updates the buyer instance in the persistent store.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection 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.buyer.BuyerDao
clusterBuyerToEntity, remoteBuyerFullVOToEntity, remoteBuyerNaturalIdToEntity
 

Constructor Detail

BuyerDaoBase

public BuyerDaoBase()
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: BuyerDao

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

Specified by:
create in interface BuyerDao
See Also:
BuyerDao.create(fr.ifremer.allegro.referential.buyer.Buyer)

create

public java.lang.Object create(int transform,
                               Buyer buyer)
Description copied from interface: BuyerDao

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

create

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

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

create

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

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

create

public Buyer create(java.lang.String registrationCode,
                    java.lang.String name,
                    java.lang.String street,
                    java.lang.String zipCode,
                    java.lang.String city,
                    java.sql.Timestamp updateDate,
                    Status status)
Description copied from interface: BuyerDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String registrationCode,
                               java.lang.String name,
                               java.lang.String street,
                               java.lang.String zipCode,
                               java.lang.String city,
                               java.sql.Timestamp updateDate,
                               Status status)
Description copied from interface: BuyerDao

Does the same thing as BuyerDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,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 BuyerDao
See Also:
BuyerDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)

create

public Buyer create(Status status)
Description copied from interface: BuyerDao

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

Specified by:
create in interface BuyerDao
See Also:
BuyerDao.create(fr.ifremer.allegro.referential.Status)

create

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

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

update

public void update(Buyer buyer)
Description copied from interface: BuyerDao
Updates the buyer instance in the persistent store.

Specified by:
update in interface BuyerDao
See Also:
BuyerDao.update(fr.ifremer.allegro.referential.buyer.Buyer)

update

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

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

remove

public void remove(Buyer buyer)
Description copied from interface: BuyerDao
Removes the instance of fr.ifremer.allegro.referential.buyer.Buyer from the persistent store.

Specified by:
remove in interface BuyerDao
See Also:
BuyerDao.remove(fr.ifremer.allegro.referential.buyer.Buyer)

remove

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

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

remove

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

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

getAllBuyer

public java.util.Collection getAllBuyer()
Specified by:
getAllBuyer in interface BuyerDao
See Also:
BuyerDao.getAllBuyer()

getAllBuyer

public java.util.Collection getAllBuyer(int transform)
Description copied from interface: BuyerDao

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

getAllBuyer

public java.util.Collection getAllBuyer(java.lang.String queryString)
Description copied from interface: BuyerDao

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

Specified by:
getAllBuyer in interface BuyerDao
See Also:
BuyerDao.getAllBuyer(java.lang.String)

getAllBuyer

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

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

getAllBuyer

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

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

getAllBuyer

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

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

Specified by:
getAllBuyer in interface BuyerDao
See Also:
BuyerDao.getAllBuyer(int, String)

getAllBuyer

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

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

getAllBuyer

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

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

findBuyerById

public Buyer findBuyerById(java.lang.Integer id)
Specified by:
findBuyerById in interface BuyerDao
See Also:
BuyerDao.findBuyerById(java.lang.Integer)

findBuyerById

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

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

findBuyerById

public Buyer findBuyerById(java.lang.String queryString,
                           java.lang.Integer id)
Description copied from interface: BuyerDao

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

Specified by:
findBuyerById in interface BuyerDao
See Also:
BuyerDao.findBuyerById(java.lang.String, java.lang.Integer)

findBuyerById

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

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

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

findBuyerByStatus

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

findBuyerByStatus

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

Does the same thing as BuyerDao.findBuyerByStatus(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:
findBuyerByStatus in interface BuyerDao
See Also:
BuyerDao.findBuyerByStatus(int, fr.ifremer.allegro.referential.Status)

findBuyerByStatus

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

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

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

findBuyerByStatus

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

Does the same thing as BuyerDao.findBuyerByStatus(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:
findBuyerByStatus in interface BuyerDao
See Also:
BuyerDao.findBuyerByStatus(int, int, fr.ifremer.allegro.referential.Status)

findBuyerByStatus

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

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

findBuyerByStatus

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

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

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

findBuyerByStatus

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

Does the same thing as BuyerDao.findBuyerByStatus(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:
findBuyerByStatus in interface BuyerDao
See Also:
BuyerDao.findBuyerByStatus(int, int, int, fr.ifremer.allegro.referential.Status)

findBuyerByStatus

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

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

findBuyerByNaturalId

public Buyer findBuyerByNaturalId(java.lang.Integer id)
Specified by:
findBuyerByNaturalId in interface BuyerDao
See Also:
BuyerDao.findBuyerByNaturalId(java.lang.Integer)

findBuyerByNaturalId

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

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

findBuyerByNaturalId

public Buyer findBuyerByNaturalId(java.lang.String queryString,
                                  java.lang.Integer id)
Description copied from interface: BuyerDao

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

Specified by:
findBuyerByNaturalId in interface BuyerDao
See Also:
BuyerDao.findBuyerByNaturalId(java.lang.String, java.lang.Integer)

findBuyerByNaturalId

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

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

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

getAllBuyerSinceDateSynchro

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

getAllBuyerSinceDateSynchro

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

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

getAllBuyerSinceDateSynchro

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

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

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

getAllBuyerSinceDateSynchro

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

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

getAllBuyerSinceDateSynchro

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

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

getAllBuyerSinceDateSynchro

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

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

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

getAllBuyerSinceDateSynchro

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

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

getAllBuyerSinceDateSynchro

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

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

createFromClusterBuyer

public Buyer createFromClusterBuyer(ClusterBuyer clusterBuyer)
Specified by:
createFromClusterBuyer in interface BuyerDao
See Also:
BuyerDao.createFromClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

handleCreateFromClusterBuyer

protected abstract Buyer handleCreateFromClusterBuyer(ClusterBuyer clusterBuyer)
                                               throws java.lang.Exception
Performs the core logic for createFromClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

Throws:
java.lang.Exception

getAllClusterBuyerSinceDateSynchro

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

handleGetAllClusterBuyerSinceDateSynchro

protected abstract ClusterBuyer[] handleGetAllClusterBuyerSinceDateSynchro(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 getAllClusterBuyerSinceDateSynchro(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,
                                           Buyer 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.buyer.BuyerDao, please note that the BuyerDao.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 BuyerDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteBuyerFullVOCollection

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

Specified by:
toRemoteBuyerFullVOCollection in interface BuyerDao
See Also:
BuyerDao.toRemoteBuyerFullVOCollection(java.util.Collection)

toRemoteBuyerFullVOArray

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

Specified by:
toRemoteBuyerFullVOArray in interface BuyerDao
See Also:
BuyerDao.toRemoteBuyerFullVOArray(java.util.Collection)

toRemoteBuyerFullVO

protected RemoteBuyerFullVO toRemoteBuyerFullVO(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 BuyerDaoImpl class if you intend to use reporting queries.

See Also:
BuyerDao.toRemoteBuyerFullVO(fr.ifremer.allegro.referential.buyer.Buyer)

remoteBuyerFullVOToEntityCollection

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

Specified by:
remoteBuyerFullVOToEntityCollection in interface BuyerDao
See Also:
BuyerDao.remoteBuyerFullVOToEntityCollection(java.util.Collection)

toRemoteBuyerFullVO

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

toRemoteBuyerFullVO

public RemoteBuyerFullVO toRemoteBuyerFullVO(Buyer entity)
Description copied from interface: BuyerDao
Converts this DAO's entity to an object of type RemoteBuyerFullVO.

Specified by:
toRemoteBuyerFullVO in interface BuyerDao
See Also:
BuyerDao.toRemoteBuyerFullVO(fr.ifremer.allegro.referential.buyer.Buyer)

remoteBuyerFullVOToEntity

public void remoteBuyerFullVOToEntity(RemoteBuyerFullVO source,
                                      Buyer target,
                                      boolean copyIfNull)
Description copied from interface: BuyerDao
Copies the fields of RemoteBuyerFullVO to the specified entity.

Specified by:
remoteBuyerFullVOToEntity in interface BuyerDao
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.buyer.BuyerDao#remoteBuyerFullVOToEntity(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.Buyer)

toRemoteBuyerNaturalIdCollection

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

Specified by:
toRemoteBuyerNaturalIdCollection in interface BuyerDao
See Also:
BuyerDao.toRemoteBuyerNaturalIdCollection(java.util.Collection)

toRemoteBuyerNaturalIdArray

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

Specified by:
toRemoteBuyerNaturalIdArray in interface BuyerDao
See Also:
BuyerDao.toRemoteBuyerNaturalIdArray(java.util.Collection)

toRemoteBuyerNaturalId

protected RemoteBuyerNaturalId toRemoteBuyerNaturalId(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 BuyerDaoImpl class if you intend to use reporting queries.

See Also:
BuyerDao.toRemoteBuyerNaturalId(fr.ifremer.allegro.referential.buyer.Buyer)

remoteBuyerNaturalIdToEntityCollection

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

Specified by:
remoteBuyerNaturalIdToEntityCollection in interface BuyerDao
See Also:
BuyerDao.remoteBuyerNaturalIdToEntityCollection(java.util.Collection)

toRemoteBuyerNaturalId

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

toRemoteBuyerNaturalId

public RemoteBuyerNaturalId toRemoteBuyerNaturalId(Buyer entity)
Description copied from interface: BuyerDao
Converts this DAO's entity to an object of type RemoteBuyerNaturalId.

Specified by:
toRemoteBuyerNaturalId in interface BuyerDao
See Also:
BuyerDao.toRemoteBuyerNaturalId(fr.ifremer.allegro.referential.buyer.Buyer)

remoteBuyerNaturalIdToEntity

public void remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId source,
                                         Buyer target,
                                         boolean copyIfNull)
Description copied from interface: BuyerDao
Copies the fields of RemoteBuyerNaturalId to the specified entity.

Specified by:
remoteBuyerNaturalIdToEntity in interface BuyerDao
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.buyer.BuyerDao#remoteBuyerNaturalIdToEntity(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerNaturalId, fr.ifremer.allegro.referential.buyer.Buyer)

toClusterBuyerCollection

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

Specified by:
toClusterBuyerCollection in interface BuyerDao
See Also:
BuyerDao.toClusterBuyerCollection(java.util.Collection)

toClusterBuyerArray

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

Specified by:
toClusterBuyerArray in interface BuyerDao
See Also:
BuyerDao.toClusterBuyerArray(java.util.Collection)

toClusterBuyer

protected ClusterBuyer toClusterBuyer(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 BuyerDaoImpl class if you intend to use reporting queries.

See Also:
BuyerDao.toClusterBuyer(fr.ifremer.allegro.referential.buyer.Buyer)

clusterBuyerToEntityCollection

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

Specified by:
clusterBuyerToEntityCollection in interface BuyerDao
See Also:
BuyerDao.clusterBuyerToEntityCollection(java.util.Collection)

toClusterBuyer

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

toClusterBuyer

public ClusterBuyer toClusterBuyer(Buyer entity)
Description copied from interface: BuyerDao
Converts this DAO's entity to an object of type ClusterBuyer.

Specified by:
toClusterBuyer in interface BuyerDao
See Also:
BuyerDao.toClusterBuyer(fr.ifremer.allegro.referential.buyer.Buyer)

clusterBuyerToEntity

public void clusterBuyerToEntity(ClusterBuyer source,
                                 Buyer target,
                                 boolean copyIfNull)
Description copied from interface: BuyerDao
Copies the fields of ClusterBuyer to the specified entity.

Specified by:
clusterBuyerToEntity in interface BuyerDao
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.buyer.BuyerDao#clusterBuyerToEntity(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer, fr.ifremer.allegro.referential.buyer.Buyer)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.