com.conveyal.gtfs.loader.TableWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtfs-lib Show documentation
Show all versions of gtfs-lib Show documentation
A library to load and index GTFS feeds of arbitrary size using disk-backed storage
package com.conveyal.gtfs.loader;
import com.conveyal.gtfs.model.Entity;
import java.io.IOException;
import java.sql.SQLException;
/**
* This is an interface for classes to create, update, or delete a GTFS entity given an Integer ID and/or JSON string.
* Created by landon on 2017-12-20
*/
public interface TableWriter {
// FIXME: add optional auto-commit boolean so that additional changes can be made?
String create (String json, boolean autoCommit) throws SQLException, IOException;
String update (Integer id, String json, boolean autoCommit) throws SQLException, IOException;
int delete (Integer id, boolean autoCommit) throws SQLException;
int deleteWhere (String fieldName, String value, boolean autoCommit) throws SQLException;
void commit () throws SQLException;
void close ();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy