|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate3.support.HibernateDaoSupport
fr.ifremer.allegro.administration.programStrategy.ProgramDaoBase
public abstract class ProgramDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.administration.programStrategy.Program
.
Program
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.administration.programStrategy.ProgramDao |
---|
TRANSFORM_CLUSTERPROGRAM, TRANSFORM_NONE, TRANSFORM_REMOTEPROGRAMFULLVO, TRANSFORM_REMOTEPROGRAMNATURALID |
Constructor Summary | |
---|---|
ProgramDaoBase()
|
Method Summary | |
---|---|
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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.getAllProgram() with an
additional flag called transform . |
java.util.Collection |
getAllProgram(int pageNumber,
int pageSize)
Does the same thing as ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.getAllProgram() with an
additional argument called queryString . |
java.util.Collection |
getAllProgram(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.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 ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllProgramSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected GearClassificationDao |
getGearClassificationDao()
Gets the reference to gearClassificationDao . |
protected LocationClassificationDao |
getLocationClassificationDao()
Gets the reference to locationClassificationDao . |
protected LocationDao |
getLocationDao()
Gets the reference to locationDao . |
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected Program2DepartmentDao |
getProgram2DepartmentDao()
Gets the reference to program2DepartmentDao . |
protected Program2PersonDao |
getProgram2PersonDao()
Gets the reference to program2PersonDao . |
protected StrategyDao |
getStrategyDao()
Gets the reference to strategyDao . |
protected abstract Program |
handleCreateFromClusterProgram(ClusterProgram clusterProgram)
Performs the core logic for createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram) |
protected abstract ClusterProgram[] |
handleGetAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
Performs the core logic for getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
java.lang.Object |
load(int transform,
java.lang.String code)
Does the same thing as ProgramDao.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 ProgramDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as ProgramDao.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 ProgramDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
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. |
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 |
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 ProgramDao.search(fr.ifremer.allegro.Search) but with an
additional flag called transform . |
java.util.Set |
search(Search search)
Performs a search using the parameters specified in the given search object. |
void |
setGearClassificationDao(GearClassificationDao gearClassificationDao)
Sets the reference to gearClassificationDao . |
void |
setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
Sets the reference to locationClassificationDao . |
void |
setLocationDao(LocationDao locationDao)
Sets the reference to locationDao . |
void |
setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
Sets the reference to program2DepartmentDao . |
void |
setProgram2PersonDao(Program2PersonDao program2PersonDao)
Sets the reference to program2PersonDao . |
void |
setStrategyDao(StrategyDao strategyDao)
Sets the reference to strategyDao . |
protected ClusterProgram |
toClusterProgram(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value 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 . |
protected Program |
toEntity(java.lang.Object[] row)
|
protected RemoteProgramFullVO |
toRemoteProgramFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
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 . |
protected RemoteProgramNaturalId |
toRemoteProgramNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
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 . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Program)
method. |
protected java.lang.Object |
transformEntity(int transform,
Program entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform
flag is set to one of the constants defined in fr.ifremer.allegro.administration.programStrategy.ProgramDao , please note
that the ProgramDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store. |
void |
update(Program program)
Updates the program instance in the persistent store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.ifremer.allegro.administration.programStrategy.ProgramDao |
---|
clusterProgramToEntity, remoteProgramFullVOToEntity, remoteProgramNaturalIdToEntity |
Constructor Detail |
---|
public ProgramDaoBase()
Method Detail |
---|
public void setStrategyDao(StrategyDao strategyDao)
strategyDao
.
protected StrategyDao getStrategyDao()
strategyDao
.
public void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
locationClassificationDao
.
protected LocationClassificationDao getLocationClassificationDao()
locationClassificationDao
.
public void setLocationDao(LocationDao locationDao)
locationDao
.
protected LocationDao getLocationDao()
locationDao
.
public void setGearClassificationDao(GearClassificationDao gearClassificationDao)
gearClassificationDao
.
protected GearClassificationDao getGearClassificationDao()
gearClassificationDao
.
public void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
program2DepartmentDao
.
protected Program2DepartmentDao getProgram2DepartmentDao()
program2DepartmentDao
.
public void setProgram2PersonDao(Program2PersonDao program2PersonDao)
program2PersonDao
.
protected Program2PersonDao getProgram2PersonDao()
program2PersonDao
.
public java.lang.Object load(int transform, java.lang.String code)
ProgramDao
Does the same thing as ProgramDao.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.
load
in interface ProgramDao
code
- identifier of the entity to load
ProgramDao.load(int, java.lang.String)
public Program load(java.lang.String code)
ProgramDao
load
in interface ProgramDao
ProgramDao.load(java.lang.String)
public java.util.Collection loadAll()
ProgramDao
Program
.
loadAll
in interface ProgramDao
ProgramDao.loadAll()
public java.util.Collection loadAll(int transform)
ProgramDao
Does the same thing as ProgramDao.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.
loadAll
in interface ProgramDao
transform
- the flag indicating what transformation to use.
ProgramDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
ProgramDao
Does the same thing as ProgramDao.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.
loadAll
in interface ProgramDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
ProgramDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
ProgramDao
Does the same thing as ProgramDao.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.
loadAll
in interface ProgramDao
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.
ProgramDao.loadAll(int, int, int)
public Program create(Program program)
ProgramDao
create
in interface ProgramDao
ProgramDao.create(fr.ifremer.allegro.administration.programStrategy.Program)
public java.lang.Object create(int transform, Program program)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.create(int transform, fr.ifremer.allegro.administration.programStrategy.Program)
public java.util.Collection create(java.util.Collection entities)
ProgramDao
entities
collection
create
in interface ProgramDao
entities
- the collection of fr.ifremer.allegro.administration.programStrategy.Program
instances to create.
ProgramDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.create(int, java.util.Collection)
public 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)
ProgramDao
Creates a new fr.ifremer.allegro.administration.programStrategy.Program
instance from all attributes and
properties and adds it to the persistent store.
create
in interface ProgramDao
ProgramDao.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)
public 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)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.create(int, 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)
public Program create(java.lang.String code, java.util.Date creationDate, java.lang.String description, GearClassification gearClassification, java.util.Collection locationClassifications, java.lang.String name)
ProgramDao
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
in interface ProgramDao
ProgramDao.create(java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String)
public 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)
ProgramDao
Does the same thing as ProgramDao.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.
create
in interface ProgramDao
ProgramDao.create(int, java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String)
public void update(Program program)
ProgramDao
program
instance in the persistent store.
update
in interface ProgramDao
ProgramDao.update(fr.ifremer.allegro.administration.programStrategy.Program)
public void update(java.util.Collection entities)
ProgramDao
entities
collection in the persistent store.
update
in interface ProgramDao
ProgramDao.update(java.util.Collection)
public void remove(Program program)
ProgramDao
remove
in interface ProgramDao
ProgramDao.remove(fr.ifremer.allegro.administration.programStrategy.Program)
public void remove(java.lang.String code)
ProgramDao
identifier
from the persistent store.
remove
in interface ProgramDao
ProgramDao.remove(java.lang.String)
public void remove(java.util.Collection entities)
ProgramDao
entities collection.
- Specified by:
remove
in interface ProgramDao
- See Also:
ProgramDao.remove(java.util.Collection)
public java.util.Collection getAllProgram()
getAllProgram
in interface ProgramDao
ProgramDao.getAllProgram()
public java.util.Collection getAllProgram(int transform)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgram(int)
public java.util.Collection getAllProgram(java.lang.String queryString)
ProgramDao
Does the same thing as ProgramDao.getAllProgram()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.getAllProgram()
.
getAllProgram
in interface ProgramDao
ProgramDao.getAllProgram(java.lang.String)
public java.util.Collection getAllProgram(int pageNumber, int pageSize)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgram(int, int)
public java.util.Collection getAllProgram(java.lang.String queryString, int pageNumber, int pageSize)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgram(String, int, int)
public java.util.Collection getAllProgram(int transform, java.lang.String queryString)
ProgramDao
Does the same thing as ProgramDao.getAllProgram(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.getAllProgram(int)
.
getAllProgram
in interface ProgramDao
ProgramDao.getAllProgram(int, String)
public java.util.Collection getAllProgram(int transform, int pageNumber, int pageSize)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgram(int, int, int)
public java.util.Collection getAllProgram(int transform, java.lang.String queryString, int pageNumber, int pageSize)
ProgramDao
Does the same thing as ProgramDao.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.
getAllProgram
in interface ProgramDao
ProgramDao.getAllProgram(int, java.lang.String, int, int)
public Program findProgramByCode(java.lang.String code)
findProgramByCode
in interface ProgramDao
ProgramDao.findProgramByCode(java.lang.String)
public java.lang.Object findProgramByCode(int transform, java.lang.String code)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.findProgramByCode(int, java.lang.String)
public Program findProgramByCode(java.lang.String queryString, java.lang.String code)
ProgramDao
Does the same thing as ProgramDao.findProgramByCode(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.findProgramByCode(java.lang.String)
.
findProgramByCode
in interface ProgramDao
ProgramDao.findProgramByCode(java.lang.String, java.lang.String)
public java.lang.Object findProgramByCode(int transform, java.lang.String queryString, java.lang.String code)
ProgramDao
Does the same thing as ProgramDao.findProgramByCode(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.findProgramByCode(int, java.lang.String code)
.
findProgramByCode
in interface ProgramDao
ProgramDao.findProgramByCode(int, java.lang.String, java.lang.String)
public java.util.Collection findProgramByGearClassification(GearClassification gearClassification)
findProgramByGearClassification
in interface ProgramDao
ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification)
public java.util.Collection findProgramByGearClassification(int transform, GearClassification gearClassification)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification)
public java.util.Collection findProgramByGearClassification(java.lang.String queryString, GearClassification gearClassification)
ProgramDao
Does the same thing as ProgramDao.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 ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification)
.
findProgramByGearClassification
in interface ProgramDao
ProgramDao.findProgramByGearClassification(java.lang.String, fr.ifremer.allegro.referential.gear.GearClassification)
public java.util.Collection findProgramByGearClassification(int pageNumber, int pageSize, GearClassification gearClassification)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.findProgramByGearClassification(int, int, fr.ifremer.allegro.referential.gear.GearClassification)
public java.util.Collection findProgramByGearClassification(java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.findProgramByGearClassification(String, int, int, fr.ifremer.allegro.referential.gear.GearClassification)
public java.util.Collection findProgramByGearClassification(int transform, java.lang.String queryString, GearClassification gearClassification)
ProgramDao
Does the same thing as ProgramDao.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 ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification gearClassification)
.
findProgramByGearClassification
in interface ProgramDao
ProgramDao.findProgramByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification)
public java.util.Collection findProgramByGearClassification(int transform, int pageNumber, int pageSize, GearClassification gearClassification)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.findProgramByGearClassification(int, int, int, fr.ifremer.allegro.referential.gear.GearClassification)
public java.util.Collection findProgramByGearClassification(int transform, java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
ProgramDao
Does the same thing as ProgramDao.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.
findProgramByGearClassification
in interface ProgramDao
ProgramDao.findProgramByGearClassification(int, java.lang.String, int, int, fr.ifremer.allegro.referential.gear.GearClassification)
public Program findProgramByNaturalId(java.lang.String code)
findProgramByNaturalId
in interface ProgramDao
ProgramDao.findProgramByNaturalId(java.lang.String)
public java.lang.Object findProgramByNaturalId(int transform, java.lang.String code)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.findProgramByNaturalId(int, java.lang.String)
public Program findProgramByNaturalId(java.lang.String queryString, java.lang.String code)
ProgramDao
Does the same thing as ProgramDao.findProgramByNaturalId(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.findProgramByNaturalId(java.lang.String)
.
findProgramByNaturalId
in interface ProgramDao
ProgramDao.findProgramByNaturalId(java.lang.String, java.lang.String)
public java.lang.Object findProgramByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
ProgramDao
Does the same thing as ProgramDao.findProgramByNaturalId(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.findProgramByNaturalId(int, java.lang.String code)
.
findProgramByNaturalId
in interface ProgramDao
ProgramDao.findProgramByNaturalId(int, java.lang.String, java.lang.String)
public java.util.Collection getAllProgramSinceDateSynchro(java.sql.Timestamp updateDate)
getAllProgramSinceDateSynchro
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllProgramSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
ProgramDao
Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp)
.
getAllProgramSinceDateSynchro
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllProgramSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllProgramSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
ProgramDao
Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllProgramSinceDateSynchro
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllProgramSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramDao
Does the same thing as ProgramDao.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
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllProgramSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramDao
Does the same thing as ProgramDao.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.
getAllProgramSinceDateSynchro
in interface ProgramDao
ProgramDao.getAllProgramSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public Program createFromClusterProgram(ClusterProgram clusterProgram)
createFromClusterProgram
in interface ProgramDao
ProgramDao.createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)
protected abstract Program handleCreateFromClusterProgram(ClusterProgram clusterProgram) throws java.lang.Exception
createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)
java.lang.Exception
public ClusterProgram[] getAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterProgramSinceDateSynchro
in interface ProgramDao
ProgramDao.getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterProgram[] handleGetAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
java.lang.Exception
protected java.lang.Object transformEntity(int transform, Program entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.administration.programStrategy.ProgramDao
, please note
that the ProgramDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Program
- ProgramDao.TRANSFORM_NONE
RemoteProgramFullVO
- TRANSFORM_REMOTEPROGRAMFULLVO
RemoteProgramNaturalId
- TRANSFORM_REMOTEPROGRAMNATURALID
ClusterProgram
- TRANSFORM_CLUSTERPROGRAM
ProgramDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in ProgramDao
entity
- an entity that was found
transformEntities(int,java.util.Collection)
protected void transformEntities(int transform, java.util.Collection entities)
transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Program)
method. This method does not instantiate a new collection.
This method is to be used internally only.
transform
- one of the constants declared in fr.ifremer.allegro.administration.programStrategy.ProgramDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.administration.programStrategy.Program)
protected Program toEntity(java.lang.Object[] row)
public final void toRemoteProgramFullVOCollection(java.util.Collection entities)
ProgramDao
RemoteProgramFullVO
.
toRemoteProgramFullVOCollection
in interface ProgramDao
ProgramDao.toRemoteProgramFullVOCollection(java.util.Collection)
public final RemoteProgramFullVO[] toRemoteProgramFullVOArray(java.util.Collection entities)
ProgramDao
RemoteProgramFullVO
.
toRemoteProgramFullVOArray
in interface ProgramDao
ProgramDao.toRemoteProgramFullVOArray(java.util.Collection)
protected RemoteProgramFullVO toRemoteProgramFullVO(java.lang.Object[] row)
ProgramDaoImpl
class if you intend to use reporting queries.
ProgramDao.toRemoteProgramFullVO(fr.ifremer.allegro.administration.programStrategy.Program)
public final void remoteProgramFullVOToEntityCollection(java.util.Collection instances)
ProgramDao
RemoteProgramFullVO
to this
DAO's entity.
remoteProgramFullVOToEntityCollection
in interface ProgramDao
ProgramDao.remoteProgramFullVOToEntityCollection(java.util.Collection)
public void toRemoteProgramFullVO(Program source, RemoteProgramFullVO target)
ProgramDao
toRemoteProgramFullVO
in interface ProgramDao
ProgramDao.toRemoteProgramFullVO(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)
public RemoteProgramFullVO toRemoteProgramFullVO(Program entity)
ProgramDao
RemoteProgramFullVO
.
toRemoteProgramFullVO
in interface ProgramDao
ProgramDao.toRemoteProgramFullVO(fr.ifremer.allegro.administration.programStrategy.Program)
public void remoteProgramFullVOToEntity(RemoteProgramFullVO source, Program target, boolean copyIfNull)
ProgramDao
RemoteProgramFullVO
to the specified entity.
remoteProgramFullVOToEntity
in interface ProgramDao
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.fr.ifremer.allegro.administration.programStrategy.ProgramDao#remoteProgramFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.Program)
public final void toRemoteProgramNaturalIdCollection(java.util.Collection entities)
ProgramDao
RemoteProgramNaturalId
.
toRemoteProgramNaturalIdCollection
in interface ProgramDao
ProgramDao.toRemoteProgramNaturalIdCollection(java.util.Collection)
public final RemoteProgramNaturalId[] toRemoteProgramNaturalIdArray(java.util.Collection entities)
ProgramDao
RemoteProgramNaturalId
.
toRemoteProgramNaturalIdArray
in interface ProgramDao
ProgramDao.toRemoteProgramNaturalIdArray(java.util.Collection)
protected RemoteProgramNaturalId toRemoteProgramNaturalId(java.lang.Object[] row)
ProgramDaoImpl
class if you intend to use reporting queries.
ProgramDao.toRemoteProgramNaturalId(fr.ifremer.allegro.administration.programStrategy.Program)
public final void remoteProgramNaturalIdToEntityCollection(java.util.Collection instances)
ProgramDao
RemoteProgramNaturalId
to this
DAO's entity.
remoteProgramNaturalIdToEntityCollection
in interface ProgramDao
ProgramDao.remoteProgramNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteProgramNaturalId(Program source, RemoteProgramNaturalId target)
ProgramDao
toRemoteProgramNaturalId
in interface ProgramDao
ProgramDao.toRemoteProgramNaturalId(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramNaturalId)
public RemoteProgramNaturalId toRemoteProgramNaturalId(Program entity)
ProgramDao
RemoteProgramNaturalId
.
toRemoteProgramNaturalId
in interface ProgramDao
ProgramDao.toRemoteProgramNaturalId(fr.ifremer.allegro.administration.programStrategy.Program)
public void remoteProgramNaturalIdToEntity(RemoteProgramNaturalId source, Program target, boolean copyIfNull)
ProgramDao
RemoteProgramNaturalId
to the specified entity.
remoteProgramNaturalIdToEntity
in interface ProgramDao
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.fr.ifremer.allegro.administration.programStrategy.ProgramDao#remoteProgramNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramNaturalId, fr.ifremer.allegro.administration.programStrategy.Program)
public final void toClusterProgramCollection(java.util.Collection entities)
ProgramDao
ClusterProgram
.
toClusterProgramCollection
in interface ProgramDao
ProgramDao.toClusterProgramCollection(java.util.Collection)
public final ClusterProgram[] toClusterProgramArray(java.util.Collection entities)
ProgramDao
ClusterProgram
.
toClusterProgramArray
in interface ProgramDao
ProgramDao.toClusterProgramArray(java.util.Collection)
protected ClusterProgram toClusterProgram(java.lang.Object[] row)
ProgramDaoImpl
class if you intend to use reporting queries.
ProgramDao.toClusterProgram(fr.ifremer.allegro.administration.programStrategy.Program)
public final void clusterProgramToEntityCollection(java.util.Collection instances)
ProgramDao
ClusterProgram
to this
DAO's entity.
clusterProgramToEntityCollection
in interface ProgramDao
ProgramDao.clusterProgramToEntityCollection(java.util.Collection)
public void toClusterProgram(Program source, ClusterProgram target)
ProgramDao
toClusterProgram
in interface ProgramDao
ProgramDao.toClusterProgram(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)
public ClusterProgram toClusterProgram(Program entity)
ProgramDao
ClusterProgram
.
toClusterProgram
in interface ProgramDao
ProgramDao.toClusterProgram(fr.ifremer.allegro.administration.programStrategy.Program)
public void clusterProgramToEntity(ClusterProgram source, Program target, boolean copyIfNull)
ProgramDao
ClusterProgram
to the specified entity.
clusterProgramToEntity
in interface ProgramDao
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.fr.ifremer.allegro.administration.programStrategy.ProgramDao#clusterProgramToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram, fr.ifremer.allegro.administration.programStrategy.Program)
protected java.security.Principal getPrincipal()
principal
if one has been set,
otherwise returns null
.
public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
ProgramDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ProgramDao
transform
- the transformation flag.pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.ProgramDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
ProgramDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ProgramDao
pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.ProgramDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
ProgramDao
ProgramDao.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.
search
in interface ProgramDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
ProgramDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
ProgramDao
search
object.
search
in interface ProgramDao
search
- the search object which provides the search parameters and pagination specification.
ProgramDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |