|
||||||||||
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.ObjectTypeDaoBase
public abstract class ObjectTypeDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.ObjectType
.
ObjectType
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.ObjectTypeDao |
---|
TRANSFORM_CLUSTEROBJECTTYPE, TRANSFORM_NONE, TRANSFORM_REMOTEOBJECTTYPEFULLVO, TRANSFORM_REMOTEOBJECTTYPENATURALID |
Constructor Summary | |
---|---|
ObjectTypeDaoBase()
|
Method Summary | |
---|---|
void |
clusterObjectTypeToEntity(ClusterObjectType source,
ObjectType target,
boolean copyIfNull)
Copies the fields of ClusterObjectType to the specified entity. |
void |
clusterObjectTypeToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterObjectType to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.ObjectType and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
ObjectType objectType)
Does the same thing as ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name)
Does the same thing as ObjectTypeDao.create(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name,
java.lang.String description,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp) with an
additional flag called transform . |
ObjectType |
create(ObjectType objectType)
Creates an instance of fr.ifremer.allegro.referential.ObjectType and adds it to the persistent store. |
ObjectType |
create(java.lang.String name)
Creates a new fr.ifremer.allegro.referential.ObjectType
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
ObjectType |
create(java.lang.String name,
java.lang.String description,
java.sql.Timestamp updateDate)
Creates a new fr.ifremer.allegro.referential.ObjectType
instance from all attributes and
properties and adds it to the persistent store. |
ObjectType |
createFromClusterObjectType(ClusterObjectType clusterObjectType)
|
java.lang.Object |
findObjectTypeByCode(int transform,
java.lang.String code)
Does the same thing as ObjectTypeDao.findObjectTypeByCode(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
findObjectTypeByCode(int transform,
java.lang.String queryString,
java.lang.String code)
Does the same thing as ObjectTypeDao.findObjectTypeByCode(int, java.lang.String) with an
additional argument called queryString . |
ObjectType |
findObjectTypeByCode(java.lang.String code)
|
ObjectType |
findObjectTypeByCode(java.lang.String queryString,
java.lang.String code)
Does the same thing as ObjectTypeDao.findObjectTypeByCode(java.lang.String) with an
additional argument called queryString . |
java.lang.Object |
findObjectTypeByNaturalId(int transform,
java.lang.String code)
Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
findObjectTypeByNaturalId(int transform,
java.lang.String queryString,
java.lang.String code)
Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String) with an
additional argument called queryString . |
ObjectType |
findObjectTypeByNaturalId(java.lang.String code)
|
ObjectType |
findObjectTypeByNaturalId(java.lang.String queryString,
java.lang.String code)
Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String) with an
additional argument called queryString . |
ClusterObjectType[] |
getAllClusterObjectTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllObjectType()
|
java.util.Collection |
getAllObjectType(int transform)
Does the same thing as ObjectTypeDao.getAllObjectType() with an
additional flag called transform . |
java.util.Collection |
getAllObjectType(int pageNumber,
int pageSize)
Does the same thing as ObjectTypeDao.getAllObjectType() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectType(int transform,
int pageNumber,
int pageSize)
Does the same thing as ObjectTypeDao.getAllObjectType(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectType(int transform,
java.lang.String queryString)
Does the same thing as ObjectTypeDao.getAllObjectType(int) with an
additional argument called queryString . |
java.util.Collection |
getAllObjectType(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as ObjectTypeDao.getAllObjectType(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectType(java.lang.String queryString)
Does the same thing as ObjectTypeDao.getAllObjectType() with an
additional argument called queryString . |
java.util.Collection |
getAllObjectType(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as ObjectTypeDao.getAllObjectType(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllObjectTypeSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected abstract ObjectType |
handleCreateFromClusterObjectType(ClusterObjectType clusterObjectType)
Performs the core logic for createFromClusterObjectType(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType) |
protected abstract ClusterObjectType[] |
handleGetAllClusterObjectTypeSinceDateSynchro(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 getAllClusterObjectTypeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
java.lang.Object |
load(int transform,
java.lang.String code)
Does the same thing as ObjectTypeDao.load(java.lang.String) with an
additional flag called transform . |
ObjectType |
load(java.lang.String code)
Loads an instance of fr.ifremer.allegro.referential.ObjectType from the persistent store. |
java.util.Collection |
loadAll()
Loads all entities of type ObjectType . |
java.util.Collection |
loadAll(int transform)
Does the same thing as ObjectTypeDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as ObjectTypeDao.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 ObjectTypeDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteObjectTypeFullVOToEntity(RemoteObjectTypeFullVO source,
ObjectType target,
boolean copyIfNull)
Copies the fields of RemoteObjectTypeFullVO to the specified entity. |
void |
remoteObjectTypeFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteObjectTypeFullVO to this
DAO's entity. |
void |
remoteObjectTypeNaturalIdToEntity(RemoteObjectTypeNaturalId source,
ObjectType target,
boolean copyIfNull)
Copies the fields of RemoteObjectTypeNaturalId to the specified entity. |
void |
remoteObjectTypeNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteObjectTypeNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(ObjectType objectType)
Removes the instance of fr.ifremer.allegro.referential.ObjectType from the persistent store. |
void |
remove(java.lang.String code)
Removes the instance of fr.ifremer.allegro.referential.ObjectType 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 ObjectTypeDao.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. |
protected ClusterObjectType |
toClusterObjectType(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterObjectType |
toClusterObjectType(ObjectType entity)
Converts this DAO's entity to an object of type ClusterObjectType . |
void |
toClusterObjectType(ObjectType source,
ClusterObjectType target)
Copies the fields of the specified entity to the target value object. |
ClusterObjectType[] |
toClusterObjectTypeArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterObjectType . |
void |
toClusterObjectTypeCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterObjectType . |
protected ObjectType |
toEntity(java.lang.Object[] row)
|
protected RemoteObjectTypeFullVO |
toRemoteObjectTypeFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteObjectTypeFullVO |
toRemoteObjectTypeFullVO(ObjectType entity)
Converts this DAO's entity to an object of type RemoteObjectTypeFullVO . |
void |
toRemoteObjectTypeFullVO(ObjectType source,
RemoteObjectTypeFullVO target)
Copies the fields of the specified entity to the target value object. |
RemoteObjectTypeFullVO[] |
toRemoteObjectTypeFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteObjectTypeFullVO . |
void |
toRemoteObjectTypeFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteObjectTypeFullVO . |
protected RemoteObjectTypeNaturalId |
toRemoteObjectTypeNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteObjectTypeNaturalId |
toRemoteObjectTypeNaturalId(ObjectType entity)
Converts this DAO's entity to an object of type RemoteObjectTypeNaturalId . |
void |
toRemoteObjectTypeNaturalId(ObjectType source,
RemoteObjectTypeNaturalId target)
Copies the fields of the specified entity to the target value object. |
RemoteObjectTypeNaturalId[] |
toRemoteObjectTypeNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteObjectTypeNaturalId . |
void |
toRemoteObjectTypeNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteObjectTypeNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.ObjectType)
method. |
protected java.lang.Object |
transformEntity(int transform,
ObjectType 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.ObjectTypeDao , please note
that the ObjectTypeDao.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(ObjectType objectType)
Updates the objectType 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.ObjectTypeDao |
---|
clusterObjectTypeToEntity, remoteObjectTypeFullVOToEntity, remoteObjectTypeNaturalIdToEntity |
Constructor Detail |
---|
public ObjectTypeDaoBase()
Method Detail |
---|
public java.lang.Object load(int transform, java.lang.String code)
ObjectTypeDao
Does the same thing as ObjectTypeDao.load(java.lang.String)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined in this class then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation does
not occur.
load
in interface ObjectTypeDao
code
- identifier of the entity to load
ObjectTypeDao.load(int, java.lang.String)
public ObjectType load(java.lang.String code)
ObjectTypeDao
load
in interface ObjectTypeDao
ObjectTypeDao.load(java.lang.String)
public java.util.Collection loadAll()
ObjectTypeDao
ObjectType
.
loadAll
in interface ObjectTypeDao
ObjectTypeDao.loadAll()
public java.util.Collection loadAll(int transform)
ObjectTypeDao
Does the same thing as ObjectTypeDao.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 ObjectTypeDao
transform
- the flag indicating what transformation to use.
ObjectTypeDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
ObjectTypeDao
Does the same thing as ObjectTypeDao.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 ObjectTypeDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
ObjectTypeDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
ObjectTypeDao
Does the same thing as ObjectTypeDao.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 ObjectTypeDao
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.
ObjectTypeDao.loadAll(int, int, int)
public ObjectType create(ObjectType objectType)
ObjectTypeDao
create
in interface ObjectTypeDao
ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType)
public java.lang.Object create(int transform, ObjectType objectType)
ObjectTypeDao
Does the same thing as ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType)
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 ObjectTypeDao
ObjectTypeDao.create(int transform, fr.ifremer.allegro.referential.ObjectType)
public java.util.Collection create(java.util.Collection entities)
ObjectTypeDao
entities
collection
create
in interface ObjectTypeDao
entities
- the collection of fr.ifremer.allegro.referential.ObjectType
instances to create.
ObjectTypeDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
ObjectTypeDao
Does the same thing as ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType)
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 ObjectTypeDao
ObjectTypeDao.create(int, java.util.Collection)
public ObjectType create(java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate)
ObjectTypeDao
Creates a new fr.ifremer.allegro.referential.ObjectType
instance from all attributes and
properties and adds it to the persistent store.
create
in interface ObjectTypeDao
ObjectTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp)
public java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp)
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 ObjectTypeDao
ObjectTypeDao.create(int, java.lang.String,java.lang.String,java.sql.Timestamp)
public ObjectType create(java.lang.String name)
ObjectTypeDao
Creates a new fr.ifremer.allegro.referential.ObjectType
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface ObjectTypeDao
ObjectTypeDao.create(java.lang.String)
public java.lang.Object create(int transform, java.lang.String name)
ObjectTypeDao
Does the same thing as ObjectTypeDao.create(java.lang.String)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOTWILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
create
in interface ObjectTypeDao
ObjectTypeDao.create(int, java.lang.String)
public void update(ObjectType objectType)
ObjectTypeDao
objectType
instance in the persistent store.
update
in interface ObjectTypeDao
ObjectTypeDao.update(fr.ifremer.allegro.referential.ObjectType)
public void update(java.util.Collection entities)
ObjectTypeDao
entities
collection in the persistent store.
update
in interface ObjectTypeDao
ObjectTypeDao.update(java.util.Collection)
public void remove(ObjectType objectType)
ObjectTypeDao
remove
in interface ObjectTypeDao
ObjectTypeDao.remove(fr.ifremer.allegro.referential.ObjectType)
public void remove(java.lang.String code)
ObjectTypeDao
identifier
from the persistent store.
remove
in interface ObjectTypeDao
ObjectTypeDao.remove(java.lang.String)
public void remove(java.util.Collection entities)
ObjectTypeDao
entities collection.
- Specified by:
remove
in interface ObjectTypeDao
- See Also:
ObjectTypeDao.remove(java.util.Collection)
public java.util.Collection getAllObjectType()
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType()
public java.util.Collection getAllObjectType(int transform)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectType()
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.
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType(int)
public java.util.Collection getAllObjectType(java.lang.String queryString)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectType()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.getAllObjectType()
.
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType(java.lang.String)
public java.util.Collection getAllObjectType(int pageNumber, int pageSize)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectType()
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.
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType(int, int)
public java.util.Collection getAllObjectType(java.lang.String queryString, int pageNumber, int pageSize)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectType(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.
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType(String, int, int)
public java.util.Collection getAllObjectType(int transform, java.lang.String queryString)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectType(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.getAllObjectType(int)
.
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType(int, String)
public java.util.Collection getAllObjectType(int transform, int pageNumber, int pageSize)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectType(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.
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType(int, int, int)
public java.util.Collection getAllObjectType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectType(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.
getAllObjectType
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectType(int, java.lang.String, int, int)
public ObjectType findObjectTypeByCode(java.lang.String code)
findObjectTypeByCode
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByCode(java.lang.String)
public java.lang.Object findObjectTypeByCode(int transform, java.lang.String code)
ObjectTypeDao
Does the same thing as ObjectTypeDao.findObjectTypeByCode(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.
findObjectTypeByCode
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByCode(int, java.lang.String)
public ObjectType findObjectTypeByCode(java.lang.String queryString, java.lang.String code)
ObjectTypeDao
Does the same thing as ObjectTypeDao.findObjectTypeByCode(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.findObjectTypeByCode(java.lang.String)
.
findObjectTypeByCode
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByCode(java.lang.String, java.lang.String)
public java.lang.Object findObjectTypeByCode(int transform, java.lang.String queryString, java.lang.String code)
ObjectTypeDao
Does the same thing as ObjectTypeDao.findObjectTypeByCode(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.findObjectTypeByCode(int, java.lang.String code)
.
findObjectTypeByCode
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByCode(int, java.lang.String, java.lang.String)
public ObjectType findObjectTypeByNaturalId(java.lang.String code)
findObjectTypeByNaturalId
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String)
public java.lang.Object findObjectTypeByNaturalId(int transform, java.lang.String code)
ObjectTypeDao
Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(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.
findObjectTypeByNaturalId
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String)
public ObjectType findObjectTypeByNaturalId(java.lang.String queryString, java.lang.String code)
ObjectTypeDao
Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String)
.
findObjectTypeByNaturalId
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String, java.lang.String)
public java.lang.Object findObjectTypeByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
ObjectTypeDao
Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String code)
.
findObjectTypeByNaturalId
in interface ObjectTypeDao
ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String, java.lang.String)
public java.util.Collection getAllObjectTypeSinceDateSynchro(java.sql.Timestamp updateDate)
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(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.
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllObjectTypeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp)
.
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllObjectTypeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(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.
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllObjectTypeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(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.
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(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.
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
ObjectTypeDao
Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(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.
getAllObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public ObjectType createFromClusterObjectType(ClusterObjectType clusterObjectType)
createFromClusterObjectType
in interface ObjectTypeDao
ObjectTypeDao.createFromClusterObjectType(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType)
protected abstract ObjectType handleCreateFromClusterObjectType(ClusterObjectType clusterObjectType) throws java.lang.Exception
createFromClusterObjectType(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType)
java.lang.Exception
public ClusterObjectType[] getAllClusterObjectTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterObjectTypeSinceDateSynchro
in interface ObjectTypeDao
ObjectTypeDao.getAllClusterObjectTypeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterObjectType[] handleGetAllClusterObjectTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterObjectTypeSinceDateSynchro(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, ObjectType entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.ObjectTypeDao
, please note
that the ObjectTypeDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
ObjectType
- ObjectTypeDao.TRANSFORM_NONE
RemoteObjectTypeFullVO
- TRANSFORM_REMOTEOBJECTTYPEFULLVO
RemoteObjectTypeNaturalId
- TRANSFORM_REMOTEOBJECTTYPENATURALID
ClusterObjectType
- TRANSFORM_CLUSTEROBJECTTYPE
ObjectTypeDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in ObjectTypeDao
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.ObjectType)
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.ObjectTypeDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.ObjectType)
protected ObjectType toEntity(java.lang.Object[] row)
public final void toRemoteObjectTypeFullVOCollection(java.util.Collection entities)
ObjectTypeDao
RemoteObjectTypeFullVO
.
toRemoteObjectTypeFullVOCollection
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeFullVOCollection(java.util.Collection)
public final RemoteObjectTypeFullVO[] toRemoteObjectTypeFullVOArray(java.util.Collection entities)
ObjectTypeDao
RemoteObjectTypeFullVO
.
toRemoteObjectTypeFullVOArray
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeFullVOArray(java.util.Collection)
protected RemoteObjectTypeFullVO toRemoteObjectTypeFullVO(java.lang.Object[] row)
ObjectTypeDaoImpl
class if you intend to use reporting queries.
ObjectTypeDao.toRemoteObjectTypeFullVO(fr.ifremer.allegro.referential.ObjectType)
public final void remoteObjectTypeFullVOToEntityCollection(java.util.Collection instances)
ObjectTypeDao
RemoteObjectTypeFullVO
to this
DAO's entity.
remoteObjectTypeFullVOToEntityCollection
in interface ObjectTypeDao
ObjectTypeDao.remoteObjectTypeFullVOToEntityCollection(java.util.Collection)
public void toRemoteObjectTypeFullVO(ObjectType source, RemoteObjectTypeFullVO target)
ObjectTypeDao
toRemoteObjectTypeFullVO
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeFullVO(fr.ifremer.allegro.referential.ObjectType, fr.ifremer.allegro.referential.generic.vo.RemoteObjectTypeFullVO)
public RemoteObjectTypeFullVO toRemoteObjectTypeFullVO(ObjectType entity)
ObjectTypeDao
RemoteObjectTypeFullVO
.
toRemoteObjectTypeFullVO
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeFullVO(fr.ifremer.allegro.referential.ObjectType)
public void remoteObjectTypeFullVOToEntity(RemoteObjectTypeFullVO source, ObjectType target, boolean copyIfNull)
ObjectTypeDao
RemoteObjectTypeFullVO
to the specified entity.
remoteObjectTypeFullVOToEntity
in interface ObjectTypeDao
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.ObjectTypeDao#remoteObjectTypeFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteObjectTypeFullVO, fr.ifremer.allegro.referential.ObjectType)
public final void toRemoteObjectTypeNaturalIdCollection(java.util.Collection entities)
ObjectTypeDao
RemoteObjectTypeNaturalId
.
toRemoteObjectTypeNaturalIdCollection
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeNaturalIdCollection(java.util.Collection)
public final RemoteObjectTypeNaturalId[] toRemoteObjectTypeNaturalIdArray(java.util.Collection entities)
ObjectTypeDao
RemoteObjectTypeNaturalId
.
toRemoteObjectTypeNaturalIdArray
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeNaturalIdArray(java.util.Collection)
protected RemoteObjectTypeNaturalId toRemoteObjectTypeNaturalId(java.lang.Object[] row)
ObjectTypeDaoImpl
class if you intend to use reporting queries.
ObjectTypeDao.toRemoteObjectTypeNaturalId(fr.ifremer.allegro.referential.ObjectType)
public final void remoteObjectTypeNaturalIdToEntityCollection(java.util.Collection instances)
ObjectTypeDao
RemoteObjectTypeNaturalId
to this
DAO's entity.
remoteObjectTypeNaturalIdToEntityCollection
in interface ObjectTypeDao
ObjectTypeDao.remoteObjectTypeNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteObjectTypeNaturalId(ObjectType source, RemoteObjectTypeNaturalId target)
ObjectTypeDao
toRemoteObjectTypeNaturalId
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeNaturalId(fr.ifremer.allegro.referential.ObjectType, fr.ifremer.allegro.referential.generic.vo.RemoteObjectTypeNaturalId)
public RemoteObjectTypeNaturalId toRemoteObjectTypeNaturalId(ObjectType entity)
ObjectTypeDao
RemoteObjectTypeNaturalId
.
toRemoteObjectTypeNaturalId
in interface ObjectTypeDao
ObjectTypeDao.toRemoteObjectTypeNaturalId(fr.ifremer.allegro.referential.ObjectType)
public void remoteObjectTypeNaturalIdToEntity(RemoteObjectTypeNaturalId source, ObjectType target, boolean copyIfNull)
ObjectTypeDao
RemoteObjectTypeNaturalId
to the specified entity.
remoteObjectTypeNaturalIdToEntity
in interface ObjectTypeDao
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.ObjectTypeDao#remoteObjectTypeNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteObjectTypeNaturalId, fr.ifremer.allegro.referential.ObjectType)
public final void toClusterObjectTypeCollection(java.util.Collection entities)
ObjectTypeDao
ClusterObjectType
.
toClusterObjectTypeCollection
in interface ObjectTypeDao
ObjectTypeDao.toClusterObjectTypeCollection(java.util.Collection)
public final ClusterObjectType[] toClusterObjectTypeArray(java.util.Collection entities)
ObjectTypeDao
ClusterObjectType
.
toClusterObjectTypeArray
in interface ObjectTypeDao
ObjectTypeDao.toClusterObjectTypeArray(java.util.Collection)
protected ClusterObjectType toClusterObjectType(java.lang.Object[] row)
ObjectTypeDaoImpl
class if you intend to use reporting queries.
ObjectTypeDao.toClusterObjectType(fr.ifremer.allegro.referential.ObjectType)
public final void clusterObjectTypeToEntityCollection(java.util.Collection instances)
ObjectTypeDao
ClusterObjectType
to this
DAO's entity.
clusterObjectTypeToEntityCollection
in interface ObjectTypeDao
ObjectTypeDao.clusterObjectTypeToEntityCollection(java.util.Collection)
public void toClusterObjectType(ObjectType source, ClusterObjectType target)
ObjectTypeDao
toClusterObjectType
in interface ObjectTypeDao
ObjectTypeDao.toClusterObjectType(fr.ifremer.allegro.referential.ObjectType, fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType)
public ClusterObjectType toClusterObjectType(ObjectType entity)
ObjectTypeDao
ClusterObjectType
.
toClusterObjectType
in interface ObjectTypeDao
ObjectTypeDao.toClusterObjectType(fr.ifremer.allegro.referential.ObjectType)
public void clusterObjectTypeToEntity(ClusterObjectType source, ObjectType target, boolean copyIfNull)
ObjectTypeDao
ClusterObjectType
to the specified entity.
clusterObjectTypeToEntity
in interface ObjectTypeDao
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.ObjectTypeDao#clusterObjectTypeToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType, fr.ifremer.allegro.referential.ObjectType)
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)
ObjectTypeDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ObjectTypeDao
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.ObjectTypeDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
ObjectTypeDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface ObjectTypeDao
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.ObjectTypeDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
ObjectTypeDao
ObjectTypeDao.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 ObjectTypeDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
ObjectTypeDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
ObjectTypeDao
search
object.
search
in interface ObjectTypeDao
search
- the search object which provides the search parameters and pagination specification.
ObjectTypeDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |