public class PersistentStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_LABEL
data label
|
protected java.lang.String |
INSERT_SQL
SQL text for the insert statement
|
protected java.lang.String |
PV_COLUMN
PV Column
|
protected java.lang.String |
TIMESTAMP_COLUMN
Timestamp Column
|
protected java.lang.String |
TRIPS_TABLE
Trips table
|
Constructor and Description |
---|
PersistentStore(DataAdaptor adaptor)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static java.sql.Connection |
connectionInstance()
get a new connection using the default dictionary
|
java.util.List<TripRecord> |
fetchTripRecordsBetween(java.sql.Connection connection,
java.util.Date startTime,
java.util.Date endTime)
fetch the trip records between the selected dates
|
boolean |
publish(java.sql.Connection connection,
java.util.List<TripRecord> tripRecords)
publish the trip records
|
public static final java.lang.String DATA_LABEL
protected final java.lang.String TRIPS_TABLE
protected final java.lang.String PV_COLUMN
protected final java.lang.String TIMESTAMP_COLUMN
protected final java.lang.String INSERT_SQL
public PersistentStore(DataAdaptor adaptor)
public static java.sql.Connection connectionInstance()
public boolean publish(java.sql.Connection connection, java.util.List<TripRecord> tripRecords)
public java.util.List<TripRecord> fetchTripRecordsBetween(java.sql.Connection connection, java.util.Date startTime, java.util.Date endTime)