public class TimeField extends Field
ILLEGAL_CHARACTERS, name, referenceTable, requirement| Constructor and Description |
|---|
TimeField(String name,
Requirement requirement) |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnExpression(String prefix,
boolean csvOutput)
When outputting to csv, return the PostgreSQL syntax to convert seconds since midnight into the time format
HH:MM:SS for the specified field.
|
SQLType |
getSqlType() |
Set<NewGTFSError> |
setParameter(PreparedStatement preparedStatement,
int oneBasedIndex,
String string) |
ValidateFieldResult<String> |
validateAndConvert(String hhmmss)
Check the supplied string to see if it can be parsed as the proper data type.
|
cleanString, cleanString, getFieldIndex, getSqlDeclaration, getSqlTypeName, indexThisColumn, isEmptyValuePermitted, isForeignReference, isReferenceTo, isRequired, missingRequired, permitEmptyValue, setNull, shouldBeIndexedpublic TimeField(String name, Requirement requirement)
public Set<NewGTFSError> setParameter(PreparedStatement preparedStatement, int oneBasedIndex, String string)
setParameter in class Fieldpublic ValidateFieldResult<String> validateAndConvert(String hhmmss)
FieldvalidateAndConvert in class Fieldhhmmss - a non-null Stringpublic SQLType getSqlType()
getSqlType in class Fieldpublic String getColumnExpression(String prefix, boolean csvOutput)
getColumnExpression in class FieldCopyright © 2019. All rights reserved.