Package org.fcrepo.search.impl
Class DbSearchIndexImpl
- java.lang.Object
-
- org.fcrepo.search.impl.DbSearchIndexImpl
-
- All Implemented Interfaces:
org.fcrepo.search.api.SearchIndex
@Component("searchIndexImpl") public class DbSearchIndexImpl extends Object implements org.fcrepo.search.api.SearchIndexAn implementation of theSearchIndex- Author:
- dbernstein, whikloj
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_COLUMNstatic StringRDF_TYPE_ID_COLUMNstatic StringRDF_TYPE_URI_PARAMstatic StringRESOURCE_SEARCH_ID_PARAMstatic StringSEARCH_RDF_TYPE_TABLEstatic StringSEARCH_RESOURCE_RDF_TYPE_TABLEstatic StringTRANSACTION_ID_PARAM
-
Constructor Summary
Constructors Constructor Description DbSearchIndexImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUpdateIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.models.ResourceHeaders resourceHeaders)voidcommitTransaction(org.fcrepo.kernel.api.Transaction tx)org.fcrepo.search.api.SearchResultdoSearch(org.fcrepo.search.api.SearchParameters parameters)voidremoveFromIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)voidreset()voidrollbackTransaction(org.fcrepo.kernel.api.Transaction tx)voidsetup()Setup database table and connection
-
-
-
Field Detail
-
SEARCH_RESOURCE_RDF_TYPE_TABLE
public static final String SEARCH_RESOURCE_RDF_TYPE_TABLE
- See Also:
- Constant Field Values
-
SEARCH_RDF_TYPE_TABLE
public static final String SEARCH_RDF_TYPE_TABLE
- See Also:
- Constant Field Values
-
RDF_TYPE_ID_COLUMN
public static final String RDF_TYPE_ID_COLUMN
- See Also:
- Constant Field Values
-
ID_COLUMN
public static final String ID_COLUMN
- See Also:
- Constant Field Values
-
RDF_TYPE_URI_PARAM
public static final String RDF_TYPE_URI_PARAM
- See Also:
- Constant Field Values
-
RESOURCE_SEARCH_ID_PARAM
public static final String RESOURCE_SEARCH_ID_PARAM
- See Also:
- Constant Field Values
-
TRANSACTION_ID_PARAM
public static final String TRANSACTION_ID_PARAM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DbSearchIndexImpl
public DbSearchIndexImpl()
-
-
Method Detail
-
setup
@PostConstruct public void setup()
Setup database table and connection
-
doSearch
public org.fcrepo.search.api.SearchResult doSearch(org.fcrepo.search.api.SearchParameters parameters) throws org.fcrepo.search.api.InvalidQueryException
- Specified by:
doSearchin interfaceorg.fcrepo.search.api.SearchIndex- Throws:
org.fcrepo.search.api.InvalidQueryException
-
addUpdateIndex
public void addUpdateIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.models.ResourceHeaders resourceHeaders)
- Specified by:
addUpdateIndexin interfaceorg.fcrepo.search.api.SearchIndex
-
removeFromIndex
public void removeFromIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
removeFromIndexin interfaceorg.fcrepo.search.api.SearchIndex
-
reset
public void reset()
- Specified by:
resetin interfaceorg.fcrepo.search.api.SearchIndex
-
commitTransaction
public void commitTransaction(org.fcrepo.kernel.api.Transaction tx)
- Specified by:
commitTransactionin interfaceorg.fcrepo.search.api.SearchIndex
-
rollbackTransaction
@Transactional(propagation=NOT_SUPPORTED) public void rollbackTransaction(org.fcrepo.kernel.api.Transaction tx)
- Specified by:
rollbackTransactionin interfaceorg.fcrepo.search.api.SearchIndex
-
-