org.vrspace.neurogrid
Class TextFileStore

java.lang.Object
  extended byorg.vrspace.neurogrid.TextFileStore
All Implemented Interfaces:
Store

public class TextFileStore
extends java.lang.Object
implements Store


Field Summary
protected  DBAdapter db
           
 java.lang.String dirPrefix
           
 
Constructor Summary
TextFileStore()
           
 
Method Summary
 long count()
           
 void delete(NGObject obj)
           
 void init(DBAdapter db, LoadListener listener)
           
 NGObject retrieve(java.lang.Class what, long id)
           
 void store(NGObject obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dirPrefix

public java.lang.String dirPrefix

db

protected DBAdapter db
Constructor Detail

TextFileStore

public TextFileStore()
Method Detail

store

public void store(NGObject obj)
Specified by:
store in interface Store

retrieve

public NGObject retrieve(java.lang.Class what,
                         long id)
Specified by:
retrieve in interface Store

init

public void init(DBAdapter db,
                 LoadListener listener)
Specified by:
init in interface Store

delete

public void delete(NGObject obj)
            throws java.lang.Exception
Specified by:
delete in interface Store
Throws:
java.lang.Exception

count

public long count()
           throws java.lang.Exception
Specified by:
count in interface Store
Throws:
java.lang.Exception