public abstract class Importer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Integer> |
accessibilityTypes |
protected Map<String,Integer> |
agecategoryTypes |
protected Map<String,Integer> |
allLocationTypes |
protected Map<Integer,Integer> |
assetTypeToLocationCategory |
protected org.apache.commons.dbutils.ResultSetHandler<Asset> |
assHandler |
protected org.apache.commons.dbutils.ResultSetHandler<List<Asset>> |
assListHandler |
protected Map<Integer,Integer> |
equipmenttypePAtoPM |
protected Map<Integer,Integer> |
equipmenttypePMtoPA |
protected Map<String,Integer> |
equipmentTypes |
protected Map<String,Integer> |
facilityTypes |
protected org.apache.commons.dbutils.ResultSetHandler<Location> |
locationHandler |
protected Map<String,Integer> |
parkingTypes |
String |
postfix |
protected org.apache.commons.dbutils.ResultSetHandler<Project> |
projectHandler |
protected org.apache.commons.dbutils.ResultSetHandler<Location> locationHandler
protected org.apache.commons.dbutils.ResultSetHandler<Asset> assHandler
protected final org.apache.commons.dbutils.ResultSetHandler<Project> projectHandler
public String postfix
public Importer(Project project)
public int saveLocation(Location location, ImportReport report, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveLocationAgeCategory(Location location, List<Integer> agecategories, boolean removeBeforeAdding) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveLocationTypes(Set<Integer> types, Integer locationId) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected boolean locationExists(Location location) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected Integer getLocationId(Location location) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveFacilities(Location location, Integer facilityId) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveAccessibility(Integer locationId, Integer id) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic int saveAsset(Asset asset, ImportReport report) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveAssetsAgeCategories(Asset asset, Integer assetId) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected boolean assetExists(Asset asset)
protected Project getProject(String gemeente, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic Project getProject(Integer projectID, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveImagesAndWords(List<Map<String,Object>> images, Integer assetId, Integer locationId, String table, boolean removeBeforeAdding, Location l) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic String getPostfix()
public String getResponse(String username, String password, String apiurl, ImportReport report)
public Project getProject()
public void setProject(Project project)
Copyright © 2019. All rights reserved.