|
||||||||||
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.ProgramPrivilegeDaoBase
public abstract class ProgramPrivilegeDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege
.
ProgramPrivilege
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.administration.programStrategy.ProgramPrivilegeDao |
---|
TRANSFORM_CLUSTERPROGRAMPRIVILEGE, TRANSFORM_NONE, TRANSFORM_REMOTEPROGRAMPRIVILEGEFULLVO, TRANSFORM_REMOTEPROGRAMPRIVILEGENATURALID |
Constructor Summary | |
---|---|
ProgramPrivilegeDaoBase()
|
Method Summary | |
---|---|
void |
clusterProgramPrivilegeToEntity(ClusterProgramPrivilege source,
ProgramPrivilege target,
boolean copyIfNull)
Copies the fields of ClusterProgramPrivilege to the specified entity. |
void |
clusterProgramPrivilegeToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterProgramPrivilege to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as ProgramPrivilegeDao.create(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an
additional flag called transform . |
ProgramPrivilege |
create(java.lang.Integer id,
java.lang.String label,
java.lang.String name)
Creates a new fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
ProgramPrivilege |
create(java.lang.Integer id,
java.lang.String label,
java.lang.String name,
java.sql.Timestamp updateDate,
java.util.Collection program2Departments,
java.util.Collection program2Persons)
Creates a new fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege
instance from all attributes and
properties and adds it to the persistent store. |
java.lang.Object |
create(int transform,
java.lang.Integer id,
java.lang.String label,
java.lang.String name)
Does the same thing as ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.Integer id,
java.lang.String label,
java.lang.String name,
java.sql.Timestamp updateDate,
java.util.Collection program2Departments,
java.util.Collection program2Persons)
Does the same thing as ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
ProgramPrivilege programPrivilege)
Does the same thing as ProgramPrivilegeDao.create(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an
additional flag called transform . |
ProgramPrivilege |
create(ProgramPrivilege programPrivilege)
Creates an instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege and adds it to the persistent store. |
ProgramPrivilege |
createFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege)
|
ProgramPrivilege |
findProgramPrivilegeById(java.lang.Integer id)
|
java.lang.Object |
findProgramPrivilegeById(int transform,
java.lang.Integer id)
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findProgramPrivilegeById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(int, java.lang.Integer) with an
additional argument called queryString . |
ProgramPrivilege |
findProgramPrivilegeById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer) with an
additional argument called queryString . |
ProgramPrivilege |
findProgramPrivilegeByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findProgramPrivilegeByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findProgramPrivilegeByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
ProgramPrivilege |
findProgramPrivilegeByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
ClusterProgramPrivilege[] |
getAllClusterProgramPrivilegeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllProgramPrivilege()
|
java.util.Collection |
getAllProgramPrivilege(int transform)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege() with an
additional flag called transform . |
java.util.Collection |
getAllProgramPrivilege(int pageNumber,
int pageSize)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilege(int transform,
int pageNumber,
int pageSize)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilege(int transform,
java.lang.String queryString)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(int) with an
additional argument called queryString . |
java.util.Collection |
getAllProgramPrivilege(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilege(java.lang.String queryString)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege() with an
additional argument called queryString . |
java.util.Collection |
getAllProgramPrivilege(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp updateDate)
|
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 abstract ProgramPrivilege |
handleCreateFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege)
Performs the core logic for createFromClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege) |
protected abstract ClusterProgramPrivilege[] |
handleGetAllClusterProgramPrivilegeSinceDateSynchro(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 getAllClusterProgramPrivilegeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
ProgramPrivilege |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as ProgramPrivilegeDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type ProgramPrivilege . |
java.util.Collection |
loadAll(int transform)
Does the same thing as ProgramPrivilegeDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as ProgramPrivilegeDao.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 ProgramPrivilegeDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteProgramPrivilegeFullVOToEntity(RemoteProgramPrivilegeFullVO source,
ProgramPrivilege target,
boolean copyIfNull)
Copies the fields of RemoteProgramPrivilegeFullVO to the specified entity. |
void |
remoteProgramPrivilegeFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteProgramPrivilegeFullVO to this
DAO's entity. |
void |
remoteProgramPrivilegeNaturalIdToEntity(RemoteProgramPrivilegeNaturalId source,
ProgramPrivilege target,
boolean copyIfNull)
Copies the fields of RemoteProgramPrivilegeNaturalId to the specified entity. |
void |
remoteProgramPrivilegeNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteProgramPrivilegeNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(java.lang.Integer id)
Removes the instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege having the given identifier from the persistent store. |
void |
remove(ProgramPrivilege programPrivilege)
Removes the instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege 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 ProgramPrivilegeDao.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 |
setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
Sets the reference to program2DepartmentDao . |
void |
setProgram2PersonDao(Program2PersonDao program2PersonDao)
Sets the reference to program2PersonDao . |
protected ClusterProgramPrivilege |
toClusterProgramPrivilege(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterProgramPrivilege |
toClusterProgramPrivilege(ProgramPrivilege entity)
Converts this DAO's entity to an object of type ClusterProgramPrivilege . |
void |
toClusterProgramPrivilege(ProgramPrivilege source,
ClusterProgramPrivilege target)
Copies the fields of the specified entity to the target value object. |
ClusterProgramPrivilege[] |
toClusterProgramPrivilegeArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterProgramPrivilege . |
void |
toClusterProgramPrivilegeCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterProgramPrivilege . |
protected ProgramPrivilege |
toEntity(java.lang.Object[] row)
|
protected RemoteProgramPrivilegeFullVO |
toRemoteProgramPrivilegeFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteProgramPrivilegeFullVO |
toRemoteProgramPrivilegeFullVO(ProgramPrivilege entity)
Converts this DAO's entity to an object of type RemoteProgramPrivilegeFullVO . |
void |
toRemoteProgramPrivilegeFullVO(ProgramPrivilege source,
RemoteProgramPrivilegeFullVO target)
Copies the fields of the specified entity to the target value object. |
RemoteProgramPrivilegeFullVO[] |
toRemoteProgramPrivilegeFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteProgramPrivilegeFullVO . |
void |
toRemoteProgramPrivilegeFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteProgramPrivilegeFullVO . |
protected RemoteProgramPrivilegeNaturalId |
toRemoteProgramPrivilegeNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteProgramPrivilegeNaturalId |
toRemoteProgramPrivilegeNaturalId(ProgramPrivilege entity)
Converts this DAO's entity to an object of type RemoteProgramPrivilegeNaturalId . |
void |
toRemoteProgramPrivilegeNaturalId(ProgramPrivilege source,
RemoteProgramPrivilegeNaturalId target)
Copies the fields of the specified entity to the target value object. |
RemoteProgramPrivilegeNaturalId[] |
toRemoteProgramPrivilegeNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteProgramPrivilegeNaturalId . |
void |
toRemoteProgramPrivilegeNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteProgramPrivilegeNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
method. |
protected java.lang.Object |
transformEntity(int transform,
ProgramPrivilege 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.ProgramPrivilegeDao , please note
that the ProgramPrivilegeDao.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(ProgramPrivilege programPrivilege)
Updates the programPrivilege 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.ProgramPrivilegeDao |
---|
clusterProgramPrivilegeToEntity, remoteProgramPrivilegeFullVOToEntity, remoteProgramPrivilegeNaturalIdToEntity |
Constructor Detail |
---|
public ProgramPrivilegeDaoBase()
Method Detail |
---|
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.Integer id)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.load(java.lang.Integer)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined in this class then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation does
not occur.
load
in interface ProgramPrivilegeDao
id
- identifier of the entity to load
ProgramPrivilegeDao.load(int, java.lang.Integer)
public ProgramPrivilege load(java.lang.Integer id)
ProgramPrivilegeDao
load
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.load(java.lang.Integer)
public java.util.Collection loadAll()
ProgramPrivilegeDao
ProgramPrivilege
.
loadAll
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.loadAll()
public java.util.Collection loadAll(int transform)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.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 ProgramPrivilegeDao
transform
- the flag indicating what transformation to use.
ProgramPrivilegeDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.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 ProgramPrivilegeDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
ProgramPrivilegeDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.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 ProgramPrivilegeDao
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.
ProgramPrivilegeDao.loadAll(int, int, int)
public ProgramPrivilege create(ProgramPrivilege programPrivilege)
ProgramPrivilegeDao
create
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.create(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public java.lang.Object create(int transform, ProgramPrivilege programPrivilege)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.create(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
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 ProgramPrivilegeDao
ProgramPrivilegeDao.create(int transform, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public java.util.Collection create(java.util.Collection entities)
ProgramPrivilegeDao
entities
collection
create
in interface ProgramPrivilegeDao
entities
- the collection of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege
instances to create.
ProgramPrivilegeDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.create(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
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 ProgramPrivilegeDao
ProgramPrivilegeDao.create(int, java.util.Collection)
public ProgramPrivilege create(java.lang.Integer id, java.lang.String label, java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection program2Persons)
ProgramPrivilegeDao
Creates a new fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege
instance from all attributes and
properties and adds it to the persistent store.
create
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection)
public java.lang.Object create(int transform, java.lang.Integer id, java.lang.String label, java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection program2Persons)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.sql.Timestamp,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 ProgramPrivilegeDao
ProgramPrivilegeDao.create(int, java.lang.Integer,java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection)
public ProgramPrivilege create(java.lang.Integer id, java.lang.String label, java.lang.String name)
ProgramPrivilegeDao
Creates a new fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String)
public java.lang.Object create(int transform, java.lang.Integer id, java.lang.String label, java.lang.String name)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,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 ProgramPrivilegeDao
ProgramPrivilegeDao.create(int, java.lang.Integer,java.lang.String,java.lang.String)
public void update(ProgramPrivilege programPrivilege)
ProgramPrivilegeDao
programPrivilege
instance in the persistent store.
update
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.update(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public void update(java.util.Collection entities)
ProgramPrivilegeDao
entities
collection in the persistent store.
update
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.update(java.util.Collection)
public void remove(ProgramPrivilege programPrivilege)
ProgramPrivilegeDao
remove
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.remove(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public void remove(java.lang.Integer id)
ProgramPrivilegeDao
identifier
from the persistent store.
remove
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
ProgramPrivilegeDao
entities collection.
- Specified by:
remove
in interface ProgramPrivilegeDao
- See Also:
ProgramPrivilegeDao.remove(java.util.Collection)
public java.util.Collection getAllProgramPrivilege()
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege()
public java.util.Collection getAllProgramPrivilege(int transform)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege()
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.
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege(int)
public java.util.Collection getAllProgramPrivilege(java.lang.String queryString)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.getAllProgramPrivilege()
.
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege(java.lang.String)
public java.util.Collection getAllProgramPrivilege(int pageNumber, int pageSize)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege()
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.
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege(int, int)
public java.util.Collection getAllProgramPrivilege(java.lang.String queryString, int pageNumber, int pageSize)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(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.
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege(String, int, int)
public java.util.Collection getAllProgramPrivilege(int transform, java.lang.String queryString)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.getAllProgramPrivilege(int)
.
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege(int, String)
public java.util.Collection getAllProgramPrivilege(int transform, int pageNumber, int pageSize)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(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.
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege(int, int, int)
public java.util.Collection getAllProgramPrivilege(int transform, java.lang.String queryString, int pageNumber, int pageSize)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(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.
getAllProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilege(int, java.lang.String, int, int)
public ProgramPrivilege findProgramPrivilegeById(java.lang.Integer id)
findProgramPrivilegeById
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer)
public java.lang.Object findProgramPrivilegeById(int transform, java.lang.Integer id)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
finder results will NOT be transformed during retrieval.
If this flag is any of the other constants defined here
then finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
findProgramPrivilegeById
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeById(int, java.lang.Integer)
public ProgramPrivilege findProgramPrivilegeById(java.lang.String queryString, java.lang.Integer id)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer)
.
findProgramPrivilegeById
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.String, java.lang.Integer)
public java.lang.Object findProgramPrivilegeById(int transform, java.lang.String queryString, java.lang.Integer id)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.findProgramPrivilegeById(int, java.lang.Integer id)
.
findProgramPrivilegeById
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeById(int, java.lang.String, java.lang.Integer)
public ProgramPrivilege findProgramPrivilegeByNaturalId(java.lang.Integer id)
findProgramPrivilegeByNaturalId
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer)
public java.lang.Object findProgramPrivilegeByNaturalId(int transform, java.lang.Integer id)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
finder results will NOT be transformed during retrieval.
If this flag is any of the other constants defined here
then finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
findProgramPrivilegeByNaturalId
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(int, java.lang.Integer)
public ProgramPrivilege findProgramPrivilegeByNaturalId(java.lang.String queryString, java.lang.Integer id)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer)
.
findProgramPrivilegeByNaturalId
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findProgramPrivilegeByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(int, java.lang.Integer id)
.
findProgramPrivilegeByNaturalId
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp updateDate)
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(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.
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp)
.
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(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.
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(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.
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(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.
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ProgramPrivilegeDao
Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(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.
getAllProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public ProgramPrivilege createFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege)
createFromClusterProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.createFromClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege)
protected abstract ProgramPrivilege handleCreateFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege) throws java.lang.Exception
createFromClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege)
java.lang.Exception
public ClusterProgramPrivilege[] getAllClusterProgramPrivilegeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterProgramPrivilegeSinceDateSynchro
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.getAllClusterProgramPrivilegeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterProgramPrivilege[] handleGetAllClusterProgramPrivilegeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterProgramPrivilegeSinceDateSynchro(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, ProgramPrivilege entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.administration.programStrategy.ProgramPrivilegeDao
, please note
that the ProgramPrivilegeDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
ProgramPrivilege
- ProgramPrivilegeDao.TRANSFORM_NONE
RemoteProgramPrivilegeFullVO
- TRANSFORM_REMOTEPROGRAMPRIVILEGEFULLVO
RemoteProgramPrivilegeNaturalId
- TRANSFORM_REMOTEPROGRAMPRIVILEGENATURALID
ClusterProgramPrivilege
- TRANSFORM_CLUSTERPROGRAMPRIVILEGE
ProgramPrivilegeDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in ProgramPrivilegeDao
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.ProgramPrivilege)
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.ProgramPrivilegeDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
protected ProgramPrivilege toEntity(java.lang.Object[] row)
public final void toRemoteProgramPrivilegeFullVOCollection(java.util.Collection entities)
ProgramPrivilegeDao
RemoteProgramPrivilegeFullVO
.
toRemoteProgramPrivilegeFullVOCollection
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVOCollection(java.util.Collection)
public final RemoteProgramPrivilegeFullVO[] toRemoteProgramPrivilegeFullVOArray(java.util.Collection entities)
ProgramPrivilegeDao
RemoteProgramPrivilegeFullVO
.
toRemoteProgramPrivilegeFullVOArray
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVOArray(java.util.Collection)
protected RemoteProgramPrivilegeFullVO toRemoteProgramPrivilegeFullVO(java.lang.Object[] row)
ProgramPrivilegeDaoImpl
class if you intend to use reporting queries.
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVO(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public final void remoteProgramPrivilegeFullVOToEntityCollection(java.util.Collection instances)
ProgramPrivilegeDao
RemoteProgramPrivilegeFullVO
to this
DAO's entity.
remoteProgramPrivilegeFullVOToEntityCollection
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.remoteProgramPrivilegeFullVOToEntityCollection(java.util.Collection)
public void toRemoteProgramPrivilegeFullVO(ProgramPrivilege source, RemoteProgramPrivilegeFullVO target)
ProgramPrivilegeDao
toRemoteProgramPrivilegeFullVO
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVO(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramPrivilegeFullVO)
public RemoteProgramPrivilegeFullVO toRemoteProgramPrivilegeFullVO(ProgramPrivilege entity)
ProgramPrivilegeDao
RemoteProgramPrivilegeFullVO
.
toRemoteProgramPrivilegeFullVO
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVO(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public void remoteProgramPrivilegeFullVOToEntity(RemoteProgramPrivilegeFullVO source, ProgramPrivilege target, boolean copyIfNull)
ProgramPrivilegeDao
RemoteProgramPrivilegeFullVO
to the specified entity.
remoteProgramPrivilegeFullVOToEntity
in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao#remoteProgramPrivilegeFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramPrivilegeFullVO, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public final void toRemoteProgramPrivilegeNaturalIdCollection(java.util.Collection entities)
ProgramPrivilegeDao
RemoteProgramPrivilegeNaturalId
.
toRemoteProgramPrivilegeNaturalIdCollection
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalIdCollection(java.util.Collection)
public final RemoteProgramPrivilegeNaturalId[] toRemoteProgramPrivilegeNaturalIdArray(java.util.Collection entities)
ProgramPrivilegeDao
RemoteProgramPrivilegeNaturalId
.
toRemoteProgramPrivilegeNaturalIdArray
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalIdArray(java.util.Collection)
protected RemoteProgramPrivilegeNaturalId toRemoteProgramPrivilegeNaturalId(java.lang.Object[] row)
ProgramPrivilegeDaoImpl
class if you intend to use reporting queries.
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalId(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public final void remoteProgramPrivilegeNaturalIdToEntityCollection(java.util.Collection instances)
ProgramPrivilegeDao
RemoteProgramPrivilegeNaturalId
to this
DAO's entity.
remoteProgramPrivilegeNaturalIdToEntityCollection
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.remoteProgramPrivilegeNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteProgramPrivilegeNaturalId(ProgramPrivilege source, RemoteProgramPrivilegeNaturalId target)
ProgramPrivilegeDao
toRemoteProgramPrivilegeNaturalId
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalId(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramPrivilegeNaturalId)
public RemoteProgramPrivilegeNaturalId toRemoteProgramPrivilegeNaturalId(ProgramPrivilege entity)
ProgramPrivilegeDao
RemoteProgramPrivilegeNaturalId
.
toRemoteProgramPrivilegeNaturalId
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalId(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public void remoteProgramPrivilegeNaturalIdToEntity(RemoteProgramPrivilegeNaturalId source, ProgramPrivilege target, boolean copyIfNull)
ProgramPrivilegeDao
RemoteProgramPrivilegeNaturalId
to the specified entity.
remoteProgramPrivilegeNaturalIdToEntity
in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao#remoteProgramPrivilegeNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramPrivilegeNaturalId, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public final void toClusterProgramPrivilegeCollection(java.util.Collection entities)
ProgramPrivilegeDao
ClusterProgramPrivilege
.
toClusterProgramPrivilegeCollection
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toClusterProgramPrivilegeCollection(java.util.Collection)
public final ClusterProgramPrivilege[] toClusterProgramPrivilegeArray(java.util.Collection entities)
ProgramPrivilegeDao
ClusterProgramPrivilege
.
toClusterProgramPrivilegeArray
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toClusterProgramPrivilegeArray(java.util.Collection)
protected ClusterProgramPrivilege toClusterProgramPrivilege(java.lang.Object[] row)
ProgramPrivilegeDaoImpl
class if you intend to use reporting queries.
ProgramPrivilegeDao.toClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public final void clusterProgramPrivilegeToEntityCollection(java.util.Collection instances)
ProgramPrivilegeDao
ClusterProgramPrivilege
to this
DAO's entity.
clusterProgramPrivilegeToEntityCollection
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.clusterProgramPrivilegeToEntityCollection(java.util.Collection)
public void toClusterProgramPrivilege(ProgramPrivilege source, ClusterProgramPrivilege target)
ProgramPrivilegeDao
toClusterProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege, fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege)
public ClusterProgramPrivilege toClusterProgramPrivilege(ProgramPrivilege entity)
ProgramPrivilegeDao
ClusterProgramPrivilege
.
toClusterProgramPrivilege
in interface ProgramPrivilegeDao
ProgramPrivilegeDao.toClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
public void clusterProgramPrivilegeToEntity(ClusterProgramPrivilege source, ProgramPrivilege target, boolean copyIfNull)
ProgramPrivilegeDao
ClusterProgramPrivilege
to the specified entity.
clusterProgramPrivilegeToEntity
in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao#clusterProgramPrivilegeToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)
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)
ProgramPrivilegeDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
ProgramPrivilegeDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
ProgramPrivilegeDao
ProgramPrivilegeDao.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 ProgramPrivilegeDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
ProgramPrivilegeDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
ProgramPrivilegeDao
search
object.
search
in interface ProgramPrivilegeDao
search
- the search object which provides the search parameters and pagination specification.
ProgramPrivilegeDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |