public class ERLuceneAdaptorChannel
extends com.webobjects.eoaccess.EOAdaptorChannel
Modifier and Type | Class and Description |
---|---|
protected static class |
ERLuceneAdaptorChannel.IndexAttribute
Morphs EO values to lucene values.
|
_context, _debug, _delegate, _delegateRespondsTo_didChangeResultSet, _delegateRespondsTo_didEvaluateExpression, _delegateRespondsTo_didExecuteStoredProcedure, _delegateRespondsTo_didFetchRow, _delegateRespondsTo_didFinishFetching, _delegateRespondsTo_didPerformOperations, _delegateRespondsTo_didSelectAttributes, _delegateRespondsTo_shouldConstructStoredProcedureReturnValues, _delegateRespondsTo_shouldEvaluateExpression, _delegateRespondsTo_shouldExecuteStoredProcedure, _delegateRespondsTo_shouldReturnValuesForStoredProcedure, _delegateRespondsTo_shouldSelectAttributes, _delegateRespondsTo_willFetchRow, _delegateRespondsTo_willPerformOperations, _rawAttributesCache, _rawDictionaryInitializer, AdaptorFailureKey, AdaptorOperationsKey, AdaptorOptimisticLockingFailure, FailedAdaptorOperationKey
Constructor and Description |
---|
ERLuceneAdaptorChannel(ERLuceneAdaptorContext context) |
Modifier and Type | Method and Description |
---|---|
ERLuceneAdaptorContext |
adaptorContext() |
NSArray<EOAttribute> |
attributesToFetch() |
void |
cancelFetch() |
void |
closeChannel() |
int |
deleteRowsDescribedByQualifier(com.webobjects.eocontrol.EOQualifier qualifier,
com.webobjects.eoaccess.EOEntity entity) |
com.webobjects.eoaccess.EOModel |
describeModelWithTableNames(NSArray anArray) |
NSArray |
describeResults() |
NSArray |
describeTableNames() |
void |
evaluateExpression(com.webobjects.eoaccess.EOSQLExpression anExpression) |
void |
executeStoredProcedure(com.webobjects.eoaccess.EOStoredProcedure aStoredProcedure,
NSDictionary someValues) |
NSMutableDictionary |
fetchRow() |
void |
insertRow(NSDictionary row,
com.webobjects.eoaccess.EOEntity entity) |
boolean |
isFetchInProgress() |
boolean |
isOpen() |
void |
openChannel() |
static org.apache.lucene.search.Query |
queryForQualifier(com.webobjects.eocontrol.EOQualifier qualifier,
com.webobjects.eoaccess.EOEntity entity)
Convenience method to create a Lucene query from an EOF qualifier.
|
NSDictionary |
returnValuesForLastStoredProcedureInvocation() |
org.apache.lucene.search.IndexSearcher |
searcher() |
void |
selectAttributes(NSArray attributesToFetch,
com.webobjects.eocontrol.EOFetchSpecification fs,
boolean shouldLock,
com.webobjects.eoaccess.EOEntity entity) |
void |
setAttributesToFetch(NSArray attributesToFetch) |
static org.apache.lucene.search.Sort |
sortForSortOrderings(NSArray<com.webobjects.eocontrol.EOSortOrdering> sortOrderings)
Convenience method to create a Lucene sort from an EOF sort ordering array.
|
int |
updateValuesInRowsDescribedByQualifier(NSDictionary updatedRow,
com.webobjects.eocontrol.EOQualifier qualifier,
com.webobjects.eoaccess.EOEntity entity) |
org.apache.lucene.index.IndexWriter |
writer() |
_raiseOptimisticLockingExceptionWithReason, _setRawDictionaryInitializerForAttributes, addStoredProceduresNamed, delegate, deleteRowDescribedByQualifier, describeStoredProcedureNames, dictionaryWithObjectsForAttributes, lockRowComparingAttributes, performAdaptorOperation, performAdaptorOperations, primaryKeyForNewRowWithEntity, primaryKeysForNewRowsWithEntity, setDelegate, updateValuesInRowDescribedByQualifier
public ERLuceneAdaptorChannel(ERLuceneAdaptorContext context)
public org.apache.lucene.index.IndexWriter writer()
public org.apache.lucene.search.IndexSearcher searcher() throws org.apache.lucene.index.CorruptIndexException, IOException
org.apache.lucene.index.CorruptIndexException
IOException
public ERLuceneAdaptorContext adaptorContext()
adaptorContext
in class com.webobjects.eoaccess.EOAdaptorChannel
public NSArray<EOAttribute> attributesToFetch()
attributesToFetch
in class com.webobjects.eoaccess.EOAdaptorChannel
public void cancelFetch()
cancelFetch
in class com.webobjects.eoaccess.EOAdaptorChannel
public void closeChannel()
closeChannel
in class com.webobjects.eoaccess.EOAdaptorChannel
public NSArray describeResults()
describeResults
in class com.webobjects.eoaccess.EOAdaptorChannel
public NSArray describeTableNames()
describeTableNames
in class com.webobjects.eoaccess.EOAdaptorChannel
public com.webobjects.eoaccess.EOModel describeModelWithTableNames(NSArray anArray)
describeModelWithTableNames
in class com.webobjects.eoaccess.EOAdaptorChannel
public void evaluateExpression(com.webobjects.eoaccess.EOSQLExpression anExpression)
evaluateExpression
in class com.webobjects.eoaccess.EOAdaptorChannel
public void executeStoredProcedure(com.webobjects.eoaccess.EOStoredProcedure aStoredProcedure, NSDictionary someValues)
executeStoredProcedure
in class com.webobjects.eoaccess.EOAdaptorChannel
public NSMutableDictionary fetchRow()
fetchRow
in class com.webobjects.eoaccess.EOAdaptorChannel
public boolean isFetchInProgress()
isFetchInProgress
in class com.webobjects.eoaccess.EOAdaptorChannel
public boolean isOpen()
isOpen
in class com.webobjects.eoaccess.EOAdaptorChannel
public void openChannel()
openChannel
in class com.webobjects.eoaccess.EOAdaptorChannel
public NSDictionary returnValuesForLastStoredProcedureInvocation()
returnValuesForLastStoredProcedureInvocation
in class com.webobjects.eoaccess.EOAdaptorChannel
public void selectAttributes(NSArray attributesToFetch, com.webobjects.eocontrol.EOFetchSpecification fs, boolean shouldLock, com.webobjects.eoaccess.EOEntity entity)
selectAttributes
in class com.webobjects.eoaccess.EOAdaptorChannel
public void setAttributesToFetch(NSArray attributesToFetch)
setAttributesToFetch
in class com.webobjects.eoaccess.EOAdaptorChannel
public int updateValuesInRowsDescribedByQualifier(NSDictionary updatedRow, com.webobjects.eocontrol.EOQualifier qualifier, com.webobjects.eoaccess.EOEntity entity)
updateValuesInRowsDescribedByQualifier
in class com.webobjects.eoaccess.EOAdaptorChannel
public void insertRow(NSDictionary row, com.webobjects.eoaccess.EOEntity entity)
insertRow
in class com.webobjects.eoaccess.EOAdaptorChannel
public int deleteRowsDescribedByQualifier(com.webobjects.eocontrol.EOQualifier qualifier, com.webobjects.eoaccess.EOEntity entity)
deleteRowsDescribedByQualifier
in class com.webobjects.eoaccess.EOAdaptorChannel
public static org.apache.lucene.search.Query queryForQualifier(com.webobjects.eocontrol.EOQualifier qualifier, com.webobjects.eoaccess.EOEntity entity)
qualifier
- entity
- public static org.apache.lucene.search.Sort sortForSortOrderings(NSArray<com.webobjects.eocontrol.EOSortOrdering> sortOrderings)
sortOrderings
- Copyright © 2002 – 2020 Project Wonder.