|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.directtoweb.D2WModel
er.directtoweb.ERD2WModel
public class ERD2WModel
Overhaul of the caching system.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
---|
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support |
Field Summary | |
---|---|
protected java.io.File |
_currentFile
|
protected java.util.Hashtable |
_filePathRuleTraceCache
|
protected java.util.Hashtable |
_uniqueAndQualifiers
|
protected java.util.Hashtable |
_uniqueAssignments
|
protected java.util.Hashtable |
_uniqueKeyValueQualifiers
|
protected java.util.Hashtable |
_uniqueNotQualifiers
|
protected java.util.Hashtable |
_uniqueOrQualifiers
|
protected static java.lang.String |
ATTRIBUTE_PREFIX
|
protected static java.lang.String |
ENTITY_PREFIX
|
static org.apache.log4j.Logger |
log
logging support |
static java.lang.String |
ModelWillReset
|
protected static java.lang.String |
RELATIONSHIP_PREFIX
|
static org.apache.log4j.Logger |
ruleDecodeLog
logs rules being decoded |
static org.apache.log4j.Logger |
ruleTraceEnabledLog
main category for enabling or disabling tracing of rules |
protected int |
totalQualifiers
|
protected int |
uniquedQualifiers
|
static java.lang.String |
WillSortRules
|
Fields inherited from class com.webobjects.directtoweb.D2WModel |
---|
_PageWrapperNameKey, _tasks, ActionsKey, AllMarker, AllowCollapsingKey, AlternateRowColorKey, AttributeKey, AttributeTypeKey, BackgroundColorForPageKey, BackgroundColorForTableKey, BoldKey, ColorKey, ComponentAvailableKey, ComponentNameKey, ComponentsToShowAtEndKey, CustomTypeKey, DisplayNameForPropertyKey, DisplayPropertyKeysKey, DummyTrueKey, DynamicPageKey, EntityKey, FormatterKey, FrameKey, FramesActiveKey, IsGeneratingKey, ItalicKey, KeyPathTypeKey, KeyWhenRelationshipKey, LengthKey, LookKey, NoneMarker, One, PageAvailableKey, PageNameKey, PropertyIsKeyPathKey, PropertyKey, PropertyKeyKey, PropertyKeyPortionInModelKey, PropertyTypeKey, ReadOnlyEntityNamesKey, RelationshipKey, RelationshipTypeKey, RequiresEntityKey, SessionKey, ShowBannerKey, StartupEntityNameKey, StartupTaskKey, TargetKey, TaskKey, VisibleEntityNamesKey, WebAssistantPageNameKey, Zero |
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
---|
_CLASS |
Constructor Summary | |
---|---|
protected |
ERD2WModel(com.webobjects.eocontrol.EOKeyValueUnarchiver unarchiver)
|
protected |
ERD2WModel(java.io.File file)
|
protected |
ERD2WModel(com.webobjects.foundation.NSArray rules)
Main constructor. |
|
ERD2WModel(java.net.URL url)
|
Method Summary | |
---|---|
protected void |
_addKeyToVector(java.lang.String key,
java.util.Vector vector)
|
protected com.webobjects.foundation.NSSet |
_addKeyToVectorKeysToTakeLiterally()
|
void |
_diagnoseCache()
|
protected boolean |
_shouldUseCacheForFiringRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context)
|
void |
addRule(com.webobjects.directtoweb.Rule rule)
|
void |
addRules(com.webobjects.foundation.NSArray rules)
|
protected com.webobjects.eocontrol.EOAndQualifier |
andQualifierInCache(com.webobjects.eocontrol.EOAndQualifier q)
|
void |
applicationDidFinishLaunching(com.webobjects.foundation.NSNotification n)
|
void |
applicationWillDispatchRequest(com.webobjects.foundation.NSNotification n)
|
protected com.webobjects.directtoweb.Assignment |
assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1,
java.util.Vector v)
|
com.webobjects.foundation.NSArray |
availablePageConfigurations()
|
com.webobjects.foundation.NSArray |
availableTasks()
|
protected java.util.Hashtable |
cacheFromBytes(byte[] bytes)
|
protected byte[] |
cacheToBytes(java.util.Hashtable cache)
|
com.webobjects.foundation.NSArray |
canidateRuleSetForRHSInContext(java.lang.String rhs,
com.webobjects.directtoweb.D2WContext context)
|
void |
clearD2WRuleCache()
|
void |
clearD2WRuleCache(com.webobjects.foundation.NSNotification n)
|
protected java.io.File |
currentFile()
|
protected java.lang.Object |
decodeObject(java.lang.Object o)
|
protected java.lang.String |
descriptionForRule(com.webobjects.directtoweb.Rule r)
|
protected java.lang.String |
descriptionForRuleSet(com.webobjects.foundation.NSArray set)
|
protected static com.webobjects.foundation.NSDictionary |
dictionaryFromPathUrl(java.net.URL url)
|
void |
dumpCache(java.lang.String fileName)
Means to dump the cache. |
protected java.lang.Object |
encodeObject(java.lang.Object o)
|
static ERD2WModel |
erDefaultModel()
Gets the default D2W model cast as an ERD2WModel. |
protected java.lang.Object |
fireRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context)
|
protected java.lang.Object |
fireSystemRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context)
|
protected void |
flushUniqueCache()
|
protected void |
invalidateCaches()
|
protected com.webobjects.eocontrol.EOKeyValueQualifier |
keyValueQualifierInCache(com.webobjects.eocontrol.EOKeyValueQualifier q)
|
protected void |
mergeFile(java.io.File modelFile)
|
protected void |
mergePathURL(java.net.URL modelURL)
|
java.util.Vector |
modelFilesInBundles()
|
java.util.Vector |
modelFilesPathURLsInBundles()
Overridden to support additional d2wmodel files. |
java.lang.String |
nameForSet(com.webobjects.foundation.NSSet set)
|
protected com.webobjects.eocontrol.EONotQualifier |
notQualifierInCache(com.webobjects.eocontrol.EONotQualifier q)
|
protected com.webobjects.eocontrol.EOOrQualifier |
orQualifierInCache(com.webobjects.eocontrol.EOOrQualifier q)
|
void |
prepareDataStructures()
|
protected com.webobjects.eocontrol.EOQualifier |
qualifierContainedInEnumeration(com.webobjects.eocontrol.EOQualifierEvaluation q1,
java.util.Enumeration e)
|
protected com.webobjects.eocontrol.EOQualifier |
qualifierInCache(com.webobjects.eocontrol.EOQualifier q)
|
protected ERXMultiKey |
readEntry(java.util.Hashtable cache,
java.io.ObjectInputStream in)
|
void |
removeRule(com.webobjects.directtoweb.Rule rule)
|
void |
resetModel()
|
void |
restoreCache(java.lang.String fileName)
Means to restore the cache. |
com.webobjects.foundation.NSArray |
rules()
|
protected void |
setCurrentFile(java.io.File currentFile)
|
protected void |
sortRules()
|
protected void |
uniqueQualifiers(com.webobjects.foundation.NSArray rules)
|
protected void |
uniqueRuleAssignments(com.webobjects.foundation.NSArray rules)
|
protected boolean |
writeEntry(ERXMultiKey key,
java.lang.Object value,
java.io.ObjectOutputStream out)
|
Methods inherited from class com.webobjects.directtoweb.D2WModel |
---|
_fireRule, addRuleToItsBucket, addRuleTrace, candidates, canSaveUserModel, checkPossibilityToSaveUserModel, checkRules, clientConfiguration, clientConfigurationFilesInBundles, clientConfigurationFilesPathURLsInBundles, componentDefinitions, createWebAssistantRulesWithSettings, dataTypesInvolved, defaultModel, dirty, dynamicPages, editors, encodeWebAssistantRulesWithKeyValueArchiver, encodeWithKeyValueArchiver, fireAllRulesForKeyPathInContext, inferrableKeys, initializeClientConfiguration, isPageStatic, loadRules, nameFromFrameworkBundle, newSettings, pageRuleKeysForPage, pageRuleKeysFromClientConfiguration, propertyRuleKeysForComponents, propertyRuleKeysFromClientConfiguration, removeAllWebAssistantRules, removeDynamicPage, removeWebAssistantRulesWithSameContextAsSettings, revertWebAssistantRules, saveWebAssistantRulesIntoUsedModelFile, setDefaultModel, setDirty, setRules, tasks, taskVector, toFile, toString, typeForRuleKey, updateUserSettingsForNewPageAvailableRule, userClientConfigurationFile, userClientConfigurationFilePathURL, userModelFile, userModelFilePathURL, webAssistantRulesForSave |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger log
public static final org.apache.log4j.Logger ruleDecodeLog
public static final org.apache.log4j.Logger ruleTraceEnabledLog
public static final java.lang.String WillSortRules
public static final java.lang.String ModelWillReset
protected java.util.Hashtable _filePathRuleTraceCache
protected java.io.File _currentFile
protected java.util.Hashtable _uniqueAssignments
protected int uniquedQualifiers
protected int totalQualifiers
protected java.util.Hashtable _uniqueAndQualifiers
protected java.util.Hashtable _uniqueOrQualifiers
protected java.util.Hashtable _uniqueNotQualifiers
protected java.util.Hashtable _uniqueKeyValueQualifiers
protected static final java.lang.String ENTITY_PREFIX
protected static final java.lang.String RELATIONSHIP_PREFIX
protected static final java.lang.String ATTRIBUTE_PREFIX
Constructor Detail |
---|
protected ERD2WModel(com.webobjects.foundation.NSArray rules)
rules
- array of rulesprotected ERD2WModel(java.io.File file)
public ERD2WModel(java.net.URL url)
protected ERD2WModel(com.webobjects.eocontrol.EOKeyValueUnarchiver unarchiver)
Method Detail |
---|
public static ERD2WModel erDefaultModel()
public void clearD2WRuleCache()
public com.webobjects.foundation.NSArray availableTasks()
public com.webobjects.foundation.NSArray availablePageConfigurations()
protected void sortRules()
sortRules
in class com.webobjects.directtoweb.D2WModel
public void applicationWillDispatchRequest(com.webobjects.foundation.NSNotification n)
public void applicationDidFinishLaunching(com.webobjects.foundation.NSNotification n)
public void clearD2WRuleCache(com.webobjects.foundation.NSNotification n)
public com.webobjects.foundation.NSArray rules()
rules
in class com.webobjects.directtoweb.D2WModel
public void addRule(com.webobjects.directtoweb.Rule rule)
addRule
in class com.webobjects.directtoweb.D2WModel
public void removeRule(com.webobjects.directtoweb.Rule rule)
removeRule
in class com.webobjects.directtoweb.D2WModel
protected java.lang.String descriptionForRuleSet(com.webobjects.foundation.NSArray set)
protected java.lang.String descriptionForRule(com.webobjects.directtoweb.Rule r)
public void addRules(com.webobjects.foundation.NSArray rules)
addRules
in class com.webobjects.directtoweb.D2WModel
protected java.lang.Object fireSystemRuleForKeyPathInContext(java.lang.String keyPath, com.webobjects.directtoweb.D2WContext context)
fireSystemRuleForKeyPathInContext
in class com.webobjects.directtoweb.D2WModel
protected java.lang.Object fireRuleForKeyPathInContext(java.lang.String keyPath, com.webobjects.directtoweb.D2WContext context)
fireRuleForKeyPathInContext
in class com.webobjects.directtoweb.D2WModel
protected boolean _shouldUseCacheForFiringRuleForKeyPathInContext(java.lang.String keyPath, com.webobjects.directtoweb.D2WContext context)
public void dumpCache(java.lang.String fileName)
public void restoreCache(java.lang.String fileName)
public com.webobjects.foundation.NSArray canidateRuleSetForRHSInContext(java.lang.String rhs, com.webobjects.directtoweb.D2WContext context)
protected com.webobjects.foundation.NSSet _addKeyToVectorKeysToTakeLiterally()
protected void _addKeyToVector(java.lang.String key, java.util.Vector vector)
public void prepareDataStructures()
protected void invalidateCaches()
invalidateCaches
in class com.webobjects.directtoweb.D2WModel
public void resetModel()
protected void setCurrentFile(java.io.File currentFile)
protected java.io.File currentFile()
protected static com.webobjects.foundation.NSDictionary dictionaryFromPathUrl(java.net.URL url)
protected void mergePathURL(java.net.URL modelURL)
mergePathURL
in class com.webobjects.directtoweb.D2WModel
protected void mergeFile(java.io.File modelFile)
mergeFile
in class com.webobjects.directtoweb.D2WModel
protected void uniqueRuleAssignments(com.webobjects.foundation.NSArray rules)
protected com.webobjects.directtoweb.Assignment assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1, java.util.Vector v)
protected void uniqueQualifiers(com.webobjects.foundation.NSArray rules)
public java.util.Vector modelFilesInBundles()
modelFilesInBundles
in class com.webobjects.directtoweb.D2WModel
public java.util.Vector modelFilesPathURLsInBundles()
modelFilesPathURLsInBundles
in class com.webobjects.directtoweb.D2WModel
protected com.webobjects.eocontrol.EOQualifier qualifierContainedInEnumeration(com.webobjects.eocontrol.EOQualifierEvaluation q1, java.util.Enumeration e)
protected com.webobjects.eocontrol.EOQualifier qualifierInCache(com.webobjects.eocontrol.EOQualifier q)
protected com.webobjects.eocontrol.EOAndQualifier andQualifierInCache(com.webobjects.eocontrol.EOAndQualifier q)
protected com.webobjects.eocontrol.EOOrQualifier orQualifierInCache(com.webobjects.eocontrol.EOOrQualifier q)
protected com.webobjects.eocontrol.EONotQualifier notQualifierInCache(com.webobjects.eocontrol.EONotQualifier q)
protected com.webobjects.eocontrol.EOKeyValueQualifier keyValueQualifierInCache(com.webobjects.eocontrol.EOKeyValueQualifier q)
protected void flushUniqueCache()
public java.lang.String nameForSet(com.webobjects.foundation.NSSet set)
protected java.lang.Object encodeObject(java.lang.Object o)
protected java.lang.Object decodeObject(java.lang.Object o)
protected boolean writeEntry(ERXMultiKey key, java.lang.Object value, java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
protected ERXMultiKey readEntry(java.util.Hashtable cache, java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected byte[] cacheToBytes(java.util.Hashtable cache)
protected java.util.Hashtable cacheFromBytes(byte[] bytes)
public void _diagnoseCache()
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |