public abstract class Importer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Integer> |
accessibilityTypes |
protected Map<String,Integer> |
agecategoryTypes |
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,Map<String,Integer>> |
locationTypes |
protected Map<String,Integer> |
parkingTypes |
String |
postfix |
protected org.apache.commons.dbutils.ResultSetHandler<Location> locationHandler
protected org.apache.commons.dbutils.ResultSetHandler<Asset> assHandler
public String postfix
public Importer(String project)
public int saveLocation(Location location, ImportReport report) 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
NamingExceptionSQLExceptionprotected Integer getLocationId(Comment comment) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveFacilities(Location location, Integer facilityId) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveAccessibility(Integer locationId, Integer id) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveAsset(Asset asset, ImportReport report) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void saveAssetsAgeCategories(Asset asset, Integer assetId) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected boolean assetExists(Asset asset)
public void saveComment(Comment comment, ImportReport report) 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 String getProject()
public void setProject(String project)
Copyright © 2018. All rights reserved.