biz.hammurapi.legacy.persistence
Class FileStorage

java.lang.Object
  extended by biz.hammurapi.legacy.persistence.FileStorage
All Implemented Interfaces:
Storage

public class FileStorage
extends java.lang.Object
implements Storage

Version:
$Revision: 1.1 $
Author:
Pavel Vlasov

Constructor Summary
FileStorage(java.io.File storageDir)
           
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Retrieves object from storage
 java.lang.String put(java.lang.Object o)
          Stores object to storage and returns key.
 void remove(java.lang.String key)
          Removes object from storage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStorage

public FileStorage(java.io.File storageDir)
Method Detail

put

public java.lang.String put(java.lang.Object o)
                     throws PersistenceException
Description copied from interface: Storage
Stores object to storage and returns key.

Specified by:
put in interface Storage
Returns:
key. If key is null then storage could not store the object.
Throws:
PersistenceException

get

public java.lang.Object get(java.lang.String key)
                     throws PersistenceException
Description copied from interface: Storage
Retrieves object from storage

Specified by:
get in interface Storage
Returns:
Throws:
PersistenceException

remove

public void remove(java.lang.String key)
            throws PersistenceException
Description copied from interface: Storage
Removes object from storage

Specified by:
remove in interface Storage
Throws:
PersistenceException


Copyright © 2003 Hammurapi Group. All Rights Reserved.