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 |
|---|---|
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,
String 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 |
retrieveAccessibilities(Integer id,
org.json.JSONObject obj,
Connection con) |
protected void |
retrieveAgeCategories(Integer id,
org.json.JSONObject obj,
Connection con) |
protected void |
retrieveCategories(Integer id,
org.json.JSONObject location,
Connection con) |
protected void |
retrieveFacilities(Integer id,
org.json.JSONObject obj,
Connection con) |
protected org.json.JSONArray |
retrieveImages(Integer id,
Connection con,
Project project) |
protected void |
retrieveParking(Integer id,
org.json.JSONObject obj,
Connection con) |
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, String id, Project job) throws IOException
IOExceptionpublic void updateIDs(List<Location> locs, Connection con)
public void updateId(Location loc, Connection con)
public org.json.JSONObject createLocationJSON(Location loc, Connection con, Project p, HashMap<Integer,org.json.JSONArray> imgsPerLoc) throws SQLException, NamingException, IOException
SQLExceptionNamingExceptionIOExceptionprotected void retrieveParking(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveFacilities(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveAccessibilities(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveAgeCategories(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected 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.