biz.hammurapi.sql
Class JdbcStorage

java.lang.Object
  extended by biz.hammurapi.sql.JdbcStorage
All Implemented Interfaces:
Storage

public class JdbcStorage
extends java.lang.Object
implements Storage

Version:
$Revision: 1.1 $
Author:
Pavel Vlasov

Constructor Summary
JdbcStorage(SQLProcessor processor)
           
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Retrieves object from storage
 SQLProcessor getProcessor()
           
 java.lang.String put(java.lang.Object o)
          Key format should be: {table}:{key field}:{key value}:{projector}
 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

JdbcStorage

public JdbcStorage(SQLProcessor processor)
Method Detail

getProcessor

public SQLProcessor getProcessor()

put

public java.lang.String put(java.lang.Object o)
                     throws PersistenceException
Key format should be: {table}:{key field}:{key value}:{projector}

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.