|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IIdentifiableDao<T extends IdentifiableEntity>
| Method Summary | |
|---|---|
int |
countByReferenceTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
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 |
int |
countByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
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 |
int |
countRights(T identifiableEntity)
Return a count of the rights for this identifiable entity |
int |
countSources(T identifiableEntity)
Return a count of the sources for this identifiable entity |
Long |
countTitleCache(Class<? extends T> clazz,
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. |
List<T> |
findByReferenceTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
List<T> |
findByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
List<T> |
findOriginalSourceByIdInSource(String idInSource,
String idNamespace)
|
List<T> |
findTitleCache(Class<? extends T> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
MatchMode matchMode)
TODO |
List<Rights> |
getRights(T identifiableEntity,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Return a List of the rights for this identifiable entity |
List<IdentifiableSource> |
getSources(T identifiableEntity,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Return a List of the sources for this identifiable entity |
List<UuidAndTitleCache<T>> |
getUuidAndTitleCache()
Return a list of all uuids mapped to titleCache in the convenient UuidAndTitleCache object. |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IAnnotatableDao |
|---|
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IVersionableDao |
|---|
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao |
|---|
clear, count, count, count, delete, exists, findById, findByUuid, flush, getSession, getType, group, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveOrUpdate, saveOrUpdateAll, update |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ITitledDao |
|---|
countByTitle, countByTitle, countByTitle, findByTitle, findByTitle, findByTitle, findByTitleAndClass |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ISearchableDao |
|---|
count, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery |
| Method Detail |
|---|
T find(LSID lsid)
lsid - a LifeScience Identifier identifying the desired objectint countSources(T identifiableEntity)
identifiableEntity - The identifiable entity
List<IdentifiableSource> getSources(T identifiableEntity,
Integer pageSize,
Integer pageNumber,
List<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)
int countRights(T identifiableEntity)
identifiableEntity - The identifiable entity
List<Rights> getRights(T identifiableEntity,
Integer pageSize,
Integer pageNumber,
List<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)
List<T> findOriginalSourceByIdInSource(String idInSource,
String idNamespace)
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 instances
List<T> findByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<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
List<T> findTitleCache(Class<? extends T> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
MatchMode matchMode)
clazz - queryString - pageSize - pageNumber - orderHints - matchMode -
List<T> findByReferenceTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<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
int countByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
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 apply
int countByReferenceTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
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 apply
Long countTitleCache(Class<? extends T> clazz,
String queryString,
MatchMode matchMode)
IdentifiableEntity, optionally filtered by class, optionally with a particular MatchMode
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||