CVS update: sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple

From: cvs@openprivacy.org
Date: Tue Mar 13 2001 - 19:56:47 PST

  • Next message: cvs@openprivacy.org: "CVS update: sierra/src/java/org/openprivacy/sierra/reputation/talon/implementations"

    Date: Tuesday March 13, 19101 @ 19:56
    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/query/talon/implementations/simple

    -----------------------------------

    Update of /usr/local/cvs/public/sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple
    In directory giga:/tmp/cvs-serv669/src/java/org/openprivacy/sierra/query/talon/implementations/simple

    Modified Files:
            SimpleQueryEngine.java
    Log Message:
    not using identifier but typeref when trying to determine if this is a supported Payload

    *****************************************************************
    File: sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java

    CVSWEB Options: -------------------

    CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java?annotate=1.5

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java?rev=1.5&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/query/talon/implementations/simple/SimpleQueryEngine.java.diff?r1=1.5&r2=1.4

    -----------------------------------

    Index: sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java
    diff -u sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java:1.4 sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java:1.5
    --- sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java:1.4 Tue Mar 13 19:25:49 2001
    +++ sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple/SimpleQueryEngine.java Tue Mar 13 19:56:47 2001
    @@ -37,7 +37,7 @@
     /**
      * @see QueryManager
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
      */
     public class SimpleQueryEngine extends BaseComponent implements Component, QueryEngine {
     
    @@ -60,7 +60,7 @@
         /**
          * @see QueryEngine
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         public Result execute( Query query ) throws SierraException {
             return null;
    @@ -71,12 +71,10 @@
          * Add a reputation for indexing...
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         public void addReputation( Reputation reputation ) throws SierraException {
     
    - System.out.println( " FIXME: ( debug ): GOT REPUTATION!" );
    -
             //go over all payloads...
     
             if ( supports( reputation ) ) {
    @@ -133,7 +131,7 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         private void insertIntoPropertiesTable( DatabaseConnectionPool dcp, Payload payload )
             throws Exception {
    @@ -200,7 +198,9 @@
                     insert.commit();
     
                 } else {
    +
                     break;
    +
                 }
                 
                 
    @@ -212,7 +212,7 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         private void insertIntoIdentifiersTable( DatabaseConnectionPool dcp, Payload payload )
             throws Exception {
    @@ -246,7 +246,7 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         private void insertIntoReputationsTable( DatabaseConnectionPool dcp, Reputation reputation )
             throws Exception {
    @@ -280,7 +280,7 @@
         /**
          * @see QueryEngine
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         public boolean supports( Reputation reputation ) {
     
    @@ -304,22 +304,24 @@
         /**
          * @see QueryEngine
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         public boolean supports( Payload payload ) {
     
    - return this.supportedPayloads.contains( payload.getIdentifier().toString() );
    + return this.supportedPayloads.contains( payload.getTypeReference().toString() );
     
         }
     
         /**
          * @see QueryEngine
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: SimpleQueryEngine.java,v 1.4 2001/03/14 03:25:49 burton Exp $
    + * @version $Id: SimpleQueryEngine.java,v 1.5 2001/03/14 03:56:47 burton Exp $
          */
         public boolean supports( Query query ) {
    +
             //FIXME: for now support all queries.
             return true;
    +
         }
         
     }



    This archive was generated by hypermail 2b30 : Tue Mar 13 2001 - 19:57:19 PST