fr.ifremer.allegro.administration.programStrategy
Interface ProgramDao

All Known Implementing Classes:
ProgramDaoBase, ProgramDaoImpl

public interface ProgramDao

See Also:
Program

Field Summary
static int TRANSFORM_CLUSTERPROGRAM
          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_REMOTEPROGRAMFULLVO
          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_REMOTEPROGRAMNATURALID
          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
 Program clusterProgramToEntity(ClusterProgram clusterProgram)
          Converts an instance of type ClusterProgram to this DAO's entity.
 void clusterProgramToEntity(ClusterProgram source, Program target, boolean copyIfNull)
          Copies the fields of ClusterProgram to the specified entity.
 void clusterProgramToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterProgram to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.programStrategy.Program and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as create(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.lang.Object create(int transform, Program program)
           Does the same thing as create(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.util.Date creationDate, java.lang.String description, GearClassification gearClassification, java.util.Collection locationClassifications, java.lang.String name)
           Does the same thing as create(java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection strategies, java.util.Collection locationClassifications, java.util.Collection locations, GearClassification gearClassification, java.util.Collection program2Departments, java.util.Collection programUsers)
           Does the same thing as create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.util.Collection) with an additional flag called transform.
 Program create(Program program)
          Creates an instance of fr.ifremer.allegro.administration.programStrategy.Program and adds it to the persistent store.
 Program create(java.lang.String code, java.util.Date creationDate, java.lang.String description, GearClassification gearClassification, java.util.Collection locationClassifications, java.lang.String name)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Program instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Program create(java.lang.String code, java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection strategies, java.util.Collection locationClassifications, java.util.Collection locations, GearClassification gearClassification, java.util.Collection program2Departments, java.util.Collection programUsers)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Program instance from all attributes and properties and adds it to the persistent store.
 Program createFromClusterProgram(ClusterProgram clusterProgram)
           
 java.lang.Object findProgramByCode(int transform, java.lang.String code)
           Does the same thing as findProgramByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findProgramByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as findProgramByCode(int, java.lang.String) with an additional argument called queryString.
 Program findProgramByCode(java.lang.String code)
           
 Program findProgramByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as findProgramByCode(java.lang.String) with an additional argument called queryString.
 java.util.Collection findProgramByGearClassification(GearClassification gearClassification)
           
 java.util.Collection findProgramByGearClassification(int transform, GearClassification gearClassification)
           Does the same thing as findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional flag called transform.
 java.util.Collection findProgramByGearClassification(int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgramByGearClassification(int transform, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgramByGearClassification(int transform, java.lang.String queryString, GearClassification gearClassification)
           Does the same thing as findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString.
 java.util.Collection findProgramByGearClassification(int transform, java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as findProgramByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgramByGearClassification(java.lang.String queryString, GearClassification gearClassification)
           Does the same thing as findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString.
 java.util.Collection findProgramByGearClassification(java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as findProgramByGearClassification(String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.lang.Object findProgramByNaturalId(int transform, java.lang.String code)
           Does the same thing as findProgramByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findProgramByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as findProgramByNaturalId(int, java.lang.String) with an additional argument called queryString.
 Program findProgramByNaturalId(java.lang.String code)
           
 Program findProgramByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as findProgramByNaturalId(java.lang.String) with an additional argument called queryString.
 ClusterProgram[] getAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllProgram()
           
 java.util.Collection getAllProgram(int transform)
           Does the same thing as getAllProgram() with an additional flag called transform.
 java.util.Collection getAllProgram(int pageNumber, int pageSize)
           Does the same thing as getAllProgram() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram(int transform, int pageNumber, int pageSize)
           Does the same thing as getAllProgram(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram(int transform, java.lang.String queryString)
           Does the same thing as getAllProgram(int) with an additional argument called queryString.
 java.util.Collection getAllProgram(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllProgram(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram(java.lang.String queryString)
           Does the same thing as getAllProgram() with an additional argument called queryString.
 java.util.Collection getAllProgram(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllProgram(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllProgramSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllProgramSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllProgramSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllProgramSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllProgramSinceDateSynchro(java.sql.Timestamp updateDate)
           
 java.lang.Object load(int transform, java.lang.String code)
           Does the same thing as load(java.lang.String) with an additional flag called transform.
 Program load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type Program.
 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.
 Program remoteProgramFullVOToEntity(RemoteProgramFullVO remoteProgramFullVO)
          Converts an instance of type RemoteProgramFullVO to this DAO's entity.
 void remoteProgramFullVOToEntity(RemoteProgramFullVO source, Program target, boolean copyIfNull)
          Copies the fields of RemoteProgramFullVO to the specified entity.
 void remoteProgramFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgramFullVO to this DAO's entity.
 Program remoteProgramNaturalIdToEntity(RemoteProgramNaturalId remoteProgramNaturalId)
          Converts an instance of type RemoteProgramNaturalId to this DAO's entity.
 void remoteProgramNaturalIdToEntity(RemoteProgramNaturalId source, Program target, boolean copyIfNull)
          Copies the fields of RemoteProgramNaturalId to the specified entity.
 void remoteProgramNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgramNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Program program)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program 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.
 ClusterProgram toClusterProgram(Program entity)
          Converts this DAO's entity to an object of type ClusterProgram.
 void toClusterProgram(Program source, ClusterProgram target)
          Copies the fields of the specified entity to the target value object.
 ClusterProgram[] toClusterProgramArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterProgram.
 void toClusterProgramCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterProgram.
 RemoteProgramFullVO toRemoteProgramFullVO(Program entity)
          Converts this DAO's entity to an object of type RemoteProgramFullVO.
 void toRemoteProgramFullVO(Program source, RemoteProgramFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgramFullVO[] toRemoteProgramFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgramFullVO.
 void toRemoteProgramFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgramFullVO.
 RemoteProgramNaturalId toRemoteProgramNaturalId(Program entity)
          Converts this DAO's entity to an object of type RemoteProgramNaturalId.
 void toRemoteProgramNaturalId(Program source, RemoteProgramNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgramNaturalId[] toRemoteProgramNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgramNaturalId.
 void toRemoteProgramNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgramNaturalId.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(Program program)
          Updates the program instance 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_REMOTEPROGRAMFULLVO

static final int TRANSFORM_REMOTEPROGRAMFULLVO
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 RemoteProgramFullVO.

See Also:
Constant Field Values

TRANSFORM_REMOTEPROGRAMNATURALID

static final int TRANSFORM_REMOTEPROGRAMNATURALID
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 RemoteProgramNaturalId.

See Also:
Constant Field Values

TRANSFORM_CLUSTERPROGRAM

static final int TRANSFORM_CLUSTERPROGRAM
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 ClusterProgram.

See Also:
Constant Field Values
Method Detail

toRemoteProgramFullVO

void toRemoteProgramFullVO(Program source,
                           RemoteProgramFullVO target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteProgramFullVO(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteProgramFullVO

RemoteProgramFullVO toRemoteProgramFullVO(Program entity)
Converts this DAO's entity to an object of type RemoteProgramFullVO.


toRemoteProgramFullVOCollection

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


toRemoteProgramFullVOArray

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


remoteProgramFullVOToEntity

void remoteProgramFullVOToEntity(RemoteProgramFullVO source,
                                 Program target,
                                 boolean copyIfNull)
Copies the fields of RemoteProgramFullVO 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.

remoteProgramFullVOToEntity

Program remoteProgramFullVOToEntity(RemoteProgramFullVO remoteProgramFullVO)
Converts an instance of type RemoteProgramFullVO to this DAO's entity.


remoteProgramFullVOToEntityCollection

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


toRemoteProgramNaturalId

void toRemoteProgramNaturalId(Program source,
                              RemoteProgramNaturalId target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteProgramNaturalId(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteProgramNaturalId

RemoteProgramNaturalId toRemoteProgramNaturalId(Program entity)
Converts this DAO's entity to an object of type RemoteProgramNaturalId.


toRemoteProgramNaturalIdCollection

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


toRemoteProgramNaturalIdArray

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


remoteProgramNaturalIdToEntity

void remoteProgramNaturalIdToEntity(RemoteProgramNaturalId source,
                                    Program target,
                                    boolean copyIfNull)
Copies the fields of RemoteProgramNaturalId 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.

remoteProgramNaturalIdToEntity

Program remoteProgramNaturalIdToEntity(RemoteProgramNaturalId remoteProgramNaturalId)
Converts an instance of type RemoteProgramNaturalId to this DAO's entity.


remoteProgramNaturalIdToEntityCollection

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


toClusterProgram

void toClusterProgram(Program source,
                      ClusterProgram target)
Copies the fields of the specified entity to the target value object. This method is similar to toClusterProgram(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toClusterProgram

ClusterProgram toClusterProgram(Program entity)
Converts this DAO's entity to an object of type ClusterProgram.


toClusterProgramCollection

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


toClusterProgramArray

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


clusterProgramToEntity

void clusterProgramToEntity(ClusterProgram source,
                            Program target,
                            boolean copyIfNull)
Copies the fields of ClusterProgram 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.

clusterProgramToEntity

Program clusterProgramToEntity(ClusterProgram clusterProgram)
Converts an instance of type ClusterProgram to this DAO's entity.


clusterProgramToEntityCollection

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


load

Program load(java.lang.String code)
Loads an instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.


load

java.lang.Object load(int transform,
                      java.lang.String code)

Does the same thing as load(java.lang.String) 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:
code - 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 Program.

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

Program create(Program program)
Creates an instance of fr.ifremer.allegro.administration.programStrategy.Program and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        Program program)

Does the same thing as create(fr.ifremer.allegro.administration.programStrategy.Program) 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.administration.programStrategy.Program and adds from the passed in entities collection

Parameters:
entities - the collection of fr.ifremer.allegro.administration.programStrategy.Program 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.administration.programStrategy.Program) 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

Program create(java.lang.String code,
               java.lang.String name,
               java.lang.String description,
               java.util.Date creationDate,
               java.sql.Timestamp updateDate,
               java.util.Collection strategies,
               java.util.Collection locationClassifications,
               java.util.Collection locations,
               GearClassification gearClassification,
               java.util.Collection program2Departments,
               java.util.Collection programUsers)

Creates a new fr.ifremer.allegro.administration.programStrategy.Program instance from all attributes and properties and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        java.lang.String code,
                        java.lang.String name,
                        java.lang.String description,
                        java.util.Date creationDate,
                        java.sql.Timestamp updateDate,
                        java.util.Collection strategies,
                        java.util.Collection locationClassifications,
                        java.util.Collection locations,
                        GearClassification gearClassification,
                        java.util.Collection program2Departments,
                        java.util.Collection programUsers)

Does the same thing as create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.util.Collection) 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

Program create(java.lang.String code,
               java.util.Date creationDate,
               java.lang.String description,
               GearClassification gearClassification,
               java.util.Collection locationClassifications,
               java.lang.String name)

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


create

java.lang.Object create(int transform,
                        java.lang.String code,
                        java.util.Date creationDate,
                        java.lang.String description,
                        GearClassification gearClassification,
                        java.util.Collection locationClassifications,
                        java.lang.String name)

Does the same thing as create(java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String) 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(Program program)
Updates the program 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(Program program)
Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.


remove

void remove(java.lang.String code)
Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program having the given identifier from the persistent store.


remove

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


getAllProgram

java.util.Collection getAllProgram()

getAllProgram

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

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


getAllProgram

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

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


getAllProgram

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

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


getAllProgram

java.util.Collection getAllProgram(int transform)

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


getAllProgram

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

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


getAllProgram

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

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


getAllProgram

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

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


findProgramByCode

Program findProgramByCode(java.lang.String code)

findProgramByCode

Program findProgramByCode(java.lang.String queryString,
                          java.lang.String code)

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


findProgramByCode

java.lang.Object findProgramByCode(int transform,
                                   java.lang.String code)

Does the same thing as findProgramByCode(java.lang.String) 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.


findProgramByCode

java.lang.Object findProgramByCode(int transform,
                                   java.lang.String queryString,
                                   java.lang.String code)

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


findProgramByGearClassification

java.util.Collection findProgramByGearClassification(GearClassification gearClassification)

findProgramByGearClassification

java.util.Collection findProgramByGearClassification(java.lang.String queryString,
                                                     GearClassification gearClassification)

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


findProgramByGearClassification

java.util.Collection findProgramByGearClassification(int pageNumber,
                                                     int pageSize,
                                                     GearClassification gearClassification)

Does the same thing as findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) 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.


findProgramByGearClassification

java.util.Collection findProgramByGearClassification(java.lang.String queryString,
                                                     int pageNumber,
                                                     int pageSize,
                                                     GearClassification gearClassification)

Does the same thing as findProgramByGearClassification(String, fr.ifremer.allegro.referential.gear.GearClassification) 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.


findProgramByGearClassification

java.util.Collection findProgramByGearClassification(int transform,
                                                     GearClassification gearClassification)

Does the same thing as findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) 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.


findProgramByGearClassification

java.util.Collection findProgramByGearClassification(int transform,
                                                     int pageNumber,
                                                     int pageSize,
                                                     GearClassification gearClassification)

Does the same thing as findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) 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.


findProgramByGearClassification

java.util.Collection findProgramByGearClassification(int transform,
                                                     java.lang.String queryString,
                                                     GearClassification gearClassification)

Does the same thing as findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification gearClassification).


findProgramByGearClassification

java.util.Collection findProgramByGearClassification(int transform,
                                                     java.lang.String queryString,
                                                     int pageNumber,
                                                     int pageSize,
                                                     GearClassification gearClassification)

Does the same thing as findProgramByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification) 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.


findProgramByNaturalId

Program findProgramByNaturalId(java.lang.String code)

findProgramByNaturalId

Program findProgramByNaturalId(java.lang.String queryString,
                               java.lang.String code)

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


findProgramByNaturalId

java.lang.Object findProgramByNaturalId(int transform,
                                        java.lang.String code)

Does the same thing as findProgramByNaturalId(java.lang.String) 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.


findProgramByNaturalId

java.lang.Object findProgramByNaturalId(int transform,
                                        java.lang.String queryString,
                                        java.lang.String code)

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


getAllProgramSinceDateSynchro

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

getAllProgramSinceDateSynchro

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

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


getAllProgramSinceDateSynchro

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

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


getAllProgramSinceDateSynchro

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

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


getAllProgramSinceDateSynchro

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

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


getAllProgramSinceDateSynchro

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

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


getAllProgramSinceDateSynchro

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

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


getAllProgramSinceDateSynchro

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

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


createFromClusterProgram

Program createFromClusterProgram(ClusterProgram clusterProgram)

getAllClusterProgramSinceDateSynchro

ClusterProgram[] getAllClusterProgramSinceDateSynchro(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.