public class IdentifiableDaoBase<T extends IdentifiableEntity> extends AnnotatableDaoImpl<T> implements IIdentifiableDao<T>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultField |
protected java.lang.Class<? extends T>[] |
indexedClasses |
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
IdentifiableDaoBase(java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
long |
count(java.lang.Class<? extends T> clazz,
java.lang.String queryString)
Returns a count of T instances where entities match a given queryString (as interpreted by the Lucene QueryParser)
|
<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> criterion)
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> criterion)
Return a count of objects matching the given query string in the titleCache, optionally filtered by class, optionally with a particular MatchMode
|
long |
countByTitle(java.lang.String queryString) |
long |
countByTitle(java.lang.String queryString,
CdmBase sessionObject) |
long |
countByTitle(java.lang.String queryString,
MatchMode matchMode,
java.util.List<org.hibernate.criterion.Criterion> criteria) |
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 includeEntity,
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> criterion,
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> criterion,
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> |
findByTitle(java.lang.String queryString) |
java.util.List<T> |
findByTitle(java.lang.String queryString,
CdmBase sessionObject) |
java.util.List<T> |
findByTitle(java.lang.String queryString,
MatchMode matchmode,
int page,
int pagesize,
java.util.List<org.hibernate.criterion.Criterion> criteria) |
<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<Credit> |
getCredits(T identifiableEntity,
java.lang.Integer pageSize,
java.lang.Integer pageNumber) |
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.
|
protected <E extends IAnnotatableEntity> |
getUuidAndAbbrevTitleCache(org.hibernate.Query query) |
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
IIdentifiableDao.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. |
protected <E extends IAnnotatableEntity> |
getUuidAndTitleCache(org.hibernate.Query query) |
java.util.List<UuidAndTitleCache<T>> |
getUuidAndTitleCacheByMarker(java.lang.Integer limit,
java.lang.String pattern,
MarkerType markerType)
Like
IIdentifiableDao.getUuidAndTitleCache(Integer, String) but searching only for elements with a marker of markertype
matching the given parameter |
void |
optimizeIndex()
Calls optimize on the relevant index (useful periodically to increase response times on the free-text search)
|
void |
purgeIndex()
Removes all entities of type T from the index
|
void |
rebuildIndex()
Index all T entities currently in the database (useful in concert with purgeIndex() to (re-)create
indexes or in the case of corrupt indexes / mismatch between
the database and the free-text indices)
|
java.util.List<T> |
search(java.lang.Class<? extends T> clazz,
java.lang.String queryString,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a List of T instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser)
|
java.lang.String |
suggestQuery(java.lang.String string)
Suggest a query that will return hits based upon an existing lucene query string (that is presumably misspelt and returns no hits)
Used to implement "did you mean?"-type functionality using the lucene spellchecker.
|
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
addCriteria, addOrder, checkNotInPriorView, count, count, count, countAuditEvents, countAuditEvents, countByParam, exists, findByParam, findByParamWithRestrictions, findByUuid, getAuditEventFromContext, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent, list, list, list, list, load, load, load
addExample, addGroups, clear, count, countByParamWithRestrictions, countGroups, createCriteria, delete, entityType, findById, findByParam, findByUuid, findByUuidWithoutFlush, getAuditReader, getCriteria, getSession, getType, group, list, list, list, list, list, list, load, loadList, lock, makeAuditQuery, merge, merge, refresh, refresh, replace, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update
addCriteria, addFieldPredicate, addLimitAndStart, addLimitAndStart, addLimitAndStart, addOrder, addOrder, addOrder, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, flush, getSessionFactory, orderByClause, setSessionFactory, splitCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected java.lang.String defaultField
protected java.lang.Class<? extends T extends IdentifiableEntity>[] indexedClasses
public IdentifiableDaoBase(java.lang.Class<T> type)
public java.util.List<T> findByTitle(java.lang.String queryString)
findByTitle
in interface ITitledDao<T extends IdentifiableEntity>
public java.util.List<T> findByTitle(java.lang.String queryString, CdmBase sessionObject)
findByTitle
in interface ITitledDao<T extends IdentifiableEntity>
public 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)
IIdentifiableDao
findTitleCache
in interface IIdentifiableDao<T extends IdentifiableEntity>
public java.lang.Long countTitleCache(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchMode)
IIdentifiableDao
IdentifiableEntity
, optionally filtered by class, optionally with a particular MatchModecountTitleCache
in interface IIdentifiableDao<T extends IdentifiableEntity>
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bypublic <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> criterion, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IIdentifiableDao
findByTitle
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)criterion
- 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)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
public <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> criterion, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IIdentifiableDao
findByReferenceTitle
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)criterion
- 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)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
public <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)
IIdentifiableDao
findByTitleWithRestrictions
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
public <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)
IIdentifiableDao
findByReferenceTitleWithRestrictions
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
public java.util.List<T> findByTitle(java.lang.String queryString, MatchMode matchmode, int page, int pagesize, java.util.List<org.hibernate.criterion.Criterion> criteria)
findByTitle
in interface ITitledDao<T extends IdentifiableEntity>
public long countRights(T identifiableEntity)
IIdentifiableDao
countRights
in interface IIdentifiableDao<T extends IdentifiableEntity>
identifiableEntity
- The identifiable entitypublic long countSources(T identifiableEntity)
IIdentifiableDao
countSources
in interface IIdentifiableDao<T extends IdentifiableEntity>
identifiableEntity
- The identifiable entitypublic java.util.List<Rights> getRights(T identifiableEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IIdentifiableDao
getRights
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)
public java.util.List<Credit> getCredits(T identifiableEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber)
public java.util.List<IdentifiableSource> getSources(T identifiableEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IIdentifiableDao
getSources
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)
public java.util.List<T> findOriginalSourceByIdInSource(java.lang.String idInSource, java.lang.String idNamespace)
findOriginalSourceByIdInSource
in interface IIdentifiableDao<T extends IdentifiableEntity>
public T find(LSID lsid)
IIdentifiableDao
find
in interface IIdentifiableDao<T extends IdentifiableEntity>
lsid
- a LifeScience Identifier identifying the desired objectpublic java.lang.String getTitleCache(java.util.UUID uuid, boolean refresh)
IIdentifiableDao
getTitleCache
in interface IIdentifiableDao<T extends IdentifiableEntity>
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.public long countByTitle(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criterion)
IIdentifiableDao
countByTitle
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)criterion
- extra restrictions to applypublic long countByReferenceTitle(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criterion)
IIdentifiableDao
countByReferenceTitle
in interface IIdentifiableDao<T extends IdentifiableEntity>
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)criterion
- extra restrictions to applypublic long countByTitleWithRestrictions(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<Restriction<?>> restrictions)
IIdentifiableDao
countByTitleWithRestrictions
in interface IIdentifiableDao<T extends IdentifiableEntity>
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 bypublic long countByReferenceTitleWithRestrictions(java.lang.Class<? extends T> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<Restriction<?>> restrictions)
IIdentifiableDao
countByReferenceTitleWithRestrictions
in interface IIdentifiableDao<T extends IdentifiableEntity>
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 bypublic long count(java.lang.Class<? extends T> clazz, java.lang.String queryString)
ISearchableDao
count
in interface ISearchableDao<T extends IdentifiableEntity>
clazz
- filter the results by class (or pass null to count all entities of type T)public void optimizeIndex()
ISearchableDao
optimizeIndex
in interface ISearchableDao<T extends IdentifiableEntity>
public void purgeIndex()
ISearchableDao
purgeIndex
in interface ISearchableDao<T extends IdentifiableEntity>
public void rebuildIndex()
ISearchableDao
rebuildIndex
in interface ISearchableDao<T extends IdentifiableEntity>
public java.util.List<T> search(java.lang.Class<? extends T> clazz, java.lang.String queryString, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
ISearchableDao
search
in interface ISearchableDao<T extends IdentifiableEntity>
clazz
- filter the results by class (or pass null to return all entities of type T)pageSize
- The maximum number of entities returned (can be null for all matching entities)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to be initializedpublic java.lang.String suggestQuery(java.lang.String string)
ISearchableDao
suggestQuery
in interface ISearchableDao<T extends IdentifiableEntity>
string
- Query string to checkpublic long countByTitle(java.lang.String queryString)
countByTitle
in interface ITitledDao<T extends IdentifiableEntity>
public long countByTitle(java.lang.String queryString, CdmBase sessionObject)
countByTitle
in interface ITitledDao<T extends IdentifiableEntity>
public long countByTitle(java.lang.String queryString, MatchMode matchMode, java.util.List<org.hibernate.criterion.Criterion> criteria)
countByTitle
in interface ITitledDao<T extends IdentifiableEntity>
public <S extends T> long countByIdentifier(java.lang.Class<S> clazz, java.lang.String identifier, DefinedTerm identifierType, MatchMode matchMode)
IIdentifiableDao
Identifier
that matches the given parameters.countByIdentifier
in interface IIdentifiableDao<T extends IdentifiableEntity>
clazz
- the entities classidentifier
- the identifier stringidentifierType
- the identifier typeIIdentifiableDao.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>)
public <S extends T> java.util.List<java.lang.Object[]> findByIdentifier(java.lang.Class<S> clazz, java.lang.String identifier, DefinedTerm identifierType, MatchMode matchMode, boolean includeEntity, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IIdentifiableDao
false
the CDM entities uuid, and titleCache,
otherwise the CDM entity itselffindByIdentifier
in interface IIdentifiableDao<T extends IdentifiableEntity>
clazz
- the identifiable entity subclass, may be nullidentifier
- the identifier as String
identifierType
- the identifier type, maybe nullIIdentifiableDao.countByIdentifier(Class, String, DefinedTerm, MatchMode)
public <S extends T> long countByMarker(java.lang.Class<S> clazz, MarkerType markerType, java.lang.Boolean markerValue)
countByMarker
in interface IIdentifiableDao<T extends IdentifiableEntity>
public <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)
findByMarker
in interface IIdentifiableDao<T extends IdentifiableEntity>
public java.util.List<UuidAndTitleCache<T>> getUuidAndTitleCacheByMarker(java.lang.Integer limit, java.lang.String pattern, MarkerType markerType)
IIdentifiableDao
IIdentifiableDao.getUuidAndTitleCache(Integer, String)
but searching only for elements with a marker of markertype
matching the given parametergetUuidAndTitleCacheByMarker
in interface IIdentifiableDao<T extends IdentifiableEntity>
public java.util.List<UuidAndTitleCache<T>> getUuidAndTitleCache(java.lang.Integer limit, java.lang.String pattern)
IIdentifiableDao
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.getUuidAndTitleCache
in interface IIdentifiableDao<T extends IdentifiableEntity>
UuidAndTitleCache
instancesIIdentifiableDao.getUuidAndTitleCache(Class, Integer, String)
public <S extends T> java.util.List<UuidAndTitleCache<S>> getUuidAndTitleCache(java.lang.Class<S> clazz, java.lang.Integer limit, java.lang.String pattern)
IIdentifiableDao
IIdentifiableDao.getUuidAndTitleCache(Integer, String)
but searching only on a subclass
of the type handled by the DAO.getUuidAndTitleCache
in interface IIdentifiableDao<T extends IdentifiableEntity>
clazz
- the (sub)classlimit
- max number of resultspattern
- search patternIIdentifiableDao.getUuidAndTitleCache(Integer, String)
public java.util.List<UuidAndTitleCache<T>> getUuidAndTitleCache()
IIdentifiableDao
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.getUuidAndTitleCache
in interface IIdentifiableDao<T extends IdentifiableEntity>
UuidAndTitleCache
instancesprotected <E extends IAnnotatableEntity> java.util.List<UuidAndTitleCache<E>> getUuidAndAbbrevTitleCache(org.hibernate.Query query)
protected <E extends IAnnotatableEntity> java.util.List<UuidAndTitleCache<E>> getUuidAndTitleCache(org.hibernate.Query query)
Copyright © 2007-2020 EDIT. All Rights Reserved.