Project Wonder 5.0

er.memoryadaptor
Class ERMemoryEntityStore

java.lang.Object
  extended by er.memoryadaptor.EREntityStore
      extended by er.memoryadaptor.ERMemoryEntityStore

public class ERMemoryEntityStore
extends EREntityStore

ERMemoryEntityStore is the actual datastore implementation for a single "table" in ERMemoryAdaptor. It's about as simple as you can get -- each row of the "database" is represented by a dictionary that maps attribute names to values.

Author:
mschrag, q

Nested Class Summary
 
Nested classes/interfaces inherited from class er.memoryadaptor.EREntityStore
EREntityStore.JoinEntityStore
 
Field Summary
protected  com.webobjects.foundation.NSMutableArray<com.webobjects.foundation.NSMutableDictionary<java.lang.String,java.lang.Object>> _rows
           
 
Constructor Summary
ERMemoryEntityStore()
           
 
Method Summary
protected  void _insertRow(com.webobjects.foundation.NSMutableDictionary<java.lang.String,java.lang.Object> row, com.webobjects.eoaccess.EOEntity entity)
           
 void clear()
           
 void commitFromTransactionStore(EREntityStore store)
           
 java.util.Iterator<com.webobjects.foundation.NSMutableDictionary<java.lang.String,java.lang.Object>> iterator()
           
 ERMemoryEntityStore transactionStore()
           
 
Methods inherited from class er.memoryadaptor.EREntityStore
deleteRowsDescribedByQualifier, fetch, insertRow, nextSequence, rowFromStoredValues, updateValuesInRowsDescribedByQualifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rows

protected com.webobjects.foundation.NSMutableArray<com.webobjects.foundation.NSMutableDictionary<java.lang.String,java.lang.Object>> _rows
Constructor Detail

ERMemoryEntityStore

public ERMemoryEntityStore()
Method Detail

clear

public void clear()
Overrides:
clear in class EREntityStore

transactionStore

public ERMemoryEntityStore transactionStore()
Overrides:
transactionStore in class EREntityStore

commitFromTransactionStore

public void commitFromTransactionStore(EREntityStore store)
Overrides:
commitFromTransactionStore in class EREntityStore

iterator

public java.util.Iterator<com.webobjects.foundation.NSMutableDictionary<java.lang.String,java.lang.Object>> iterator()
Specified by:
iterator in class EREntityStore

_insertRow

protected void _insertRow(com.webobjects.foundation.NSMutableDictionary<java.lang.String,java.lang.Object> row,
                          com.webobjects.eoaccess.EOEntity entity)
Specified by:
_insertRow in class EREntityStore

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.