public class ERLuceneAdaptorChannel extends EOAdaptorChannel
Modifier and Type | Class and Description |
---|---|
protected static class |
ERLuceneAdaptorChannel.IndexAttribute
Morphs EO values to lucene values.
|
EOAdaptorChannel.Delegate
_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) |
_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 EOAdaptorChannel
public NSArray<EOAttribute> attributesToFetch()
attributesToFetch
in class EOAdaptorChannel
public void cancelFetch()
cancelFetch
in class EOAdaptorChannel
public void closeChannel()
closeChannel
in class EOAdaptorChannel
public NSArray describeResults()
describeResults
in class EOAdaptorChannel
public NSArray describeTableNames()
describeTableNames
in class EOAdaptorChannel
public EOModel describeModelWithTableNames(NSArray anArray)
describeModelWithTableNames
in class EOAdaptorChannel
public void evaluateExpression(EOSQLExpression anExpression)
evaluateExpression
in class EOAdaptorChannel
public void executeStoredProcedure(EOStoredProcedure aStoredProcedure, NSDictionary someValues)
executeStoredProcedure
in class EOAdaptorChannel
public NSMutableDictionary fetchRow()
fetchRow
in class EOAdaptorChannel
public boolean isFetchInProgress()
isFetchInProgress
in class EOAdaptorChannel
public boolean isOpen()
isOpen
in class EOAdaptorChannel
public void openChannel()
openChannel
in class EOAdaptorChannel
public NSDictionary returnValuesForLastStoredProcedureInvocation()
returnValuesForLastStoredProcedureInvocation
in class EOAdaptorChannel
public void selectAttributes(NSArray attributesToFetch, EOFetchSpecification fs, boolean shouldLock, EOEntity entity)
selectAttributes
in class EOAdaptorChannel
public void setAttributesToFetch(NSArray attributesToFetch)
setAttributesToFetch
in class EOAdaptorChannel
public int updateValuesInRowsDescribedByQualifier(NSDictionary updatedRow, EOQualifier qualifier, EOEntity entity)
updateValuesInRowsDescribedByQualifier
in class EOAdaptorChannel
public void insertRow(NSDictionary row, EOEntity entity)
insertRow
in class EOAdaptorChannel
public int deleteRowsDescribedByQualifier(EOQualifier qualifier, EOEntity entity)
deleteRowsDescribedByQualifier
in class EOAdaptorChannel
public static org.apache.lucene.search.Query queryForQualifier(EOQualifier qualifier, EOEntity entity)
qualifier
- entity
- public static org.apache.lucene.search.Sort sortForSortOrderings(NSArray<EOSortOrdering> sortOrderings)
sortOrderings
- Copyright © 2002 – 2024 Project Wonder.