|
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 |
|---|
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support |
| Field Summary | |
|---|---|
protected File |
_currentFile
|
protected Hashtable |
_filePathRuleTraceCache
|
protected Hashtable |
_uniqueAndQualifiers
|
protected Hashtable |
_uniqueAssignments
|
protected Hashtable |
_uniqueKeyValueQualifiers
|
protected Hashtable |
_uniqueNotQualifiers
|
protected Hashtable |
_uniqueOrQualifiers
|
protected static String |
ATTRIBUTE_PREFIX
|
protected static String |
ENTITY_PREFIX
|
static Logger |
log
logging support |
static String |
ModelWillReset
|
protected static String |
RELATIONSHIP_PREFIX
|
static Logger |
ruleDecodeLog
logs rules being decoded |
static Logger |
ruleTraceEnabledLog
main category for enabling or disabling tracing of rules |
protected int |
totalQualifiers
|
protected int |
uniquedQualifiers
|
static 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(EOKeyValueUnarchiver unarchiver)
|
protected |
ERD2WModel(File file)
|
protected |
ERD2WModel(NSArray rules)
Main constructor. |
|
ERD2WModel(URL url)
|
| 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 Logger log
public static final Logger ruleDecodeLog
public static final Logger ruleTraceEnabledLog
public static final String WillSortRules
public static final String ModelWillReset
protected Hashtable _filePathRuleTraceCache
protected File _currentFile
protected Hashtable _uniqueAssignments
protected int uniquedQualifiers
protected int totalQualifiers
protected Hashtable _uniqueAndQualifiers
protected Hashtable _uniqueOrQualifiers
protected Hashtable _uniqueNotQualifiers
protected Hashtable _uniqueKeyValueQualifiers
protected static final String ENTITY_PREFIX
protected static final String RELATIONSHIP_PREFIX
protected static final String ATTRIBUTE_PREFIX
| Constructor Detail |
|---|
protected ERD2WModel(NSArray rules)
rules - array of rulesprotected ERD2WModel(File file)
public ERD2WModel(URL url)
protected ERD2WModel(EOKeyValueUnarchiver unarchiver)
| Method Detail |
|---|
public static ERD2WModel erDefaultModel()
public void clearD2WRuleCache()
public NSArray availableTasks()
public NSArray availablePageConfigurations()
protected void sortRules()
sortRules in class com.webobjects.directtoweb.D2WModelpublic void applicationWillDispatchRequest(NSNotification n)
public void applicationDidFinishLaunching(NSNotification n)
public void clearD2WRuleCache(NSNotification n)
public NSArray rules()
rules in class com.webobjects.directtoweb.D2WModelpublic void addRule(com.webobjects.directtoweb.Rule rule)
addRule in class com.webobjects.directtoweb.D2WModelpublic void removeRule(com.webobjects.directtoweb.Rule rule)
removeRule in class com.webobjects.directtoweb.D2WModelprotected String descriptionForRuleSet(NSArray set)
protected String descriptionForRule(com.webobjects.directtoweb.Rule r)
public void addRules(NSArray rules)
addRules in class com.webobjects.directtoweb.D2WModel
protected Object fireSystemRuleForKeyPathInContext(String keyPath,
com.webobjects.directtoweb.D2WContext context)
fireSystemRuleForKeyPathInContext in class com.webobjects.directtoweb.D2WModel
protected Object fireRuleForKeyPathInContext(String keyPath,
com.webobjects.directtoweb.D2WContext context)
fireRuleForKeyPathInContext in class com.webobjects.directtoweb.D2WModel
protected boolean _shouldUseCacheForFiringRuleForKeyPathInContext(String keyPath,
com.webobjects.directtoweb.D2WContext context)
public void dumpCache(String fileName)
public void restoreCache(String fileName)
public NSArray canidateRuleSetForRHSInContext(String rhs,
com.webobjects.directtoweb.D2WContext context)
protected NSSet _addKeyToVectorKeysToTakeLiterally()
protected void _addKeyToVector(String key,
Vector vector)
public void prepareDataStructures()
protected void invalidateCaches()
invalidateCaches in class com.webobjects.directtoweb.D2WModelpublic void resetModel()
protected void setCurrentFile(File currentFile)
protected File currentFile()
protected static NSDictionary dictionaryFromPathUrl(URL url)
protected void mergePathURL(URL modelURL)
mergePathURL in class com.webobjects.directtoweb.D2WModelprotected void mergeFile(File modelFile)
mergeFile in class com.webobjects.directtoweb.D2WModelprotected void uniqueRuleAssignments(NSArray rules)
protected com.webobjects.directtoweb.Assignment assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1,
Vector v)
protected void uniqueQualifiers(NSArray rules)
public Vector modelFilesInBundles()
modelFilesInBundles in class com.webobjects.directtoweb.D2WModelpublic Vector modelFilesPathURLsInBundles()
modelFilesPathURLsInBundles in class com.webobjects.directtoweb.D2WModel
protected EOQualifier qualifierContainedInEnumeration(EOQualifierEvaluation q1,
Enumeration e)
protected EOQualifier qualifierInCache(EOQualifier q)
protected EOAndQualifier andQualifierInCache(EOAndQualifier q)
protected EOOrQualifier orQualifierInCache(EOOrQualifier q)
protected EONotQualifier notQualifierInCache(EONotQualifier q)
protected EOKeyValueQualifier keyValueQualifierInCache(EOKeyValueQualifier q)
protected void flushUniqueCache()
public String nameForSet(NSSet set)
protected Object encodeObject(Object o)
protected Object decodeObject(Object o)
protected boolean writeEntry(ERXMultiKey key,
Object value,
ObjectOutputStream out)
throws IOException
IOException
protected ERXMultiKey readEntry(Hashtable cache,
ObjectInputStream in)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionprotected byte[] cacheToBytes(Hashtable cache)
protected Hashtable cacheFromBytes(byte[] bytes)
public void _diagnoseCache()
|
Last updated: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||