public class SQLErrorStorage extends Object
| Constructor and Description |
|---|
SQLErrorStorage(Connection connection,
String tablePrefix,
boolean createTables) |
| Modifier and Type | Method and Description |
|---|---|
void |
commitAndClose()
This executes any remaining inserts, commits the transaction, and closes the connection permanently.
|
int |
getErrorCount()
Commits any outstanding error inserts and returns the error count via a SQL query.
|
void |
storeError(NewGTFSError error) |
void |
storeErrors(Set<NewGTFSError> errors) |
public SQLErrorStorage(Connection connection, String tablePrefix, boolean createTables) throws InvalidNamespaceException
InvalidNamespaceExceptionpublic void storeError(NewGTFSError error)
public void storeErrors(Set<NewGTFSError> errors)
public int getErrorCount()
public void commitAndClose()
Copyright © 2019. All rights reserved.