|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.directtoweb.D2WModel er.directtoweb.ERD2WModel
Overhaul of the caching system.
Nested Class Summary | |
static class |
ERD2WModel._PatchedRule
Rule class that works around two problems: when you have an assignment class that is not present in the classpath then the model will not load, making for very strange errors. |
Nested classes inherited from class 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 ERXLogger |
log
logging support |
static String |
ModelWillReset
|
protected static String |
RELATIONSHIP_PREFIX
|
static ERXLogger |
ruleDecodeLog
logs rules being decoded |
static ERXLogger |
ruleTraceEnabledLog
main category for enabling or disabling tracing of rules |
protected int |
totalQualifiers
|
protected int |
uniquedQualifiers
|
static String |
WillSortRules
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ERXLogger log
public static final ERXLogger ruleDecodeLog
public static final ERXLogger 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)
protected ERD2WModel(EOKeyValueUnarchiver unarchiver)
Method Detail |
public static ERD2WModel erDefaultModel()
protected void sortRules()
public NSArray rules()
public void addRule(Rule rule)
public void removeRule(Rule rule)
protected String descriptionForRuleSet(NSArray set)
protected String descriptionForRule(Rule r)
public void addRules(NSArray rules)
protected Object fireRuleForKeyPathInContext(String keyPath, D2WContext context)
public void dumpCache(String fileName)
public void restoreCache(String fileName)
public NSArray canidateRuleSetForRHSInContext(String rhs, D2WContext context)
protected Object fireSystemRuleForKeyPathInContext(String keyPath, D2WContext context)
public void prepareDataStructures()
protected void invalidateCaches()
public void resetModel()
protected void setCurrentFile(File currentFile)
protected File currentFile()
protected static NSDictionary dictionaryFromFile(File file)
protected void mergePathURL(URL modelURL)
protected void mergeFile(File modelFile)
protected void uniqueRuleAssignments(NSArray rules)
protected Assignment assignmentContainedInVector(Assignment a1, Vector v)
protected void uniqueQualifiers(NSArray rules)
public Vector modelFilesInBundles()
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
ClassNotFoundException
protected byte[] cacheToBytes(Hashtable cache)
protected Hashtable cacheFromBytes(byte[] bytes)
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |