|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.directtoweb.D2WModel
com.webobjects.directtoweb.D2WFastModel
public class D2WFastModel
The D2WFastModel class is a D2WModel that is specialized with support for significant keys. Precomputing the significant keys of rules expedites the determination of the rules that can fire in a given context.
The current implementation caches the keys in an array of fixed size. Intially, the maximum number of significant keys is 32.
The implementation is subject to change in future releases.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
---|
EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support |
Field Summary |
---|
Constructor Summary | |
---|---|
protected |
D2WFastModel(NSArray rules)
Creates an instance of D2WFastModel with the specified rules. |
Method Summary | |
---|---|
static D2WFastModel |
defaultFastModel()
Gets the default fast model. |
protected Vector |
fireAllRulesForKeyPathInContext(String keyPath,
D2WContext context)
Fires all candidate rules for the specified key path that can fire in the specified context; aggregates the results of all firings. |
protected Object |
fireRuleForKeyPathInContext(String keyPath,
D2WContext context)
Fires the first candidate rule for the specified key path that can fire in the specified context. |
protected Object |
fireSystemRuleForKeyPathInContext(String keyPath,
D2WContext context)
Fires the first candidate rule for the specified key path that can fire in the specified context but is not authored by the Web Assistant. |
protected void |
invalidateCaches()
Clears the local caches of fast left-hand side keys. |
static void |
newSignificantKey(String newKey)
Adds the specified key to the significant keys. |
static short |
significantKeyCount()
Gets the current number of significant keys. |
static String[] |
significantKeys()
Gets the significant keys. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected D2WFastModel(NSArray rules)
rules
- instance of NSArrayD2WModel.D2WModel(NSArray)
Method Detail |
---|
public static D2WFastModel defaultFastModel()
D2WModel.defaultModel()
public static String[] significantKeys()
public static void newSignificantKey(String newKey)
newKey
- instance of StringD2WFastModel.significantKeyCount()
public static short significantKeyCount()
protected Object fireRuleForKeyPathInContext(String keyPath, D2WContext context)
D2WModel
fireRuleForKeyPathInContext
in class D2WModel
keyPath
- the key pathcontext
- instance of D2WContext
D2WModel.fireSystemRuleForKeyPathInContext(String, D2WContext)
,
D2WModel.fireAllRulesForKeyPathInContext(String, D2WContext)
protected Object fireSystemRuleForKeyPathInContext(String keyPath, D2WContext context)
D2WModel
fireSystemRuleForKeyPathInContext
in class D2WModel
keyPath
- the key pathcontext
- instance of D2WContext
D2WModel.fireRuleForKeyPathInContext(String, D2WContext)
protected Vector fireAllRulesForKeyPathInContext(String keyPath, D2WContext context)
D2WModel
fireAllRulesForKeyPathInContext
in class D2WModel
keyPath
- the key pathcontext
- instance of D2WContext
java.util.Vector
D2WModel.candidates(String, D2WContext)
,
D2WModel.fireRuleForKeyPathInContext(String, D2WContext)
,
Rule.canFireInContext(D2WContext)
,
Rule.fire(D2WContext)
protected void invalidateCaches()
invalidateCaches
in class D2WModel
D2WModel.invalidateCaches()
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |