From: cvs@openprivacy.orgCVS update: sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple
Date: Sunday March 11, 19101 @ 15:54
Author: burton
CVSWEB Options: -------------------
Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi
View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple
-----------------------------------
Update of /usr/local/cvs/public/sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple
In directory giga:/tmp/cvs-serv30452/src/java/org/openprivacy/sierra/store/talon/implementations/simple
Modified Files:
SimpleStoreEngine.java
Log Message:
now using dedicated DatabaseConnectionPool component
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java?annotate=1.3
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java?rev=1.3&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java.diff?r1=1.3&r2=1.2
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java
diff -u sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java:1.2 sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java:1.3
--- sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java:1.2 Sun Mar 11 01:50:12 2001
+++ sierra/src/java/org/openprivacy/sierra/store/talon/implementations/simple/SimpleStoreEngine.java Sun Mar 11 15:54:32 2001
@@ -1,3 +1,4 @@
+
/*
* Copyright 2001 OpenPrivacy.org. All rights reserved.
*
@@ -20,6 +21,7 @@
import java.io.*;
import java.net.*;
import java.security.*;
+import java.sql.*;
import java.util.*;
import org.openprivacy.sierra.query.talon.interfaces.*;
import org.openprivacy.sierra.rce.*;
@@ -32,45 +34,35 @@
import talon.util.net.*;
/**
+ * <p>
* Implements a SimpleStore which doesn't have any optimizations but will
* function for testing purposes.
- *
+ *
+ * <p>
* Sun Feb 18 13:36:28 2001 (burton@relativity.yi.org): initial implementation
* has no data persistence. It might be logical in the future to use a simple
* data persistence mechanism under this object so that it can be restored on
* sierra restart.
*
+ * dd
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: SimpleStoreEngine.java,v 1.2 2001/03/11 09:50:12 burton Exp $
+ * @version $Id: SimpleStoreEngine.java,v 1.3 2001/03/11 23:54:32 burton Exp $
*/
public class SimpleStoreEngine extends BaseComponent implements Component, StoreEngine {
-
- public static final String[] REQUIRED_PROPERTIES = { "jdbc_url" };
-
- public static final String JDBC_URL = "jdbc_url";
-
private Hashtable store = new Hashtable();
-
public void init() throws TalonException {
-
- this.getComponentHandle().getInitProperties().require( REQUIRED_PROPERTIES );
- PropertyManager pm = getComponentHandle().getInitProperties();
+ //need to get the database connection pool.
+ ComponentFactory.getInstance( SierraResources.DATABASE_CONNNECTION_POOL );
- pm.dump();
-
- String url = pm.getString( JDBC_URL );
-
- this.getLogger().message( "Connecting... to: " + url );
-
}
/**
* @see Store
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: SimpleStoreEngine.java,v 1.2 2001/03/11 09:50:12 burton Exp $
+ * @version $Id: SimpleStoreEngine.java,v 1.3 2001/03/11 23:54:32 burton Exp $
*/
public Reputation get( URI url ) {
@@ -82,7 +74,7 @@
/**
* @see Store
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: SimpleStoreEngine.java,v 1.2 2001/03/11 09:50:12 burton Exp $
+ * @version $Id: SimpleStoreEngine.java,v 1.3 2001/03/11 23:54:32 burton Exp $
*/
public Reputation get( SignatureValue sv ) {
@@ -93,7 +85,7 @@
/**
* @see Store
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: SimpleStoreEngine.java,v 1.2 2001/03/11 09:50:12 burton Exp $
+ * @version $Id: SimpleStoreEngine.java,v 1.3 2001/03/11 23:54:32 burton Exp $
*/
public void put( Reputation reputation ) {
@@ -106,7 +98,7 @@
/**
* @see Store
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: SimpleStoreEngine.java,v 1.2 2001/03/11 09:50:12 burton Exp $
+ * @version $Id: SimpleStoreEngine.java,v 1.3 2001/03/11 23:54:32 burton Exp $
*/
public void populate( RCE rce ) {
@@ -117,10 +109,10 @@
/**
* @see StoreEngine
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: SimpleStoreEngine.java,v 1.2 2001/03/11 09:50:12 burton Exp $
+ * @version $Id: SimpleStoreEngine.java,v 1.3 2001/03/11 23:54:32 burton Exp $
*/
public QueryManager getQueryManager() throws SierraException {
- throw new SierraException("no query manager defined here." );
+ throw new SierraException( "no query manager defined here." );
}
}
This archive was generated by hypermail 2b30 : Sun Mar 11 2001 - 15:56:34 PST