org.databene.benerator.storage
Class AbstractStorageSystem

java.lang.Object
  extended by org.databene.benerator.storage.AbstractStorageSystem
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, StorageSystem, DescriptorProvider
Direct Known Subclasses:
DBSystem, MemStore

public abstract class AbstractStorageSystem
extends java.lang.Object
implements StorageSystem

Abstract implementation of the StorageSystem interface. When writing a custom implementation of SystemStorage interface, inherit from this class for assuring future compatibility. If the interface would change in future versions, the future version of this class will try to compensate.

Created: 27.01.2008 07:25:39

Since:
0.4.0
Author:
Volker Bergmann

Field Summary
protected  DataModel dataModel
           
 
Constructor Summary
AbstractStorageSystem()
           
 
Method Summary
 java.lang.Object execute(java.lang.String command)
          Executes a command on the storage system
 DataModel getDataModel()
           
 void setDataModel(DataModel dataModel)
           
 Consumer updater()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.StorageSystem
close, flush, getId, query, queryEntities, queryEntityIds, store, update
 
Methods inherited from interface org.databene.model.data.DescriptorProvider
getTypeDescriptor, getTypeDescriptors
 

Field Detail

dataModel

protected DataModel dataModel
Constructor Detail

AbstractStorageSystem

public AbstractStorageSystem()
Method Detail

getDataModel

public DataModel getDataModel()
Specified by:
getDataModel in interface DescriptorProvider

setDataModel

public void setDataModel(DataModel dataModel)
Specified by:
setDataModel in interface DescriptorProvider

execute

public java.lang.Object execute(java.lang.String command)
Description copied from interface: StorageSystem
Executes a command on the storage system

Specified by:
execute in interface StorageSystem

updater

public Consumer updater()


Copyright © 2013. All Rights Reserved.