|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IndexUpdateTransaction
This represents a transactional index operation
| Field Summary |
|---|
| Fields inherited from interface org.sakaiproject.search.transaction.api.IndexTransaction |
|---|
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN, TRANSACTION_ACTIVE, TRANSACTION_STATUS |
| Method Summary | |
|---|---|
org.apache.lucene.index.IndexReader |
getIndexReader()
|
org.apache.lucene.index.IndexWriter |
getIndexWriter()
Get the index writer associated with this transaction |
List<SearchBuilderItem> |
getItems()
The list of items |
String |
getTempIndex()
|
Iterator<SearchBuilderItem> |
lockedItemIterator()
Get a list of add items associated with this transaction |
void |
setItems(List<SearchBuilderItem> items)
Sets the items for the tansaction if the transaction is not open |
| Methods inherited from interface org.sakaiproject.search.transaction.api.IndexTransaction |
|---|
clear, close, commit, get, getStatus, getTransactionId, open, prepare, put, rollback |
| Method Detail |
|---|
org.apache.lucene.index.IndexWriter getIndexWriter()
throws IndexTransactionException
IndexTransactionException - if the transaction is not open
org.apache.lucene.index.IndexReader getIndexReader()
throws IndexTransactionException
IndexTransactionException
Iterator<SearchBuilderItem> lockedItemIterator()
throws IndexTransactionException
IndexTransactionException - if the transaction is not openString getTempIndex()
List<SearchBuilderItem> getItems()
void setItems(List<SearchBuilderItem> items)
throws IndexTransactionException
items -
IndexTransactionException - if the items has already been set, or the transaction is not open
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||