public class PlayadvisorExporter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,List<String>> |
locationTypes |
protected org.apache.commons.dbutils.ResultSetHandler<Project> |
projectHandler |
| Constructor and Description |
|---|
PlayadvisorExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.json.JSONObject |
createLocationJSON(Location loc,
Connection con,
Project p,
HashMap<Integer,org.json.JSONArray> imgsPerLoc) |
void |
export(List<Location> locations,
Connection con,
Project job) |
protected Project |
getProject(Integer projectID,
Connection con) |
String |
pushLocation(org.json.JSONObject location,
Integer id,
Project job) |
String |
pushLocation(Location loc,
Connection con,
Project project,
HashMap<Integer,org.json.JSONArray> imgsPerLoc) |
String |
pushLocations(List<String> pm_guids,
Project project) |
protected void |
retrieveCategories(Integer id,
org.json.JSONObject location,
Connection con) |
protected org.json.JSONArray |
retrieveImages(Integer id,
Connection con,
Project project) |
void |
updateId(Location loc,
Connection con) |
void |
updateIDs(List<Location> locs,
Connection con) |
protected final org.apache.commons.dbutils.ResultSetHandler<Project> projectHandler
public void export(List<Location> locations, Connection con, Project job)
public String pushLocation(Location loc, Connection con, Project project, HashMap<Integer,org.json.JSONArray> imgsPerLoc) throws IOException, SQLException, NamingException
IOExceptionSQLExceptionNamingExceptionpublic String pushLocation(org.json.JSONObject location, Integer id, Project job) throws IOException
IOExceptionpublic void updateIDs(List<Location> locs, Connection con)
public void updateId(Location loc, Connection con)
protected org.json.JSONObject createLocationJSON(Location loc, Connection con, Project p, HashMap<Integer,org.json.JSONArray> imgsPerLoc) throws SQLException, NamingException, IOException
SQLExceptionNamingExceptionIOExceptionprotected org.json.JSONArray retrieveImages(Integer id, Connection con, Project project) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveCategories(Integer id, org.json.JSONObject location, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected Project getProject(Integer projectID, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionCopyright © 2018. All rights reserved.