public class Frequency extends Entity implements Comparable<Frequency>
| Modifier and Type | Class and Description |
|---|---|
static class |
Frequency.Loader |
static class |
Frequency.Writer |
| Modifier and Type | Field and Description |
|---|---|
int |
end_time |
int |
exact_times |
int |
headway_secs |
int |
start_time |
String |
trip_id |
DOUBLE_MISSING, id, INT_MISSING| Constructor and Description |
|---|
Frequency() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Frequency o)
must have a comparator since they go in a navigable set that is serialized
|
String |
getId()
Frequency entries have no ID in GTFS so we define one based on the fields in the frequency entry.
|
void |
setStatementParameters(PreparedStatement statement,
boolean setDefaultId)
Sets the parameters for a prepared statement following the parameter order defined in
Table.FREQUENCIES. |
getSequenceNumber, human, setDoubleParameter, setIntParameterpublic String trip_id
public int start_time
public int end_time
public int headway_secs
public int exact_times
public String getId()
getId in class Entitypublic void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException
Table.FREQUENCIES. JDBC prepared statement parameters use a one-based index.setStatementParameters in class EntitySQLExceptionpublic int compareTo(Frequency o)
compareTo in interface Comparable<Frequency>Copyright © 2019. All rights reserved.