Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.vrspace.neurogrid
Class TextFileStore  view TextFileStore download TextFileStore.java

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)
           
private  java.lang.String fileName(java.lang.Class cls, long id)
           
 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

fileName

private java.lang.String fileName(java.lang.Class cls,
                                  long id)

delete

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

count

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