|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.gcs.db.component.DB2Pool | +--com.ibm.gcs.db.component.DB2HiddenPool
DB2HiddenPool represents all the URLs in the database which have not been and should not be crawled. These are the URL records that satisfy the following SQL query:
SELECT * FROM urlpoolstable WHERE urlpoolstable.state_id=0 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 is in the pool. |
java.lang.String |
getSQLCount()
Return the SQL SELECT COUNT(*) statement. |
java.lang.String |
getSQLSelect()
Return the SQL SELECT statement. |
void |
insert(DB2URLContainer urlC)
Update the state information of the java URL object to reflect a URL in the DB2HiddenPool 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.DB2Pool |
getURLContainers, num, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean contains(DB2URLContainer urlC, Transaction t) throws TransactionException
Returns true if the URLContainer has state_id=0 and hide=1, false otherwise.
contains
in class DB2Pool
urlC
- The DB2URLContainer to check.t
- The transaction object for DB2 access.TransactionException
- on failed SQL
execution.public void insert(DB2URLContainer urlC)
Sets state_id=0 and hide=1.
insert
in class DB2Pool
urlC
- The DB2URLContainer to check.public java.lang.String getSQLSelect()
SELECT * FROM urlpoolstable WHERE state_id=0 AND hide=1
getSQLSelect
in class DB2Pool
public java.lang.String getSQLCount()
SELECT COUNT(*) FROM urlpoolstable WHERE state_id=0 AND hide=1
getSQLCount
in class DB2Pool
public static void main(java.lang.String[] args)
|
EIP Web Crawler APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |