org.codehaus.wadi.core.store
Class DiscStore

java.lang.Object
  extended by org.codehaus.wadi.core.store.DiscStore
All Implemented Interfaces:
Store

public class DiscStore
extends java.lang.Object
implements Store

Version:
$Revision: 2293 $
Author:
Jules Gosnell

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.codehaus.wadi.core.store.Store
Store.Putter
 
Field Summary
protected  java.io.File _dir
           
protected  boolean _reusingStore
           
protected  Streamer _streamer
           
 
Constructor Summary
DiscStore(Streamer streamer, java.io.File dir, boolean reusingStore, boolean accessOnLoad)
           
 
Method Summary
 void clean()
           
 Motable create()
           
 void delete(Motable motable)
           
 boolean getReusingStore()
           
 void insert(Motable motable)
           
 void load(Store.Putter putter)
           
 byte[] loadBody(Motable motable)
           
 void update(Motable motable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_streamer

protected final Streamer _streamer

_dir

protected final java.io.File _dir

_reusingStore

protected final boolean _reusingStore
Constructor Detail

DiscStore

public DiscStore(Streamer streamer,
                 java.io.File dir,
                 boolean reusingStore,
                 boolean accessOnLoad)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

clean

public void clean()
Specified by:
clean in interface Store

load

public void load(Store.Putter putter)
Specified by:
load in interface Store

create

public Motable create()
Specified by:
create in interface Store

getReusingStore

public boolean getReusingStore()

delete

public void delete(Motable motable)
Specified by:
delete in interface Store

insert

public void insert(Motable motable)
            throws java.lang.Exception
Specified by:
insert in interface Store
Throws:
java.lang.Exception

loadBody

public byte[] loadBody(Motable motable)
                throws java.lang.Exception
Specified by:
loadBody in interface Store
Throws:
java.lang.Exception

update

public void update(Motable motable)
            throws java.lang.Exception
Specified by:
update in interface Store
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.