public interface IIdentifiableDao<T extends IdentifiableEntity> extends IAnnotatableDao<T>, ITitledDao<T>, ISearchableDao<T>
Modifier and Type | Method and Description |
---|---|
<S extends T> |
countByIdentifier(java.lang.Class<S> clazz,
java.lang.String identifier,
DefinedTerm identifierType,
MatchMode matchmode)
Return a count of entities having an
Identifier that matches the given parameters. |
<S extends T> |
countByMarker(java.lang.Class<S> clazz,
MarkerType markerType,
java.lang.Boolean markerValue) |
long |
countByReferenceTitle(java.lang.Class<? extends T> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria)
Return a count of objects matching the given query string in the title, optionally filtered by class, optionally with a particular MatchMode
|
long |
countByReferenceTitleWithRestrictions(java.lang.Class<? extends T> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<Restriction<?>> restrictions)
Return a count of objects matching the given query string in the title, optionally filtered by class, optionally with a particular MatchMode
|
long |
countByTitle(java.lang.Class<? extends T> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria)
Return a count of objects matching the given query string in the titleCache, optionally filtered by class, optionally with a particular MatchMode
|
long |
countByTitleWithRestrictions(java.lang.Class<? extends T> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<Restriction<?>> restrictions)
Return a count of objects matching the given query string in the titleCache, optionally filtered by class, optionally with a particular MatchMode
|
long |
countRights(T identifiableEntity)
Return a count of the rights for this identifiable entity
|
long |
countSources(T identifiableEntity)
Return a count of the sources for this identifiable entity
|
java.lang.Long |
countTitleCache(java.lang.Class<? extends T> clazz,
java.lang.String queryString,
MatchMode matchMode)
Return a count of distinct titleCache Strings for a given
IdentifiableEntity , optionally filtered by class, optionally with a particular MatchMode |
T |
find(LSID lsid)
Return an object by LSID.
|
<S extends T> |
findByIdentifier(java.lang.Class<S> clazz,
java.lang.String identifier,
DefinedTerm identifierType,
MatchMode matchmode,
boolean includeCdmEntity,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a tuple including the identifier type, the identifier string,
and if includeEntity is
false the CDM entities uuid, and titleCache,
otherwise the CDM entity itself |
<S extends T> |
findByMarker(java.lang.Class<S> clazz,
MarkerType markerType,
java.lang.Boolean markerValue,
boolean includeEntity,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths) |
<S extends T> |
findByReferenceTitle(java.lang.Class<S> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode
|
<S extends T> |
findByReferenceTitleWithRestrictions(java.lang.Class<S> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<Restriction<?>> restrictions,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode
|
<S extends T> |
findByTitle(java.lang.Class<S> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode
|
<S extends T> |
findByTitleWithRestrictions(java.lang.Class<S> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<Restriction<?>> restrictions,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode
|
java.util.List<T> |
findOriginalSourceByIdInSource(java.lang.String idInSource,
java.lang.String idNamespace) |
java.util.List<java.lang.String> |
findTitleCache(java.lang.Class<? extends T> clazz,
java.lang.String queryString,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
MatchMode matchMode)
TODO
|
java.util.List<Rights> |
getRights(T identifiableEntity,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a List of the rights for this identifiable entity
|
java.util.List<IdentifiableSource> |
getSources(T identifiableEntity,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a List of the sources for this identifiable entity
|
java.lang.String |
getTitleCache(java.util.UUID uuid,
boolean refresh)
Returns the titleCache for a given object defined by uuid.
|
java.util.List<UuidAndTitleCache<T>> |
getUuidAndTitleCache()
Return a list of all uuids mapped to titleCache in the convenient
UuidAndTitleCache object. |
<S extends T> |
getUuidAndTitleCache(java.lang.Class<S> clazz,
java.lang.Integer limit,
java.lang.String pattern)
Like
getUuidAndTitleCache(Integer, String) but searching only on a subclass
of the type handled by the DAO. |
java.util.List<UuidAndTitleCache<T>> |
getUuidAndTitleCache(java.lang.Integer limit,
java.lang.String pattern)
Return a list of all uuids mapped to titleCache in the convenient
UuidAndTitleCache object. |
java.util.List<UuidAndTitleCache<T>> |
getUuidAndTitleCacheByMarker(java.lang.Integer limit,
java.lang.String pattern,
MarkerType markerType)
Like
getUuidAndTitleCache(Integer, String) but searching only for elements with a marker of markertype
matching the given parameter |
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, findByParam, findByParamWithRestrictions, findByUuid, findByUuidWithoutFlush, flush, getSession, getType, group, list, list, list, list, list, list, list, list, list, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
countByTitle, countByTitle, countByTitle, findByTitle, findByTitle, findByTitle
count, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery
T find(LSID lsid)
lsid
- a LifeScience Identifier identifying the desired objectlong countSources(T identifiableEntity)
identifiableEntity
- The identifiable entityjava.util.List<IdentifiableSource> getSources(T identifiableEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
identifiableEntity
- The identifiable entitypageSize
- The maximum number of sources returned (can be null for all sources)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
long countRights(T identifiableEntity)
identifiableEntity
- The identifiable entityjava.util.List<Rights> getRights(T identifiableEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
identifiableEntity
- The identifiable entitypageSize
- The maximum number of rights returned (can be null for all rights)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
java.util.List<T> findOriginalSourceByIdInSource(java.lang.String idInSource, java.lang.String idNamespace)
java.lang.String getTitleCache(java.util.UUID uuid, boolean refresh)
uuid
- the uuid of the requested object.refresh
- if false the value as stored in the DB is returned,
otherwise it is recomputed by loading the object and calling the formatter.<S extends T> java.util.List<S> findByTitle(java.lang.Class<S> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criteria
- extra restrictions to applypageSize
- The maximum number of rights returned (can be null for all rights)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCache<S extends T> java.util.List<S> findByTitleWithRestrictions(java.lang.Class<S> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<Restriction<?>> restrictions, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)restrictions
- a List
of additional Restriction
s to filter bypageSize
- The maximum number of rights returned (can be null for all rights)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachejava.util.List<java.lang.String> findTitleCache(java.lang.Class<? extends T> clazz, java.lang.String queryString, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, MatchMode matchMode)
clazz
- queryString
- pageSize
- pageNumber
- orderHints
- matchMode
- <S extends T> java.util.List<S> findByReferenceTitle(java.lang.Class<S> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criteria
- extra restrictions to applypageSize
- The maximum number of rights returned (can be null for all rights)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCache<S extends T> java.util.List<S> findByReferenceTitleWithRestrictions(java.lang.Class<S> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<Restriction<?>> restrictions, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)restrictions
- a List
of additional Restriction
s to filter bypageSize
- The maximum number of rights returned (can be null for all rights)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachelong countByTitle(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criteria
- extra restrictions to applylong countByTitleWithRestrictions(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<Restriction<?>> restrictions)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)restrictions
- a List
of additional Restriction
s to filter bylong countByReferenceTitle(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criteria
- extra restrictions to applylong countByReferenceTitleWithRestrictions(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<Restriction<?>> restrictions)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)restrictions
- a List
of additional Restriction
s to filter byjava.lang.Long countTitleCache(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchMode)
IdentifiableEntity
, optionally filtered by class, optionally with a particular MatchModeclazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)<S extends T> long countByIdentifier(java.lang.Class<S> clazz, java.lang.String identifier, DefinedTerm identifierType, MatchMode matchmode)
Identifier
that matches the given parameters.clazz
- the entities classidentifier
- the identifier stringidentifierType
- the identifier typematchmode
- findByIdentifier(java.lang.Class<S>, java.lang.String, eu.etaxonomy.cdm.model.term.DefinedTerm, eu.etaxonomy.cdm.persistence.query.MatchMode, boolean, java.lang.Integer, java.lang.Integer, java.util.List<java.lang.String>)
<S extends T> java.util.List<java.lang.Object[]> findByIdentifier(java.lang.Class<S> clazz, java.lang.String identifier, DefinedTerm identifierType, MatchMode matchmode, boolean includeCdmEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
false
the CDM entities uuid, and titleCache,
otherwise the CDM entity itselfclazz
- the identifiable entity subclass, may be nullidentifier
- the identifier as String
identifierType
- the identifier type, maybe nullmatchmode
- includeCdmEntity
- pageSize
- pageNumber
- propertyPaths
- countByIdentifier(Class, String, DefinedTerm, MatchMode)
<S extends T> long countByMarker(java.lang.Class<S> clazz, MarkerType markerType, java.lang.Boolean markerValue)
clazz
- markerType
- markerValue
- includeEntity
- pageSize
- pageNumber
- propertyPaths
- <S extends T> java.util.List<java.lang.Object[]> findByMarker(java.lang.Class<S> clazz, MarkerType markerType, java.lang.Boolean markerValue, boolean includeEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
clazz
- markerType
- markerValue
- includeEntity
- pageSize
- pageNumber
- propertyPaths
- java.util.List<UuidAndTitleCache<T>> getUuidAndTitleCache(java.lang.Integer limit, java.lang.String pattern)
UuidAndTitleCache
object.
Retrieving this list is considered to be significantly faster than initializing the fully fledged buiseness
objects. To be used in cases where you want to present large amount of data and provide details after
a selection has been made.UuidAndTitleCache
instancesgetUuidAndTitleCache(Class, Integer, String)
<S extends T> java.util.List<UuidAndTitleCache<S>> getUuidAndTitleCache(java.lang.Class<S> clazz, java.lang.Integer limit, java.lang.String pattern)
getUuidAndTitleCache(Integer, String)
but searching only on a subclass
of the type handled by the DAO.clazz
- the (sub)classlimit
- max number of resultspattern
- search patterngetUuidAndTitleCache(Integer, String)
java.util.List<UuidAndTitleCache<T>> getUuidAndTitleCache()
UuidAndTitleCache
object.
Retrieving this list is considered to be significantly faster than initializing the fully fledged buiseness
objects. To be used in cases where you want to present large amount of data and provide details after
a selection has been made.UuidAndTitleCache
instancesjava.util.List<UuidAndTitleCache<T>> getUuidAndTitleCacheByMarker(java.lang.Integer limit, java.lang.String pattern, MarkerType markerType)
getUuidAndTitleCache(Integer, String)
but searching only for elements with a marker of markertype
matching the given parameterlimit
- pattern
- markerType
- Copyright © 2007-2020 EDIT. All Rights Reserved.