Enterprise Information Portal APIs

com.ibm.gcs.db.component
Class DB2HiddenQueue

java.lang.Object
  |
  +--com.ibm.gcs.db.component.DB2Pool
        |
        +--com.ibm.gcs.db.component.DB2Queue
              |
              +--com.ibm.gcs.db.component.DB2HiddenQueue

public class DB2HiddenQueue
extends DB2Queue

DB2HiddenQueue represents the URLs in the database which must be crawled but have their hide flag set to true. These are the URL records that satisfy the following SQL query:

     SELECT * 
     FROM urlpoolstable
     WHERE urlpoolstable.state_id=1 AND urlpoolstable.hide=1


Fields inherited from class com.ibm.gcs.db.component.DB2Pool
debug
 
Method Summary
 boolean contains(DB2URLContainer urlC, Transaction t)
          Checks to see if the specified URL must be crawled.
 void insert(DB2URLContainer urlC)
          updates the state information of the java URL object to reflect a URL in this DB2HiddenQueue but does not save this information in the database.
static void main(java.lang.String[] args)
          Simple test.
 
Methods inherited from class com.ibm.gcs.db.component.DB2Queue
getSQLCount, getSQLSelect, setOrderBy
 
Methods inherited from class com.ibm.gcs.db.component.DB2Pool
getURLContainers, num, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contains

public boolean contains(DB2URLContainer urlC,
                        Transaction t)
                 throws TransactionException
Checks to see if the specified URL must be crawled.

Returns true if state_id=1 and hide=1.

Overrides:
contains in class DB2Queue
Parameters:
urlC - The DB2URLContainer to check.
t - The transaction object for DB2 access.
Returns:
true if the URL container must be crawled, false otherwise.
Throws:
TransactionException - on failed SQL execution.

insert

public void insert(DB2URLContainer urlC)
updates the state information of the java URL object to reflect a URL in this DB2HiddenQueue but does not save this information in the database. (The URL object must be saved explicitly.)

Sets state_id=1 and hide=1.

Overrides:
insert in class DB2Queue
Parameters:
urlC - The DB2URLContainer to check.

main

public static void main(java.lang.String[] args)
Simple test.

EIP Web Crawler APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.