org.osjava.oscube.service.store
Class JdbcStore

java.lang.Object
  extended byorg.osjava.oscube.service.store.JdbcStore
All Implemented Interfaces:
Store
Direct Known Subclasses:
CallableJdbcStore

public class JdbcStore
extends Object
implements Store


Constructor Summary
JdbcStore()
           
 
Method Summary
protected  int executeSql(Connection conn, String sql, Object[] row, org.apache.commons.dbutils.QueryRunner queryRunner)
           
 boolean exists(Header header, com.generationjava.config.Config cfg, Session session)
          Does this Header for a possible Result exist already? This is designed to try and stop parsing of stuff already parsed, though it's not implemented yet.
 void store(Result result, com.generationjava.config.Config cfg, Session session)
          Place the Result in a store of some kind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcStore

public JdbcStore()
Method Detail

store

public void store(Result result,
                  com.generationjava.config.Config cfg,
                  Session session)
           throws StoringException
Description copied from interface: Store
Place the Result in a store of some kind. This store does not have to be persistent, it could be memory-based or the screen.

Specified by:
store in interface Store
Throws:
StoringException

executeSql

protected int executeSql(Connection conn,
                         String sql,
                         Object[] row,
                         org.apache.commons.dbutils.QueryRunner queryRunner)
                  throws SQLException
Throws:
SQLException

exists

public boolean exists(Header header,
                      com.generationjava.config.Config cfg,
                      Session session)
               throws StoringException
Description copied from interface: Store
Does this Header for a possible Result exist already? This is designed to try and stop parsing of stuff already parsed, though it's not implemented yet.

Specified by:
exists in interface Store
Throws:
StoringException


Copyright © 2003-2005 OSJava. All Rights Reserved.