xsmeral.semnet.crawler
Interface URLManager.WhereClause

All Superinterfaces:
URLManager.LimitClause, URLManager.OrderClause, URLManager.Query
All Known Subinterfaces:
URLManager.QueryBuilder
All Known Implementing Classes:
URLManager.QueryBuilderImpl
Enclosing class:
URLManager

public static interface URLManager.WhereClause
extends URLManager.OrderClause

The WHERE clause of SQL statement.


Method Summary
 URLManager.WhereClause current()
          Appends condition for URLs that need updating (where [current_time]-update_freq > last_visited).
 URLManager.WhereClause entity(Boolean entity)
          Appends condition for URLs that represent entities/sources.
 URLManager.WhereClause forHost(Integer hostId)
          Appends condition for the given host.
 URLManager.WhereClause forPattern(String pattern)
          Appends condition for given pattern.
 URLManager.WhereClause notLocked()
          Appends condition for URLs not locked.
 URLManager.WhereClause working(Boolean working)
          Appends condition for URLs that are (not) working.
 
Methods inherited from interface xsmeral.semnet.crawler.URLManager.OrderClause
orderBy, sourceFirst
 
Methods inherited from interface xsmeral.semnet.crawler.URLManager.LimitClause
limit
 
Methods inherited from interface xsmeral.semnet.crawler.URLManager.Query
getQuery, getStatement
 

Method Detail

notLocked

URLManager.WhereClause notLocked()
Appends condition for URLs not locked.


current

URLManager.WhereClause current()
Appends condition for URLs that need updating (where [current_time]-update_freq > last_visited).


forHost

URLManager.WhereClause forHost(Integer hostId)
Appends condition for the given host.

Parameters:
hostId - If null, a wildcard (?) is used

forPattern

URLManager.WhereClause forPattern(String pattern)
Appends condition for given pattern.

Parameters:
pattern - If null, a wildcard (?) is used

entity

URLManager.WhereClause entity(Boolean entity)
Appends condition for URLs that represent entities/sources.

Parameters:
entity - If null, a wildcard (?) is used

working

URLManager.WhereClause working(Boolean working)
Appends condition for URLs that are (not) working.

Parameters:
working - If null, a wildcard (?) is used