|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxsmeral.semnet.crawler.URLManager.QueryBuilderImpl
public class URLManager.QueryBuilderImpl
Implementation of QueryBuilder for URL entries.
Constructor Summary | |
---|---|
URLManager.QueryBuilderImpl()
|
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.Query |
getQuery()
Constructs the query. |
PreparedStatement |
getStatement()
Returns the constructed SQL prepared statement. |
URLManager.Query |
limit(Integer count)
Appends LIMIT with the given argument. |
URLManager.QueryBuilder |
locked()
Appends condition for locked URLs. |
URLManager.WhereClause |
notLocked()
Appends condition for URLs not locked. |
URLManager.LimitClause |
orderBy(String order)
Appends ORDER BY [order] . |
URLManager.LimitClause |
sourceFirst()
Orders by entity field, so that source URLs are returned first. |
URLManager.WhereClause |
working(Boolean working)
Appends condition for URLs that are (not) working. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLManager.QueryBuilderImpl()
Method Detail |
---|
public URLManager.QueryBuilder locked()
URLManager.QueryBuilder
locked
in interface URLManager.QueryBuilder
public URLManager.WhereClause notLocked()
URLManager.WhereClause
notLocked
in interface URLManager.WhereClause
public URLManager.WhereClause current()
URLManager.WhereClause
current
in interface URLManager.WhereClause
public URLManager.WhereClause entity(Boolean entity)
URLManager.WhereClause
entity
in interface URLManager.WhereClause
entity
- If null, a wildcard (?) is usedpublic URLManager.WhereClause forHost(Integer hostId)
URLManager.WhereClause
forHost
in interface URLManager.WhereClause
hostId
- If null, a wildcard (?) is usedpublic URLManager.WhereClause forPattern(String pattern)
URLManager.WhereClause
forPattern
in interface URLManager.WhereClause
pattern
- If null, a wildcard (?) is usedpublic URLManager.WhereClause working(Boolean working)
URLManager.WhereClause
working
in interface URLManager.WhereClause
working
- If null, a wildcard (?) is usedpublic URLManager.LimitClause orderBy(String order)
URLManager.OrderClause
ORDER BY [order]
.
orderBy
in interface URLManager.OrderClause
order
- The full SQL-equivalent argument to ORDER BY
clause.
If null, a wildcard (?) is used.public URLManager.LimitClause sourceFirst()
URLManager.OrderClause
entity
field, so that source URLs are returned first.
sourceFirst
in interface URLManager.OrderClause
public URLManager.Query limit(Integer count)
URLManager.LimitClause
LIMIT
with the given argument.
limit
in interface URLManager.LimitClause
count
- If null, a wildcard (?) is used.public URLManager.Query getQuery() throws ConfigurationException
URLManager.Query
getStatement()
.
getQuery
in interface URLManager.Query
ConfigurationException
public PreparedStatement getStatement()
URLManager.Query
getQuery()
must be called before calling this method.
getStatement
in interface URLManager.Query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |