|
||||||||||
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.user.DepartmentDaoBase
public abstract class DepartmentDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.administration.user.Department
.
Department
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.administration.user.DepartmentDao |
---|
TRANSFORM_CLUSTERDEPARTMENT, TRANSFORM_NONE, TRANSFORM_REMOTEDEPARTMENTFULLVO, TRANSFORM_REMOTEDEPARTMENTNATURALID |
Constructor Summary | |
---|---|
DepartmentDaoBase()
|
Method Summary | |
---|---|
void |
clusterDepartmentToEntity(ClusterDepartment source,
Department target,
boolean copyIfNull)
Copies the fields of ClusterDepartment to the specified entity. |
void |
clusterDepartmentToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterDepartment to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.administration.user.Department and adds from the passed in entities collection |
Department |
create(Department department)
Creates an instance of fr.ifremer.allegro.administration.user.Department and adds it to the persistent store. |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as DepartmentDao.create(fr.ifremer.allegro.administration.user.Department) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Department department)
Does the same thing as DepartmentDao.create(fr.ifremer.allegro.administration.user.Department) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String code,
java.util.Date creationDate,
java.lang.Boolean isLdap,
java.lang.String name,
Status status)
Does the same thing as DepartmentDao.create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String code,
java.lang.String name,
java.lang.String email,
java.lang.String address,
java.lang.String phone,
java.lang.Boolean isLdap,
java.util.Date creationDate,
java.sql.Timestamp updateDate,
java.util.Collection program2Departments,
java.util.Collection departments,
Department parentDepartment,
Status status,
java.util.Collection outputTransferts,
java.util.Collection inputTransferts)
Does the same thing as DepartmentDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection) with an
additional flag called transform . |
Department |
create(java.lang.String code,
java.util.Date creationDate,
java.lang.Boolean isLdap,
java.lang.String name,
Status status)
Creates a new fr.ifremer.allegro.administration.user.Department
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Department |
create(java.lang.String code,
java.lang.String name,
java.lang.String email,
java.lang.String address,
java.lang.String phone,
java.lang.Boolean isLdap,
java.util.Date creationDate,
java.sql.Timestamp updateDate,
java.util.Collection program2Departments,
java.util.Collection departments,
Department parentDepartment,
Status status,
java.util.Collection outputTransferts,
java.util.Collection inputTransferts)
Creates a new fr.ifremer.allegro.administration.user.Department
instance from all attributes and
properties and adds it to the persistent store. |
Department |
createFromClusterDepartment(ClusterDepartment clusterDepartment)
|
Department |
findDepartmentById(java.lang.Integer id)
|
java.lang.Object |
findDepartmentById(int transform,
java.lang.Integer id)
Does the same thing as DepartmentDao.findDepartmentById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findDepartmentById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as DepartmentDao.findDepartmentById(int, java.lang.Integer) with an
additional argument called queryString . |
Department |
findDepartmentById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as DepartmentDao.findDepartmentById(java.lang.Integer) with an
additional argument called queryString . |
java.lang.Object |
findDepartmentByNaturalId(int transform,
java.lang.String code)
Does the same thing as DepartmentDao.findDepartmentByNaturalId(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
findDepartmentByNaturalId(int transform,
java.lang.String queryString,
java.lang.String code)
Does the same thing as DepartmentDao.findDepartmentByNaturalId(int, java.lang.String) with an
additional argument called queryString . |
Department |
findDepartmentByNaturalId(java.lang.String code)
|
Department |
findDepartmentByNaturalId(java.lang.String queryString,
java.lang.String code)
Does the same thing as DepartmentDao.findDepartmentByNaturalId(java.lang.String) with an
additional argument called queryString . |
java.util.Collection |
findDepartmentByParentDepartment(Department parentDepartment)
|
java.util.Collection |
findDepartmentByParentDepartment(int transform,
Department parentDepartment)
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an
additional flag called transform . |
java.util.Collection |
findDepartmentByParentDepartment(int pageNumber,
int pageSize,
Department parentDepartment)
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByParentDepartment(int transform,
int pageNumber,
int pageSize,
Department parentDepartment)
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByParentDepartment(int transform,
java.lang.String queryString,
Department parentDepartment)
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department) with an
additional argument called queryString . |
java.util.Collection |
findDepartmentByParentDepartment(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Department parentDepartment)
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, String, fr.ifremer.allegro.administration.user.Department) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByParentDepartment(java.lang.String queryString,
Department parentDepartment)
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an
additional argument called queryString . |
java.util.Collection |
findDepartmentByParentDepartment(java.lang.String queryString,
int pageNumber,
int pageSize,
Department parentDepartment)
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(String, fr.ifremer.allegro.administration.user.Department) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByStatus(int transform,
int pageNumber,
int pageSize,
Status status)
Does the same thing as DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByStatus(int pageNumber,
int pageSize,
Status status)
Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByStatus(int transform,
Status status)
Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.util.Collection |
findDepartmentByStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as DepartmentDao.findDepartmentByStatus(int, String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByStatus(int transform,
java.lang.String queryString,
Status status)
Does the same thing as DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
java.util.Collection |
findDepartmentByStatus(Status status)
|
java.util.Collection |
findDepartmentByStatus(java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as DepartmentDao.findDepartmentByStatus(String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findDepartmentByStatus(java.lang.String queryString,
Status status)
Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
ClusterDepartment[] |
getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllDepartment()
|
java.util.Collection |
getAllDepartment(int transform)
Does the same thing as DepartmentDao.getAllDepartment() with an
additional flag called transform . |
java.util.Collection |
getAllDepartment(int pageNumber,
int pageSize)
Does the same thing as DepartmentDao.getAllDepartment() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartment(int transform,
int pageNumber,
int pageSize)
Does the same thing as DepartmentDao.getAllDepartment(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartment(int transform,
java.lang.String queryString)
Does the same thing as DepartmentDao.getAllDepartment(int) with an
additional argument called queryString . |
java.util.Collection |
getAllDepartment(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as DepartmentDao.getAllDepartment(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartment(java.lang.String queryString)
Does the same thing as DepartmentDao.getAllDepartment() with an
additional argument called queryString . |
java.util.Collection |
getAllDepartment(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as DepartmentDao.getAllDepartment(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllDepartmentSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected DepartmentDao |
getDepartmentDao()
Gets the reference to departmentDao . |
protected DepartmentPrivilegeTransfertDao |
getDepartmentPrivilegeTransfertDao()
Gets the reference to departmentPrivilegeTransfertDao . |
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 StatusDao |
getStatusDao()
Gets the reference to statusDao . |
protected abstract Department |
handleCreateFromClusterDepartment(ClusterDepartment clusterDepartment)
Performs the core logic for createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment) |
protected abstract ClusterDepartment[] |
handleGetAllClusterDepartmentSinceDateSynchro(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 getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
Department |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.administration.user.Department from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as DepartmentDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type Department . |
java.util.Collection |
loadAll(int transform)
Does the same thing as DepartmentDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as DepartmentDao.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 DepartmentDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source,
Department target,
boolean copyIfNull)
Copies the fields of RemoteDepartmentFullVO to the specified entity. |
void |
remoteDepartmentFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteDepartmentFullVO to this
DAO's entity. |
void |
remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source,
Department target,
boolean copyIfNull)
Copies the fields of RemoteDepartmentNaturalId to the specified entity. |
void |
remoteDepartmentNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteDepartmentNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(Department department)
Removes the instance of fr.ifremer.allegro.administration.user.Department from the persistent store. |
void |
remove(java.lang.Integer id)
Removes the instance of fr.ifremer.allegro.administration.user.Department 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 DepartmentDao.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 |
setDepartmentDao(DepartmentDao departmentDao)
Sets the reference to departmentDao . |
void |
setDepartmentPrivilegeTransfertDao(DepartmentPrivilegeTransfertDao departmentPrivilegeTransfertDao)
Sets the reference to departmentPrivilegeTransfertDao . |
void |
setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
Sets the reference to program2DepartmentDao . |
void |
setStatusDao(StatusDao statusDao)
Sets the reference to statusDao . |
ClusterDepartment |
toClusterDepartment(Department entity)
Converts this DAO's entity to an object of type ClusterDepartment . |
void |
toClusterDepartment(Department source,
ClusterDepartment target)
Copies the fields of the specified entity to the target value object. |
protected ClusterDepartment |
toClusterDepartment(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterDepartment[] |
toClusterDepartmentArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterDepartment . |
void |
toClusterDepartmentCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterDepartment . |
protected Department |
toEntity(java.lang.Object[] row)
|
RemoteDepartmentFullVO |
toRemoteDepartmentFullVO(Department entity)
Converts this DAO's entity to an object of type RemoteDepartmentFullVO . |
void |
toRemoteDepartmentFullVO(Department source,
RemoteDepartmentFullVO target)
Copies the fields of the specified entity to the target value object. |
protected RemoteDepartmentFullVO |
toRemoteDepartmentFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteDepartmentFullVO[] |
toRemoteDepartmentFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteDepartmentFullVO . |
void |
toRemoteDepartmentFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteDepartmentFullVO . |
RemoteDepartmentNaturalId |
toRemoteDepartmentNaturalId(Department entity)
Converts this DAO's entity to an object of type RemoteDepartmentNaturalId . |
void |
toRemoteDepartmentNaturalId(Department source,
RemoteDepartmentNaturalId target)
Copies the fields of the specified entity to the target value object. |
protected RemoteDepartmentNaturalId |
toRemoteDepartmentNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteDepartmentNaturalId[] |
toRemoteDepartmentNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteDepartmentNaturalId . |
void |
toRemoteDepartmentNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteDepartmentNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.user.Department)
method. |
protected java.lang.Object |
transformEntity(int transform,
Department 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.user.DepartmentDao , please note
that the DepartmentDao.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(Department department)
Updates the department 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.user.DepartmentDao |
---|
clusterDepartmentToEntity, remoteDepartmentFullVOToEntity, remoteDepartmentNaturalIdToEntity |
Constructor Detail |
---|
public DepartmentDaoBase()
Method Detail |
---|
public void setDepartmentDao(DepartmentDao departmentDao)
departmentDao
.
protected DepartmentDao getDepartmentDao()
departmentDao
.
public void setStatusDao(StatusDao statusDao)
statusDao
.
protected StatusDao getStatusDao()
statusDao
.
public void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
program2DepartmentDao
.
protected Program2DepartmentDao getProgram2DepartmentDao()
program2DepartmentDao
.
public void setDepartmentPrivilegeTransfertDao(DepartmentPrivilegeTransfertDao departmentPrivilegeTransfertDao)
departmentPrivilegeTransfertDao
.
protected DepartmentPrivilegeTransfertDao getDepartmentPrivilegeTransfertDao()
departmentPrivilegeTransfertDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
DepartmentDao
Does the same thing as DepartmentDao.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 DepartmentDao
id
- identifier of the entity to load
DepartmentDao.load(int, java.lang.Integer)
public Department load(java.lang.Integer id)
DepartmentDao
load
in interface DepartmentDao
DepartmentDao.load(java.lang.Integer)
public java.util.Collection loadAll()
DepartmentDao
Department
.
loadAll
in interface DepartmentDao
DepartmentDao.loadAll()
public java.util.Collection loadAll(int transform)
DepartmentDao
Does the same thing as DepartmentDao.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 DepartmentDao
transform
- the flag indicating what transformation to use.
DepartmentDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
DepartmentDao
Does the same thing as DepartmentDao.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 DepartmentDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
DepartmentDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
DepartmentDao
Does the same thing as DepartmentDao.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 DepartmentDao
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.
DepartmentDao.loadAll(int, int, int)
public Department create(Department department)
DepartmentDao
create
in interface DepartmentDao
DepartmentDao.create(fr.ifremer.allegro.administration.user.Department)
public java.lang.Object create(int transform, Department department)
DepartmentDao
Does the same thing as DepartmentDao.create(fr.ifremer.allegro.administration.user.Department)
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 DepartmentDao
DepartmentDao.create(int transform, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection create(java.util.Collection entities)
DepartmentDao
entities
collection
create
in interface DepartmentDao
entities
- the collection of fr.ifremer.allegro.administration.user.Department
instances to create.
DepartmentDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
DepartmentDao
Does the same thing as DepartmentDao.create(fr.ifremer.allegro.administration.user.Department)
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 DepartmentDao
DepartmentDao.create(int, java.util.Collection)
public Department create(java.lang.String code, java.lang.String name, java.lang.String email, java.lang.String address, java.lang.String phone, java.lang.Boolean isLdap, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection departments, Department parentDepartment, Status status, java.util.Collection outputTransferts, java.util.Collection inputTransferts)
DepartmentDao
Creates a new fr.ifremer.allegro.administration.user.Department
instance from all attributes and
properties and adds it to the persistent store.
create
in interface DepartmentDao
DepartmentDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection)
public java.lang.Object create(int transform, java.lang.String code, java.lang.String name, java.lang.String email, java.lang.String address, java.lang.String phone, java.lang.Boolean isLdap, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection departments, Department parentDepartment, Status status, java.util.Collection outputTransferts, java.util.Collection inputTransferts)
DepartmentDao
Does the same thing as DepartmentDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.Status,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 DepartmentDao
DepartmentDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection)
public Department create(java.lang.String code, java.util.Date creationDate, java.lang.Boolean isLdap, java.lang.String name, Status status)
DepartmentDao
Creates a new fr.ifremer.allegro.administration.user.Department
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface DepartmentDao
DepartmentDao.create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, java.lang.String code, java.util.Date creationDate, java.lang.Boolean isLdap, java.lang.String name, Status status)
DepartmentDao
Does the same thing as DepartmentDao.create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.Status)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOTWILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
create
in interface DepartmentDao
DepartmentDao.create(int, java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.Status)
public void update(Department department)
DepartmentDao
department
instance in the persistent store.
update
in interface DepartmentDao
DepartmentDao.update(fr.ifremer.allegro.administration.user.Department)
public void update(java.util.Collection entities)
DepartmentDao
entities
collection in the persistent store.
update
in interface DepartmentDao
DepartmentDao.update(java.util.Collection)
public void remove(Department department)
DepartmentDao
remove
in interface DepartmentDao
DepartmentDao.remove(fr.ifremer.allegro.administration.user.Department)
public void remove(java.lang.Integer id)
DepartmentDao
identifier
from the persistent store.
remove
in interface DepartmentDao
DepartmentDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
DepartmentDao
entities collection.
- Specified by:
remove
in interface DepartmentDao
- See Also:
DepartmentDao.remove(java.util.Collection)
public java.util.Collection getAllDepartment()
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment()
public java.util.Collection getAllDepartment(int transform)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartment()
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.
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment(int)
public java.util.Collection getAllDepartment(java.lang.String queryString)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartment()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.getAllDepartment()
.
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment(java.lang.String)
public java.util.Collection getAllDepartment(int pageNumber, int pageSize)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartment()
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.
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment(int, int)
public java.util.Collection getAllDepartment(java.lang.String queryString, int pageNumber, int pageSize)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartment(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.
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment(String, int, int)
public java.util.Collection getAllDepartment(int transform, java.lang.String queryString)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartment(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.getAllDepartment(int)
.
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment(int, String)
public java.util.Collection getAllDepartment(int transform, int pageNumber, int pageSize)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartment(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.
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment(int, int, int)
public java.util.Collection getAllDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartment(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.
getAllDepartment
in interface DepartmentDao
DepartmentDao.getAllDepartment(int, java.lang.String, int, int)
public Department findDepartmentById(java.lang.Integer id)
findDepartmentById
in interface DepartmentDao
DepartmentDao.findDepartmentById(java.lang.Integer)
public java.lang.Object findDepartmentById(int transform, java.lang.Integer id)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentById(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.
findDepartmentById
in interface DepartmentDao
DepartmentDao.findDepartmentById(int, java.lang.Integer)
public Department findDepartmentById(java.lang.String queryString, java.lang.Integer id)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentById(java.lang.Integer)
.
findDepartmentById
in interface DepartmentDao
DepartmentDao.findDepartmentById(java.lang.String, java.lang.Integer)
public java.lang.Object findDepartmentById(int transform, java.lang.String queryString, java.lang.Integer id)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentById(int, java.lang.Integer id)
.
findDepartmentById
in interface DepartmentDao
DepartmentDao.findDepartmentById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findDepartmentByParentDepartment(Department parentDepartment)
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByParentDepartment(int transform, Department parentDepartment)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department)
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.
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString, Department parentDepartment)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department)
.
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(java.lang.String, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByParentDepartment(int pageNumber, int pageSize, Department parentDepartment)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department)
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.
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(int, int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString, int pageNumber, int pageSize, Department parentDepartment)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(String, fr.ifremer.allegro.administration.user.Department)
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.
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(String, int, int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByParentDepartment(int transform, java.lang.String queryString, Department parentDepartment)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department parentDepartment)
.
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(int, String, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByParentDepartment(int transform, int pageNumber, int pageSize, Department parentDepartment)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department)
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.
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(int, int, int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByParentDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize, Department parentDepartment)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, String, fr.ifremer.allegro.administration.user.Department)
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.
findDepartmentByParentDepartment
in interface DepartmentDao
DepartmentDao.findDepartmentByParentDepartment(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findDepartmentByStatus(Status status)
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status)
public java.util.Collection findDepartmentByStatus(int transform, Status status)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
finder results will NOT be transformed during retrieval.
If this flag is any of the other constants defined here
then finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findDepartmentByStatus(java.lang.String queryString, Status status)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status)
.
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findDepartmentByStatus(int pageNumber, int pageSize, Status status)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findDepartmentByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByStatus(String, fr.ifremer.allegro.referential.Status)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findDepartmentByStatus(int transform, java.lang.String queryString, Status status)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status status)
.
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(int, String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findDepartmentByStatus(int transform, int pageNumber, int pageSize, Status status)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(int, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findDepartmentByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByStatus(int, String, fr.ifremer.allegro.referential.Status)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
findDepartmentByStatus
in interface DepartmentDao
DepartmentDao.findDepartmentByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)
public Department findDepartmentByNaturalId(java.lang.String code)
findDepartmentByNaturalId
in interface DepartmentDao
DepartmentDao.findDepartmentByNaturalId(java.lang.String)
public java.lang.Object findDepartmentByNaturalId(int transform, java.lang.String code)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByNaturalId(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.
findDepartmentByNaturalId
in interface DepartmentDao
DepartmentDao.findDepartmentByNaturalId(int, java.lang.String)
public Department findDepartmentByNaturalId(java.lang.String queryString, java.lang.String code)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByNaturalId(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentByNaturalId(java.lang.String)
.
findDepartmentByNaturalId
in interface DepartmentDao
DepartmentDao.findDepartmentByNaturalId(java.lang.String, java.lang.String)
public java.lang.Object findDepartmentByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
DepartmentDao
Does the same thing as DepartmentDao.findDepartmentByNaturalId(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.findDepartmentByNaturalId(int, java.lang.String code)
.
findDepartmentByNaturalId
in interface DepartmentDao
DepartmentDao.findDepartmentByNaturalId(int, java.lang.String, java.lang.String)
public java.util.Collection getAllDepartmentSinceDateSynchro(java.sql.Timestamp updateDate)
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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.
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp)
.
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllDepartmentSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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.
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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.
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllDepartmentSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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.
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
DepartmentDao
Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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.
getAllDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public Department createFromClusterDepartment(ClusterDepartment clusterDepartment)
createFromClusterDepartment
in interface DepartmentDao
DepartmentDao.createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)
protected abstract Department handleCreateFromClusterDepartment(ClusterDepartment clusterDepartment) throws java.lang.Exception
createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)
java.lang.Exception
public ClusterDepartment[] getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterDepartmentSinceDateSynchro
in interface DepartmentDao
DepartmentDao.getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterDepartment[] handleGetAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterDepartmentSinceDateSynchro(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, Department entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.administration.user.DepartmentDao
, please note
that the DepartmentDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Department
- DepartmentDao.TRANSFORM_NONE
RemoteDepartmentFullVO
- TRANSFORM_REMOTEDEPARTMENTFULLVO
RemoteDepartmentNaturalId
- TRANSFORM_REMOTEDEPARTMENTNATURALID
ClusterDepartment
- TRANSFORM_CLUSTERDEPARTMENT
DepartmentDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in DepartmentDao
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.user.Department)
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.user.DepartmentDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.administration.user.Department)
protected Department toEntity(java.lang.Object[] row)
public final void toRemoteDepartmentFullVOCollection(java.util.Collection entities)
DepartmentDao
RemoteDepartmentFullVO
.
toRemoteDepartmentFullVOCollection
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentFullVOCollection(java.util.Collection)
public final RemoteDepartmentFullVO[] toRemoteDepartmentFullVOArray(java.util.Collection entities)
DepartmentDao
RemoteDepartmentFullVO
.
toRemoteDepartmentFullVOArray
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentFullVOArray(java.util.Collection)
protected RemoteDepartmentFullVO toRemoteDepartmentFullVO(java.lang.Object[] row)
DepartmentDaoImpl
class if you intend to use reporting queries.
DepartmentDao.toRemoteDepartmentFullVO(fr.ifremer.allegro.administration.user.Department)
public final void remoteDepartmentFullVOToEntityCollection(java.util.Collection instances)
DepartmentDao
RemoteDepartmentFullVO
to this
DAO's entity.
remoteDepartmentFullVOToEntityCollection
in interface DepartmentDao
DepartmentDao.remoteDepartmentFullVOToEntityCollection(java.util.Collection)
public void toRemoteDepartmentFullVO(Department source, RemoteDepartmentFullVO target)
DepartmentDao
toRemoteDepartmentFullVO
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentFullVO(fr.ifremer.allegro.administration.user.Department, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)
public RemoteDepartmentFullVO toRemoteDepartmentFullVO(Department entity)
DepartmentDao
RemoteDepartmentFullVO
.
toRemoteDepartmentFullVO
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentFullVO(fr.ifremer.allegro.administration.user.Department)
public void remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source, Department target, boolean copyIfNull)
DepartmentDao
RemoteDepartmentFullVO
to the specified entity.
remoteDepartmentFullVOToEntity
in interface DepartmentDao
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.user.DepartmentDao#remoteDepartmentFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.Department)
public final void toRemoteDepartmentNaturalIdCollection(java.util.Collection entities)
DepartmentDao
RemoteDepartmentNaturalId
.
toRemoteDepartmentNaturalIdCollection
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentNaturalIdCollection(java.util.Collection)
public final RemoteDepartmentNaturalId[] toRemoteDepartmentNaturalIdArray(java.util.Collection entities)
DepartmentDao
RemoteDepartmentNaturalId
.
toRemoteDepartmentNaturalIdArray
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentNaturalIdArray(java.util.Collection)
protected RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(java.lang.Object[] row)
DepartmentDaoImpl
class if you intend to use reporting queries.
DepartmentDao.toRemoteDepartmentNaturalId(fr.ifremer.allegro.administration.user.Department)
public final void remoteDepartmentNaturalIdToEntityCollection(java.util.Collection instances)
DepartmentDao
RemoteDepartmentNaturalId
to this
DAO's entity.
remoteDepartmentNaturalIdToEntityCollection
in interface DepartmentDao
DepartmentDao.remoteDepartmentNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteDepartmentNaturalId(Department source, RemoteDepartmentNaturalId target)
DepartmentDao
toRemoteDepartmentNaturalId
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentNaturalId(fr.ifremer.allegro.administration.user.Department, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentNaturalId)
public RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(Department entity)
DepartmentDao
RemoteDepartmentNaturalId
.
toRemoteDepartmentNaturalId
in interface DepartmentDao
DepartmentDao.toRemoteDepartmentNaturalId(fr.ifremer.allegro.administration.user.Department)
public void remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source, Department target, boolean copyIfNull)
DepartmentDao
RemoteDepartmentNaturalId
to the specified entity.
remoteDepartmentNaturalIdToEntity
in interface DepartmentDao
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.user.DepartmentDao#remoteDepartmentNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentNaturalId, fr.ifremer.allegro.administration.user.Department)
public final void toClusterDepartmentCollection(java.util.Collection entities)
DepartmentDao
ClusterDepartment
.
toClusterDepartmentCollection
in interface DepartmentDao
DepartmentDao.toClusterDepartmentCollection(java.util.Collection)
public final ClusterDepartment[] toClusterDepartmentArray(java.util.Collection entities)
DepartmentDao
ClusterDepartment
.
toClusterDepartmentArray
in interface DepartmentDao
DepartmentDao.toClusterDepartmentArray(java.util.Collection)
protected ClusterDepartment toClusterDepartment(java.lang.Object[] row)
DepartmentDaoImpl
class if you intend to use reporting queries.
DepartmentDao.toClusterDepartment(fr.ifremer.allegro.administration.user.Department)
public final void clusterDepartmentToEntityCollection(java.util.Collection instances)
DepartmentDao
ClusterDepartment
to this
DAO's entity.
clusterDepartmentToEntityCollection
in interface DepartmentDao
DepartmentDao.clusterDepartmentToEntityCollection(java.util.Collection)
public void toClusterDepartment(Department source, ClusterDepartment target)
DepartmentDao
toClusterDepartment
in interface DepartmentDao
DepartmentDao.toClusterDepartment(fr.ifremer.allegro.administration.user.Department, fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)
public ClusterDepartment toClusterDepartment(Department entity)
DepartmentDao
ClusterDepartment
.
toClusterDepartment
in interface DepartmentDao
DepartmentDao.toClusterDepartment(fr.ifremer.allegro.administration.user.Department)
public void clusterDepartmentToEntity(ClusterDepartment source, Department target, boolean copyIfNull)
DepartmentDao
ClusterDepartment
to the specified entity.
clusterDepartmentToEntity
in interface DepartmentDao
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.user.DepartmentDao#clusterDepartmentToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment, fr.ifremer.allegro.administration.user.Department)
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)
DepartmentDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface DepartmentDao
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.DepartmentDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
DepartmentDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface DepartmentDao
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.DepartmentDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
DepartmentDao
DepartmentDao.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 DepartmentDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
DepartmentDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
DepartmentDao
search
object.
search
in interface DepartmentDao
search
- the search object which provides the search parameters and pagination specification.
DepartmentDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |