public class ERD2WModel
extends com.webobjects.directtoweb.D2WModel
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
Modifier and Type | Field and Description |
---|---|
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 org.apache.log4j.Logger |
log
logging support
|
static String |
ModelWillReset |
protected static 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 String |
WillSortRules |
_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
_CLASS
Modifier | Constructor and Description |
---|---|
protected |
ERD2WModel(EOKeyValueUnarchiver unarchiver) |
protected |
ERD2WModel(File file) |
protected |
ERD2WModel(NSArray rules)
Main constructor.
|
|
ERD2WModel(URL url) |
_fireRule, addRuleToItsBucket, addRuleTrace, candidates, canSaveUserModel, checkPossibilityToSaveUserModel, checkRules, clientConfiguration, clientConfigurationFilesInBundles, clientConfigurationFilesPathURLsInBundles, componentDefinitions, createWebAssistantRulesWithSettings, dataTypesInvolved, defaultModel, dirty, dynamicPages, editors, encodeWebAssistantRulesWithKeyValueArchiver, encodeWithKeyValueArchiver, fireAllRulesForKeyPathInContext, inferrableKeys, initializeClientConfiguration, isPageStatic, loadRules, modelFilesInBundles, 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
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 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
protected ERD2WModel(NSArray rules)
rules
- array of rulesprotected ERD2WModel(File file)
public ERD2WModel(URL url)
protected ERD2WModel(EOKeyValueUnarchiver unarchiver)
public static ERD2WModel erDefaultModel()
public void clearD2WRuleCache()
public NSArray availableTasks()
public NSArray availablePageConfigurations()
protected void sortRules()
sortRules
in class com.webobjects.directtoweb.D2WModel
public void applicationWillDispatchRequest(NSNotification n)
public void applicationDidFinishLaunching(NSNotification n)
public void clearD2WRuleCache(NSNotification n)
public 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 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()
public void prepareDataStructures()
protected void invalidateCaches()
invalidateCaches
in class com.webobjects.directtoweb.D2WModel
public 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.D2WModel
protected void mergeFile(File modelFile)
mergeFile
in class com.webobjects.directtoweb.D2WModel
protected void uniqueRuleAssignments(NSArray rules)
protected com.webobjects.directtoweb.Assignment assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1, Vector v)
protected void uniqueQualifiers(NSArray rules)
public 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()
protected boolean writeEntry(ERXMultiKey key, Object value, ObjectOutputStream out) throws IOException
IOException
protected ERXMultiKey readEntry(Hashtable cache, ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected byte[] cacheToBytes(Hashtable cache)
protected Hashtable cacheFromBytes(byte[] bytes)
public void _diagnoseCache()
Copyright © 2002 – 2024 Project Wonder.