Project Wonder 5.0

er.indexing
Class ERAutoIndex.Configuration

java.lang.Object
  extended by er.indexing.ERAutoIndex.Configuration
Enclosing class:
ERAutoIndex

protected class ERAutoIndex.Configuration
extends java.lang.Object

This class encapsulates the index configuration logic and configures this Index from the indexModel file associated with this ERIndex instance. One instance of Configuration is created during the ERAutoIndex constructor. The Configuration class contains a private instance of a configuration dictionary


Constructor Summary
protected ERAutoIndex.Configuration()
           
 
Method Summary
 void clear()
           
protected  ERAutoIndex.ConfigurationEntry configureEntity(java.lang.String entityName, com.webobjects.foundation.NSArray keys)
           
protected  void createAttributes(com.webobjects.foundation.NSDictionary indexDef)
          Creates the lucene index attributes from the properties dictionary contained in the indexModel defintion.
 ERAutoIndex.ConfigurationEntry entryForKey(java.lang.String key)
           
protected  void initFromDictionary(com.webobjects.foundation.NSDictionary indexDef)
           
 void setEntryForKey(ERAutoIndex.ConfigurationEntry entry, java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERAutoIndex.Configuration

protected ERAutoIndex.Configuration()
Method Detail

initFromDictionary

protected void initFromDictionary(com.webobjects.foundation.NSDictionary indexDef)

createAttributes

protected void createAttributes(com.webobjects.foundation.NSDictionary indexDef)
Creates the lucene index attributes from the properties dictionary contained in the indexModel defintion. Each property is a key or keypath.

Parameters:
indexDef -

configureEntity

protected ERAutoIndex.ConfigurationEntry configureEntity(java.lang.String entityName,
                                                         com.webobjects.foundation.NSArray keys)
Parameters:
entityName - entity to be indexed
keys - attributes (keys or keypaths) to be indexed

entryForKey

public ERAutoIndex.ConfigurationEntry entryForKey(java.lang.String key)

setEntryForKey

public void setEntryForKey(ERAutoIndex.ConfigurationEntry entry,
                           java.lang.String key)

clear

public void clear()

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.