fr.ifremer.allegro.referential.buyer
Interface BuyerDao

All Known Implementing Classes:
BuyerDaoBase, BuyerDaoImpl

public interface BuyerDao

See Also:
Buyer

Field Summary
static int TRANSFORM_CLUSTERBUYER
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_NONE
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEBUYERFULLVO
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEBUYERNATURALID
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
 
Method Summary
 Buyer clusterBuyerToEntity(ClusterBuyer clusterBuyer)
          Converts an instance of type ClusterBuyer to this DAO's entity.
 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 getAllBuyer() with an additional flag called transform.
 java.util.Collection getAllBuyer(int pageNumber, int pageSize)
           Does the same thing as 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 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 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 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 getAllBuyer() with an additional argument called queryString.
 java.util.Collection getAllBuyer(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as 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 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 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 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 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 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 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 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)
           
 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 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 loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as loadAll() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
           Does the same thing as loadAll(int) with an additional two arguments called pageNumber and pageSize.
 Buyer remoteBuyerFullVOToEntity(RemoteBuyerFullVO remoteBuyerFullVO)
          Converts an instance of type RemoteBuyerFullVO to this DAO's entity.
 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.
 Buyer remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId remoteBuyerNaturalId)
          Converts an instance of type RemoteBuyerNaturalId 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 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.
 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.
 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.
 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.
 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.
 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.
 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.
 

Field Detail

TRANSFORM_NONE

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

This specific flag denotes no transformation will occur.

See Also:
Constant Field Values

TRANSFORM_REMOTEBUYERFULLVO

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

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

See Also:
Constant Field Values

TRANSFORM_REMOTEBUYERNATURALID

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

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

See Also:
Constant Field Values

TRANSFORM_CLUSTERBUYER

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

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

See Also:
Constant Field Values
Method Detail

toRemoteBuyerFullVO

void toRemoteBuyerFullVO(Buyer source,
                         RemoteBuyerFullVO target)
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).


toRemoteBuyerFullVO

RemoteBuyerFullVO toRemoteBuyerFullVO(Buyer entity)
Converts this DAO's entity to an object of type RemoteBuyerFullVO.


toRemoteBuyerFullVOCollection

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


toRemoteBuyerFullVOArray

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


remoteBuyerFullVOToEntity

void remoteBuyerFullVOToEntity(RemoteBuyerFullVO source,
                               Buyer target,
                               boolean copyIfNull)
Copies the fields of RemoteBuyerFullVO to the specified entity.

Parameters:
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.

remoteBuyerFullVOToEntity

Buyer remoteBuyerFullVOToEntity(RemoteBuyerFullVO remoteBuyerFullVO)
Converts an instance of type RemoteBuyerFullVO to this DAO's entity.


remoteBuyerFullVOToEntityCollection

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


toRemoteBuyerNaturalId

void toRemoteBuyerNaturalId(Buyer source,
                            RemoteBuyerNaturalId target)
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).


toRemoteBuyerNaturalId

RemoteBuyerNaturalId toRemoteBuyerNaturalId(Buyer entity)
Converts this DAO's entity to an object of type RemoteBuyerNaturalId.


toRemoteBuyerNaturalIdCollection

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


toRemoteBuyerNaturalIdArray

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


remoteBuyerNaturalIdToEntity

void remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId source,
                                  Buyer target,
                                  boolean copyIfNull)
Copies the fields of RemoteBuyerNaturalId to the specified entity.

Parameters:
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.

remoteBuyerNaturalIdToEntity

Buyer remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId remoteBuyerNaturalId)
Converts an instance of type RemoteBuyerNaturalId to this DAO's entity.


remoteBuyerNaturalIdToEntityCollection

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


toClusterBuyer

void toClusterBuyer(Buyer source,
                    ClusterBuyer target)
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).


toClusterBuyer

ClusterBuyer toClusterBuyer(Buyer entity)
Converts this DAO's entity to an object of type ClusterBuyer.


toClusterBuyerCollection

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


toClusterBuyerArray

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


clusterBuyerToEntity

void clusterBuyerToEntity(ClusterBuyer source,
                          Buyer target,
                          boolean copyIfNull)
Copies the fields of ClusterBuyer to the specified entity.

Parameters:
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.

clusterBuyerToEntity

Buyer clusterBuyerToEntity(ClusterBuyer clusterBuyer)
Converts an instance of type ClusterBuyer to this DAO's entity.


clusterBuyerToEntityCollection

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


load

Buyer load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.buyer.Buyer from the persistent store.


load

java.lang.Object load(int transform,
                      java.lang.Integer id)

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

Parameters:
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.

loadAll

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

Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int transform)

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

Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.

loadAll

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

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

Parameters:
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.

loadAll

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

Does the same thing as loadAll(int) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Parameters:
transform - the flag indicating what transformation to use.
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.

create

Buyer create(Buyer buyer)
Creates an instance of fr.ifremer.allegro.referential.buyer.Buyer and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        Buyer buyer)

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


create

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

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

create

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

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


create

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.


create

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


create

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.


create

java.lang.Object create(int transform,
                        Status status)

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


update

void update(Buyer buyer)
Updates the buyer instance in the persistent store.


update

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


remove

void remove(Buyer buyer)
Removes the instance of fr.ifremer.allegro.referential.buyer.Buyer from the persistent store.


remove

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


remove

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


getAllBuyer

java.util.Collection getAllBuyer()

getAllBuyer

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

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


getAllBuyer

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

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


getAllBuyer

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

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


getAllBuyer

java.util.Collection getAllBuyer(int transform)

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


getAllBuyer

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

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


getAllBuyer

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

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


getAllBuyer

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

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


findBuyerById

Buyer findBuyerById(java.lang.Integer id)

findBuyerById

Buyer findBuyerById(java.lang.String queryString,
                    java.lang.Integer id)

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


findBuyerById

java.lang.Object findBuyerById(int transform,
                               java.lang.Integer id)

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


findBuyerById

java.lang.Object findBuyerById(int transform,
                               java.lang.String queryString,
                               java.lang.Integer id)

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


findBuyerByStatus

java.util.Collection findBuyerByStatus(Status status)

findBuyerByStatus

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

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


findBuyerByStatus

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

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


findBuyerByStatus

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

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


findBuyerByStatus

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

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


findBuyerByStatus

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

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


findBuyerByStatus

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

Does the same thing as 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 findBuyerByStatus(int, fr.ifremer.allegro.referential.Status status).


findBuyerByStatus

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

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


findBuyerByNaturalId

Buyer findBuyerByNaturalId(java.lang.Integer id)

findBuyerByNaturalId

Buyer findBuyerByNaturalId(java.lang.String queryString,
                           java.lang.Integer id)

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


findBuyerByNaturalId

java.lang.Object findBuyerByNaturalId(int transform,
                                      java.lang.Integer id)

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


findBuyerByNaturalId

java.lang.Object findBuyerByNaturalId(int transform,
                                      java.lang.String queryString,
                                      java.lang.Integer id)

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


getAllBuyerSinceDateSynchro

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

getAllBuyerSinceDateSynchro

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

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


getAllBuyerSinceDateSynchro

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

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


getAllBuyerSinceDateSynchro

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

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


getAllBuyerSinceDateSynchro

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

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


getAllBuyerSinceDateSynchro

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

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


getAllBuyerSinceDateSynchro

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

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


getAllBuyerSinceDateSynchro

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

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


createFromClusterBuyer

Buyer createFromClusterBuyer(ClusterBuyer clusterBuyer)

getAllClusterBuyerSinceDateSynchro

ClusterBuyer[] getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                  java.lang.Integer userId,
                                                  java.lang.Integer[] registrationLocationIds,
                                                  java.lang.Integer pageNumber,
                                                  java.lang.Integer pageSize)

search

PaginationResult search(int transform,
                        int pageNumber,
                        int pageSize,
                        Search search)
Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Parameters:
transform - the transformation flag.
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.

search

PaginationResult search(int pageNumber,
                        int pageSize,
                        Search search)
Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Parameters:
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.

search

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

Parameters:
transform - the transformation flag.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.

search

java.util.Set search(Search search)
Performs a search using the parameters specified in the given search object.

Parameters:
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.


Copyright © 2008-2010 IFREMER. All Rights Reserved.