public class GPXTablesFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ROUTE |
static String |
ROUTEPOINT |
static String |
TRACK |
static String |
TRACKPOINT |
static String |
TRACKSEGMENT |
static String |
WAYPOINT |
| Modifier and Type | Method and Description |
|---|---|
static PreparedStatement |
createRoutePointsTable(Connection connection,
String routePointsTable,
boolean isH2)
Createthe route points table to store the route waypoints
|
static PreparedStatement |
createRouteTable(Connection connection,
String routeTableName,
boolean isH2)
Create the route table that will be used to import GPX data
|
static PreparedStatement |
createTrackPointsTable(Connection connection,
String trackPointsTableName,
boolean isH2)
Create the track points table to store the track waypoints
|
static PreparedStatement |
createTrackSegmentsTable(Connection connection,
String trackSegementsTableName,
boolean isH2)
Create the track segments table to store the segments of a track
|
static PreparedStatement |
createTrackTable(Connection connection,
String trackTableName,
boolean isH2)
Creat the track table
|
static PreparedStatement |
createWayPointsTable(Connection connection,
String wayPointsTableName,
boolean isH2)
Create the waypoints table that will be used to import GPX data
|
static void |
dropOSMTables(Connection connection,
boolean isH2,
String tablePrefix)
Drop the existing GPX tables used to store the imported OSM GPX
|
public static final String WAYPOINT
public static final String ROUTE
public static final String ROUTEPOINT
public static final String TRACK
public static final String TRACKSEGMENT
public static final String TRACKPOINT
public static PreparedStatement createWayPointsTable(Connection connection, String wayPointsTableName, boolean isH2) throws SQLException
connection - wayPointsTableName - isH2 - set true if it's an H2 databaseSQLExceptionpublic static PreparedStatement createRouteTable(Connection connection, String routeTableName, boolean isH2) throws SQLException
connection - routeTableName - isH2 - set true if it's an H2 databaseSQLExceptionpublic static PreparedStatement createRoutePointsTable(Connection connection, String routePointsTable, boolean isH2) throws SQLException
connection - routePointsTable - isH2 - set true if it's an H2 databaseSQLExceptionpublic static PreparedStatement createTrackTable(Connection connection, String trackTableName, boolean isH2) throws SQLException
connection - trackTableName - isH2 - set true if it's an H2 databaseSQLExceptionpublic static PreparedStatement createTrackSegmentsTable(Connection connection, String trackSegementsTableName, boolean isH2) throws SQLException
connection - trackSegementsTableName - isH2 - set true if it's an H2 databaseSQLExceptionpublic static PreparedStatement createTrackPointsTable(Connection connection, String trackPointsTableName, boolean isH2) throws SQLException
connection - trackPointsTableName - isH2 - set true if it's an H2 databaseSQLExceptionpublic static void dropOSMTables(Connection connection, boolean isH2, String tablePrefix) throws SQLException
connection - isH2 - tablePrefix - SQLExceptionCopyright © 2019 CNRS. All rights reserved.