Class FindEntitiesToDetermineLocationTask
java.lang.Object
ch.tocco.nice2.optional.geolocation.impl.batch.FindEntitiesToDetermineLocationTask
- All Implemented Interfaces:
OptionalTask<GeoLocationEntityContribution,
,QueryBuilder> PersistTask<GeoLocationEntityContribution,
QueryBuilder>
public class FindEntitiesToDetermineLocationTask
extends Object
implements OptionalTask<GeoLocationEntityContribution,QueryBuilder>
Returns a query to find all entities with
determine_geolocation
set to true
and Geo_location_status
is not set or is error
or timeout
.
Entities with geo location status unknown
aren't taken into account intentionally,
since there might be a lot of them. There may be addresses which are unknown to the
geo location service → if they become known and should be determined again, you have
to clear the status unknown
by hand. Same with status undetermined
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoRun
(GeoLocationEntityContribution contribution, CommandContext commandContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
FindEntitiesToDetermineLocationTask
public FindEntitiesToDetermineLocationTask()
-
-
Method Details
-
doRun
public QueryBuilder doRun(GeoLocationEntityContribution contribution, CommandContext commandContext) throws Exception - Specified by:
doRun
in interfaceOptionalTask<GeoLocationEntityContribution,
QueryBuilder> - Throws:
Exception
-