Modifier and Type | Class and Description |
---|---|
static class |
HibIndexDaoImpl.IndexedEntity
Inner static class used to track all details needed to index a class.
|
Constructor and Description |
---|
HibIndexDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
blockIndexQueue()
Blocks the asynchronous index queue so no index queries are added the to queue.
|
void |
clearIndexQueue() |
void |
createAllIndexes() |
void |
createProjectIndexes(Integer projectId) |
long |
getAllIndexesCount() |
long |
getCountForProjectIndex(Integer projectId) |
org.hibernate.Session |
getMySession() |
void |
index(Object obj) |
int |
index(String query,
String paramName,
String paramNameAsString,
Object paramValue) |
int |
indexContourItems(Collection<Integer> idList,
boolean queue) |
void |
queueForIndex(String query,
String paramName,
String paramNameAsString,
Object paramValue)
Queues the index query for asynchronous indexing.
|
void |
setBatchIndexDao(BatchIndexDao batchIndexDao) |
void |
setIndexQueryPublisher(com.jamasoftware.contour.util.search.indexer.batch.IndexQueryPublisher indexQueryPublisher) |
void |
unblockIndexQueue()
Un-blocks the the asynchronous index queue.
|
public long getCountForProjectIndex(Integer projectId)
getCountForProjectIndex
in interface IndexDao
public void createProjectIndexes(Integer projectId)
createProjectIndexes
in interface IndexDao
public void createAllIndexes()
createAllIndexes
in interface IndexDao
public long getAllIndexesCount()
getAllIndexesCount
in interface IndexDao
@Transactional(propagation=MANDATORY, readOnly=false) public void index(Object obj)
public void queueForIndex(String query, String paramName, String paramNameAsString, Object paramValue)
IndexDao
queueForIndex
in interface IndexDao
query
- the query to retrieve the objectparamName
- parameter nameparamNameAsString
- parameter when the value is string.paramValue
- the value of the parameterpublic void blockIndexQueue()
IndexDao
blockIndexQueue
in interface IndexDao
public void unblockIndexQueue()
IndexDao
unblockIndexQueue
in interface IndexDao
public int indexContourItems(Collection<Integer> idList, boolean queue)
indexContourItems
in interface IndexDao
public void clearIndexQueue()
clearIndexQueue
in interface IndexDao
public org.hibernate.Session getMySession()
getMySession
in interface IndexDao
public void setIndexQueryPublisher(com.jamasoftware.contour.util.search.indexer.batch.IndexQueryPublisher indexQueryPublisher)
public void setBatchIndexDao(BatchIndexDao batchIndexDao)
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.