|
||||||||||
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.referential.taxon.ReferenceDocumentDaoBase
public abstract class ReferenceDocumentDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.taxon.ReferenceDocument
.
ReferenceDocument
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.taxon.ReferenceDocumentDao |
---|
TRANSFORM_CLUSTERREFERENCEDOCUMENT, TRANSFORM_NONE, TRANSFORM_REMOTEREFERENCEDOCUMENTFULLVO, TRANSFORM_REMOTEREFERENCEDOCUMENTNATURALID |
Constructor Summary | |
---|---|
ReferenceDocumentDaoBase()
|
Method Summary | |
---|---|
void |
clusterReferenceDocumentToEntity(ClusterReferenceDocument source,
ReferenceDocument target,
boolean copyIfNull)
Copies the fields of ClusterReferenceDocument to the specified entity. |
void |
clusterReferenceDocumentToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterReferenceDocument to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument and adds from the passed in entities collection |
ReferenceDocument |
create(java.util.Collection authors,
java.util.Date creationDate,
java.lang.String reference,
Status status)
Creates a new fr.ifremer.allegro.referential.taxon.ReferenceDocument
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.util.Collection authors,
java.util.Date creationDate,
java.lang.String reference,
Status status)
Does the same thing as ReferenceDocumentDao.create(java.util.Collection,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
ReferenceDocument referenceDocument)
Does the same thing as ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String reference,
java.util.Date publicationDate,
java.lang.String comments,
java.util.Date creationDate,
java.sql.Timestamp updateDate,
java.util.Collection authors,
java.util.Collection taxonInformationHistories,
Status status)
Does the same thing as ReferenceDocumentDao.create(java.lang.String,java.util.Date,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
ReferenceDocument |
create(ReferenceDocument referenceDocument)
Creates an instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument and adds it to the persistent store. |
ReferenceDocument |
create(java.lang.String reference,
java.util.Date publicationDate,
java.lang.String comments,
java.util.Date creationDate,
java.sql.Timestamp updateDate,
java.util.Collection authors,
java.util.Collection taxonInformationHistories,
Status status)
Creates a new fr.ifremer.allegro.referential.taxon.ReferenceDocument
instance from all attributes and
properties and adds it to the persistent store. |
ReferenceDocument |
createFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument)
|
ReferenceDocument |
findReferenceDocumentById(java.lang.Integer id)
|
java.lang.Object |
findReferenceDocumentById(int transform,
java.lang.Integer id)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findReferenceDocumentById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(int, java.lang.Integer) with an
additional argument called queryString . |
ReferenceDocument |
findReferenceDocumentById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer) with an
additional argument called queryString . |
ReferenceDocument |
findReferenceDocumentByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findReferenceDocumentByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findReferenceDocumentByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
ReferenceDocument |
findReferenceDocumentByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findReferenceDocumentByStatus(int transform,
int pageNumber,
int pageSize,
Status status)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findReferenceDocumentByStatus(int pageNumber,
int pageSize,
Status status)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findReferenceDocumentByStatus(int transform,
Status status)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.util.Collection |
findReferenceDocumentByStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findReferenceDocumentByStatus(int transform,
java.lang.String queryString,
Status status)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
java.util.Collection |
findReferenceDocumentByStatus(Status status)
|
java.util.Collection |
findReferenceDocumentByStatus(java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findReferenceDocumentByStatus(java.lang.String queryString,
Status status)
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
ClusterReferenceDocument[] |
getAllClusterReferenceDocumentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllReferenceDocument()
|
java.util.Collection |
getAllReferenceDocument(int transform)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument() with an
additional flag called transform . |
java.util.Collection |
getAllReferenceDocument(int pageNumber,
int pageSize)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocument(int transform,
int pageNumber,
int pageSize)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocument(int transform,
java.lang.String queryString)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(int) with an
additional argument called queryString . |
java.util.Collection |
getAllReferenceDocument(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocument(java.lang.String queryString)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument() with an
additional argument called queryString . |
java.util.Collection |
getAllReferenceDocument(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected AuthorDao |
getAuthorDao()
Gets the reference to authorDao . |
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected StatusDao |
getStatusDao()
Gets the reference to statusDao . |
protected TaxonInformationHistoryDao |
getTaxonInformationHistoryDao()
Gets the reference to taxonInformationHistoryDao . |
protected abstract ReferenceDocument |
handleCreateFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument)
Performs the core logic for createFromClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument) |
protected abstract ClusterReferenceDocument[] |
handleGetAllClusterReferenceDocumentSinceDateSynchro(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 getAllClusterReferenceDocumentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
ReferenceDocument |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as ReferenceDocumentDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type ReferenceDocument . |
java.util.Collection |
loadAll(int transform)
Does the same thing as ReferenceDocumentDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as ReferenceDocumentDao.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 ReferenceDocumentDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteReferenceDocumentFullVOToEntity(RemoteReferenceDocumentFullVO source,
ReferenceDocument target,
boolean copyIfNull)
Copies the fields of RemoteReferenceDocumentFullVO to the specified entity. |
void |
remoteReferenceDocumentFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteReferenceDocumentFullVO to this
DAO's entity. |
void |
remoteReferenceDocumentNaturalIdToEntity(RemoteReferenceDocumentNaturalId source,
ReferenceDocument target,
boolean copyIfNull)
Copies the fields of RemoteReferenceDocumentNaturalId to the specified entity. |
void |
remoteReferenceDocumentNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteReferenceDocumentNaturalId 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.referential.taxon.ReferenceDocument having the given identifier from the persistent store. |
void |
remove(ReferenceDocument referenceDocument)
Removes the instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument 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 ReferenceDocumentDao.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 |
setAuthorDao(AuthorDao authorDao)
Sets the reference to authorDao . |
void |
setStatusDao(StatusDao statusDao)
Sets the reference to statusDao . |
void |
setTaxonInformationHistoryDao(TaxonInformationHistoryDao taxonInformationHistoryDao)
Sets the reference to taxonInformationHistoryDao . |
protected ClusterReferenceDocument |
toClusterReferenceDocument(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterReferenceDocument |
toClusterReferenceDocument(ReferenceDocument entity)
Converts this DAO's entity to an object of type ClusterReferenceDocument . |
void |
toClusterReferenceDocument(ReferenceDocument source,
ClusterReferenceDocument target)
Copies the fields of the specified entity to the target value object. |
ClusterReferenceDocument[] |
toClusterReferenceDocumentArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterReferenceDocument . |
void |
toClusterReferenceDocumentCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterReferenceDocument . |
protected ReferenceDocument |
toEntity(java.lang.Object[] row)
|
protected RemoteReferenceDocumentFullVO |
toRemoteReferenceDocumentFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteReferenceDocumentFullVO |
toRemoteReferenceDocumentFullVO(ReferenceDocument entity)
Converts this DAO's entity to an object of type RemoteReferenceDocumentFullVO . |
void |
toRemoteReferenceDocumentFullVO(ReferenceDocument source,
RemoteReferenceDocumentFullVO target)
Copies the fields of the specified entity to the target value object. |
RemoteReferenceDocumentFullVO[] |
toRemoteReferenceDocumentFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteReferenceDocumentFullVO . |
void |
toRemoteReferenceDocumentFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteReferenceDocumentFullVO . |
protected RemoteReferenceDocumentNaturalId |
toRemoteReferenceDocumentNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteReferenceDocumentNaturalId |
toRemoteReferenceDocumentNaturalId(ReferenceDocument entity)
Converts this DAO's entity to an object of type RemoteReferenceDocumentNaturalId . |
void |
toRemoteReferenceDocumentNaturalId(ReferenceDocument source,
RemoteReferenceDocumentNaturalId target)
Copies the fields of the specified entity to the target value object. |
RemoteReferenceDocumentNaturalId[] |
toRemoteReferenceDocumentNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteReferenceDocumentNaturalId . |
void |
toRemoteReferenceDocumentNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteReferenceDocumentNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.taxon.ReferenceDocument)
method. |
protected java.lang.Object |
transformEntity(int transform,
ReferenceDocument 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.referential.taxon.ReferenceDocumentDao , please note
that the ReferenceDocumentDao.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(ReferenceDocument referenceDocument)
Updates the referenceDocument 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.referential.taxon.ReferenceDocumentDao |
---|
clusterReferenceDocumentToEntity, remoteReferenceDocumentFullVOToEntity, remoteReferenceDocumentNaturalIdToEntity |
Constructor Detail |
---|
public ReferenceDocumentDaoBase()
Method Detail |
---|
public void setStatusDao(StatusDao statusDao)
statusDao
.
protected StatusDao getStatusDao()
statusDao
.
public void setAuthorDao(AuthorDao authorDao)
authorDao
.
protected AuthorDao getAuthorDao()
authorDao
.
public void setTaxonInformationHistoryDao(TaxonInformationHistoryDao taxonInformationHistoryDao)
taxonInformationHistoryDao
.
protected TaxonInformationHistoryDao getTaxonInformationHistoryDao()
taxonInformationHistoryDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.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 ReferenceDocumentDao
id
- identifier of the entity to load
ReferenceDocumentDao.load(int, java.lang.Integer)
public ReferenceDocument load(java.lang.Integer id)
ReferenceDocumentDao
load
in interface ReferenceDocumentDao
ReferenceDocumentDao.load(java.lang.Integer)
public java.util.Collection loadAll()
ReferenceDocumentDao
ReferenceDocument
.
loadAll
in interface ReferenceDocumentDao
ReferenceDocumentDao.loadAll()
public java.util.Collection loadAll(int transform)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.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 ReferenceDocumentDao
transform
- the flag indicating what transformation to use.
ReferenceDocumentDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.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 ReferenceDocumentDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
ReferenceDocumentDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.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 ReferenceDocumentDao
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.
ReferenceDocumentDao.loadAll(int, int, int)
public ReferenceDocument create(ReferenceDocument referenceDocument)
ReferenceDocumentDao
create
in interface ReferenceDocumentDao
ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public java.lang.Object create(int transform, ReferenceDocument referenceDocument)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
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 ReferenceDocumentDao
ReferenceDocumentDao.create(int transform, fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public java.util.Collection create(java.util.Collection entities)
ReferenceDocumentDao
entities
collection
create
in interface ReferenceDocumentDao
entities
- the collection of fr.ifremer.allegro.referential.taxon.ReferenceDocument
instances to create.
ReferenceDocumentDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
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 ReferenceDocumentDao
ReferenceDocumentDao.create(int, java.util.Collection)
public ReferenceDocument create(java.lang.String reference, java.util.Date publicationDate, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection authors, java.util.Collection taxonInformationHistories, Status status)
ReferenceDocumentDao
Creates a new fr.ifremer.allegro.referential.taxon.ReferenceDocument
instance from all attributes and
properties and adds it to the persistent store.
create
in interface ReferenceDocumentDao
ReferenceDocumentDao.create(java.lang.String,java.util.Date,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, java.lang.String reference, java.util.Date publicationDate, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection authors, java.util.Collection taxonInformationHistories, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.create(java.lang.String,java.util.Date,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.Status)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
create
in interface ReferenceDocumentDao
ReferenceDocumentDao.create(int, java.lang.String,java.util.Date,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.Status)
public ReferenceDocument create(java.util.Collection authors, java.util.Date creationDate, java.lang.String reference, Status status)
ReferenceDocumentDao
Creates a new fr.ifremer.allegro.referential.taxon.ReferenceDocument
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface ReferenceDocumentDao
ReferenceDocumentDao.create(java.util.Collection,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, java.util.Collection authors, java.util.Date creationDate, java.lang.String reference, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.create(java.util.Collection,java.util.Date,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 ReferenceDocumentDao
ReferenceDocumentDao.create(int, java.util.Collection,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.Status)
public void update(ReferenceDocument referenceDocument)
ReferenceDocumentDao
referenceDocument
instance in the persistent store.
update
in interface ReferenceDocumentDao
ReferenceDocumentDao.update(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public void update(java.util.Collection entities)
ReferenceDocumentDao
entities
collection in the persistent store.
update
in interface ReferenceDocumentDao
ReferenceDocumentDao.update(java.util.Collection)
public void remove(ReferenceDocument referenceDocument)
ReferenceDocumentDao
remove
in interface ReferenceDocumentDao
ReferenceDocumentDao.remove(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public void remove(java.lang.Integer id)
ReferenceDocumentDao
identifier
from the persistent store.
remove
in interface ReferenceDocumentDao
ReferenceDocumentDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
ReferenceDocumentDao
entities collection.
- Specified by:
remove
in interface ReferenceDocumentDao
- See Also:
ReferenceDocumentDao.remove(java.util.Collection)
public java.util.Collection getAllReferenceDocument()
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument()
public java.util.Collection getAllReferenceDocument(int transform)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument()
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.
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument(int)
public java.util.Collection getAllReferenceDocument(java.lang.String queryString)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.getAllReferenceDocument()
.
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument(java.lang.String)
public java.util.Collection getAllReferenceDocument(int pageNumber, int pageSize)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument()
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.
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument(int, int)
public java.util.Collection getAllReferenceDocument(java.lang.String queryString, int pageNumber, int pageSize)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(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.
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument(String, int, int)
public java.util.Collection getAllReferenceDocument(int transform, java.lang.String queryString)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.getAllReferenceDocument(int)
.
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument(int, String)
public java.util.Collection getAllReferenceDocument(int transform, int pageNumber, int pageSize)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(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.
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument(int, int, int)
public java.util.Collection getAllReferenceDocument(int transform, java.lang.String queryString, int pageNumber, int pageSize)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(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.
getAllReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocument(int, java.lang.String, int, int)
public ReferenceDocument findReferenceDocumentById(java.lang.Integer id)
findReferenceDocumentById
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer)
public java.lang.Object findReferenceDocumentById(int transform, java.lang.Integer id)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(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.
findReferenceDocumentById
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentById(int, java.lang.Integer)
public ReferenceDocument findReferenceDocumentById(java.lang.String queryString, java.lang.Integer id)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer)
.
findReferenceDocumentById
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentById(java.lang.String, java.lang.Integer)
public java.lang.Object findReferenceDocumentById(int transform, java.lang.String queryString, java.lang.Integer id)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.findReferenceDocumentById(int, java.lang.Integer id)
.
findReferenceDocumentById
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findReferenceDocumentByStatus(Status status)
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status)
public java.util.Collection findReferenceDocumentByStatus(int transform, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(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.
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findReferenceDocumentByStatus(java.lang.String queryString, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status)
.
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findReferenceDocumentByStatus(int pageNumber, int pageSize, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(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.
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findReferenceDocumentByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(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.
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findReferenceDocumentByStatus(int transform, java.lang.String queryString, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status status)
.
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(int, String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findReferenceDocumentByStatus(int transform, int pageNumber, int pageSize, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(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.
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(int, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findReferenceDocumentByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(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.
findReferenceDocumentByStatus
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)
public ReferenceDocument findReferenceDocumentByNaturalId(java.lang.Integer id)
findReferenceDocumentByNaturalId
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer)
public java.lang.Object findReferenceDocumentByNaturalId(int transform, java.lang.Integer id)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(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.
findReferenceDocumentByNaturalId
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByNaturalId(int, java.lang.Integer)
public ReferenceDocument findReferenceDocumentByNaturalId(java.lang.String queryString, java.lang.Integer id)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer)
.
findReferenceDocumentByNaturalId
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findReferenceDocumentByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.findReferenceDocumentByNaturalId(int, java.lang.Integer id)
.
findReferenceDocumentByNaturalId
in interface ReferenceDocumentDao
ReferenceDocumentDao.findReferenceDocumentByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp updateDate)
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(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.
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp)
.
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(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.
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(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.
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(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.
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ReferenceDocumentDao
Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(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.
getAllReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public ReferenceDocument createFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument)
createFromClusterReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.createFromClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument)
protected abstract ReferenceDocument handleCreateFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument) throws java.lang.Exception
createFromClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument)
java.lang.Exception
public ClusterReferenceDocument[] getAllClusterReferenceDocumentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterReferenceDocumentSinceDateSynchro
in interface ReferenceDocumentDao
ReferenceDocumentDao.getAllClusterReferenceDocumentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterReferenceDocument[] handleGetAllClusterReferenceDocumentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterReferenceDocumentSinceDateSynchro(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, ReferenceDocument entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.taxon.ReferenceDocumentDao
, please note
that the ReferenceDocumentDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
ReferenceDocument
- ReferenceDocumentDao.TRANSFORM_NONE
RemoteReferenceDocumentFullVO
- TRANSFORM_REMOTEREFERENCEDOCUMENTFULLVO
RemoteReferenceDocumentNaturalId
- TRANSFORM_REMOTEREFERENCEDOCUMENTNATURALID
ClusterReferenceDocument
- TRANSFORM_CLUSTERREFERENCEDOCUMENT
ReferenceDocumentDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in ReferenceDocumentDao
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.referential.taxon.ReferenceDocument)
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.referential.taxon.ReferenceDocumentDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.taxon.ReferenceDocument)
protected ReferenceDocument toEntity(java.lang.Object[] row)
public final void toRemoteReferenceDocumentFullVOCollection(java.util.Collection entities)
ReferenceDocumentDao
RemoteReferenceDocumentFullVO
.
toRemoteReferenceDocumentFullVOCollection
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentFullVOCollection(java.util.Collection)
public final RemoteReferenceDocumentFullVO[] toRemoteReferenceDocumentFullVOArray(java.util.Collection entities)
ReferenceDocumentDao
RemoteReferenceDocumentFullVO
.
toRemoteReferenceDocumentFullVOArray
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentFullVOArray(java.util.Collection)
protected RemoteReferenceDocumentFullVO toRemoteReferenceDocumentFullVO(java.lang.Object[] row)
ReferenceDocumentDaoImpl
class if you intend to use reporting queries.
ReferenceDocumentDao.toRemoteReferenceDocumentFullVO(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public final void remoteReferenceDocumentFullVOToEntityCollection(java.util.Collection instances)
ReferenceDocumentDao
RemoteReferenceDocumentFullVO
to this
DAO's entity.
remoteReferenceDocumentFullVOToEntityCollection
in interface ReferenceDocumentDao
ReferenceDocumentDao.remoteReferenceDocumentFullVOToEntityCollection(java.util.Collection)
public void toRemoteReferenceDocumentFullVO(ReferenceDocument source, RemoteReferenceDocumentFullVO target)
ReferenceDocumentDao
toRemoteReferenceDocumentFullVO
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentFullVO(fr.ifremer.allegro.referential.taxon.ReferenceDocument, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceDocumentFullVO)
public RemoteReferenceDocumentFullVO toRemoteReferenceDocumentFullVO(ReferenceDocument entity)
ReferenceDocumentDao
RemoteReferenceDocumentFullVO
.
toRemoteReferenceDocumentFullVO
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentFullVO(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public void remoteReferenceDocumentFullVOToEntity(RemoteReferenceDocumentFullVO source, ReferenceDocument target, boolean copyIfNull)
ReferenceDocumentDao
RemoteReferenceDocumentFullVO
to the specified entity.
remoteReferenceDocumentFullVOToEntity
in interface ReferenceDocumentDao
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.referential.taxon.ReferenceDocumentDao#remoteReferenceDocumentFullVOToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceDocumentFullVO, fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public final void toRemoteReferenceDocumentNaturalIdCollection(java.util.Collection entities)
ReferenceDocumentDao
RemoteReferenceDocumentNaturalId
.
toRemoteReferenceDocumentNaturalIdCollection
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalIdCollection(java.util.Collection)
public final RemoteReferenceDocumentNaturalId[] toRemoteReferenceDocumentNaturalIdArray(java.util.Collection entities)
ReferenceDocumentDao
RemoteReferenceDocumentNaturalId
.
toRemoteReferenceDocumentNaturalIdArray
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalIdArray(java.util.Collection)
protected RemoteReferenceDocumentNaturalId toRemoteReferenceDocumentNaturalId(java.lang.Object[] row)
ReferenceDocumentDaoImpl
class if you intend to use reporting queries.
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalId(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public final void remoteReferenceDocumentNaturalIdToEntityCollection(java.util.Collection instances)
ReferenceDocumentDao
RemoteReferenceDocumentNaturalId
to this
DAO's entity.
remoteReferenceDocumentNaturalIdToEntityCollection
in interface ReferenceDocumentDao
ReferenceDocumentDao.remoteReferenceDocumentNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteReferenceDocumentNaturalId(ReferenceDocument source, RemoteReferenceDocumentNaturalId target)
ReferenceDocumentDao
toRemoteReferenceDocumentNaturalId
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalId(fr.ifremer.allegro.referential.taxon.ReferenceDocument, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceDocumentNaturalId)
public RemoteReferenceDocumentNaturalId toRemoteReferenceDocumentNaturalId(ReferenceDocument entity)
ReferenceDocumentDao
RemoteReferenceDocumentNaturalId
.
toRemoteReferenceDocumentNaturalId
in interface ReferenceDocumentDao
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalId(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public void remoteReferenceDocumentNaturalIdToEntity(RemoteReferenceDocumentNaturalId source, ReferenceDocument target, boolean copyIfNull)
ReferenceDocumentDao
RemoteReferenceDocumentNaturalId
to the specified entity.
remoteReferenceDocumentNaturalIdToEntity
in interface ReferenceDocumentDao
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.referential.taxon.ReferenceDocumentDao#remoteReferenceDocumentNaturalIdToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceDocumentNaturalId, fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public final void toClusterReferenceDocumentCollection(java.util.Collection entities)
ReferenceDocumentDao
ClusterReferenceDocument
.
toClusterReferenceDocumentCollection
in interface ReferenceDocumentDao
ReferenceDocumentDao.toClusterReferenceDocumentCollection(java.util.Collection)
public final ClusterReferenceDocument[] toClusterReferenceDocumentArray(java.util.Collection entities)
ReferenceDocumentDao
ClusterReferenceDocument
.
toClusterReferenceDocumentArray
in interface ReferenceDocumentDao
ReferenceDocumentDao.toClusterReferenceDocumentArray(java.util.Collection)
protected ClusterReferenceDocument toClusterReferenceDocument(java.lang.Object[] row)
ReferenceDocumentDaoImpl
class if you intend to use reporting queries.
ReferenceDocumentDao.toClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public final void clusterReferenceDocumentToEntityCollection(java.util.Collection instances)
ReferenceDocumentDao
ClusterReferenceDocument
to this
DAO's entity.
clusterReferenceDocumentToEntityCollection
in interface ReferenceDocumentDao
ReferenceDocumentDao.clusterReferenceDocumentToEntityCollection(java.util.Collection)
public void toClusterReferenceDocument(ReferenceDocument source, ClusterReferenceDocument target)
ReferenceDocumentDao
toClusterReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.toClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.ReferenceDocument, fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument)
public ClusterReferenceDocument toClusterReferenceDocument(ReferenceDocument entity)
ReferenceDocumentDao
ClusterReferenceDocument
.
toClusterReferenceDocument
in interface ReferenceDocumentDao
ReferenceDocumentDao.toClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.ReferenceDocument)
public void clusterReferenceDocumentToEntity(ClusterReferenceDocument source, ReferenceDocument target, boolean copyIfNull)
ReferenceDocumentDao
ClusterReferenceDocument
to the specified entity.
clusterReferenceDocumentToEntity
in interface ReferenceDocumentDao
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.referential.taxon.ReferenceDocumentDao#clusterReferenceDocumentToEntity(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument, fr.ifremer.allegro.referential.taxon.ReferenceDocument)
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)
ReferenceDocumentDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ReferenceDocumentDao
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.ReferenceDocumentDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
ReferenceDocumentDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ReferenceDocumentDao
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.ReferenceDocumentDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
ReferenceDocumentDao
ReferenceDocumentDao.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 ReferenceDocumentDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
ReferenceDocumentDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
ReferenceDocumentDao
search
object.
search
in interface ReferenceDocumentDao
search
- the search object which provides the search parameters and pagination specification.
ReferenceDocumentDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |