
public class Processor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Processor.STATUS
verwerkingsstatus
|
| Constructor and Description |
|---|
Processor(DataSource ds) |
| Modifier and Type | Method and Description |
|---|---|
List<TopNLEntity> |
convert(List listOfJaxbObjects,
TopNLType type) |
Processor.STATUS |
getStatus()
geeft de verwerkingsstatus.
|
void |
importIntoDb(URL in,
TopNLType type) |
List |
parse(URL in) |
void |
resetStatus() |
void |
save(List<TopNLEntity> entities,
TopNLType type) |
void |
save(TopNLEntity entity,
TopNLType type) |
protected static final Log log
public Processor(DataSource ds) throws JAXBException, SQLException
JAXBExceptionSQLExceptionpublic void importIntoDb(URL in, TopNLType type) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic List parse(URL in) throws JAXBException, IOException
JAXBExceptionIOExceptionpublic List<TopNLEntity> convert(List listOfJaxbObjects, TopNLType type) throws IOException, SAXException, ParserConfigurationException, TransformerException, ClassCastException
ClassCastException - Als er een onverwacht type geometrie in de
data zit, bijvoorbeeld een punt ipv een lijnIOExceptionSAXExceptionParserConfigurationExceptionTransformerExceptionpublic void save(TopNLEntity entity, TopNLType type) throws org.locationtech.jts.io.ParseException, SQLException
org.locationtech.jts.io.ParseExceptionSQLExceptionpublic void save(List<TopNLEntity> entities, TopNLType type) throws org.locationtech.jts.io.ParseException, SQLException
org.locationtech.jts.io.ParseExceptionSQLExceptionpublic Processor.STATUS getStatus()
public void resetStatus()
Copyright © 2014–2020 B3Partners B.V.. All rights reserved.