org.qi4j.entitystore.memory
Class MemoryMapEntityStoreMixin

java.lang.Object
  extended by org.qi4j.entitystore.memory.MemoryMapEntityStoreMixin
All Implemented Interfaces:
MapEntityStore, TestData

public class MemoryMapEntityStoreMixin
extends java.lang.Object
implements MapEntityStore, TestData

In-memory implementation of MapEntityStore.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.entitystore.map.MapEntityStore
MapEntityStore.JSONKeys, MapEntityStore.MapChanger, MapEntityStore.MapChanges, MapEntityStore.MapEntityStoreVisitor<ThrowableType extends java.lang.Throwable>
 
Constructor Summary
MemoryMapEntityStoreMixin()
           
 
Method Summary
 void applyChanges(MapEntityStore.MapChanges changes)
           
 boolean contains(EntityReference entityReference, EntityType entityType)
           
 java.lang.String exportData()
           
 java.io.Reader get(EntityReference entityReference)
           
 void importData(java.lang.String data)
           
<ThrowableType extends java.lang.Throwable>
void
visitMap(MapEntityStore.MapEntityStoreVisitor<ThrowableType> visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryMapEntityStoreMixin

public MemoryMapEntityStoreMixin()
Method Detail

contains

public boolean contains(EntityReference entityReference,
                        EntityType entityType)
                 throws EntityStoreException
Throws:
EntityStoreException

get

public java.io.Reader get(EntityReference entityReference)
                   throws EntityStoreException
Specified by:
get in interface MapEntityStore
Throws:
EntityStoreException

applyChanges

public void applyChanges(MapEntityStore.MapChanges changes)
                  throws java.io.IOException
Specified by:
applyChanges in interface MapEntityStore
Throws:
java.io.IOException

visitMap

public <ThrowableType extends java.lang.Throwable> void visitMap(MapEntityStore.MapEntityStoreVisitor<ThrowableType> visitor)
              throws ThrowableType extends java.lang.Throwable
Specified by:
visitMap in interface MapEntityStore
Throws:
ThrowableType extends java.lang.Throwable

exportData

public java.lang.String exportData()
Specified by:
exportData in interface TestData

importData

public void importData(java.lang.String data)
                throws java.io.IOException
Specified by:
importData in interface TestData
Throws:
java.io.IOException


Copyright © 2007-2010. All Rights Reserved.