public class DateField extends Field
| Modifier and Type | Field and Description |
|---|---|
static DateTimeFormatter |
GTFS_DATE_FORMATTER |
ILLEGAL_CHARACTERS, name, referenceTable, requirement| Constructor and Description |
|---|
DateField(String name,
Requirement requirement) |
| Modifier and Type | Method and Description |
|---|---|
SQLType |
getSqlType() |
Set<NewGTFSError> |
setParameter(PreparedStatement preparedStatement,
int oneBasedIndex,
LocalDate localDate)
DateField specific method to set a statement parameter from a
LocalDate. |
Set<NewGTFSError> |
setParameter(PreparedStatement preparedStatement,
int oneBasedIndex,
String string) |
static ValidateFieldResult<String> |
validate(String string) |
ValidateFieldResult<String> |
validateAndConvert(String string)
Check the supplied string to see if it can be parsed as the proper data type.
|
cleanString, cleanString, getColumnExpression, getFieldIndex, getSqlDeclaration, getSqlTypeName, indexThisColumn, isEmptyValuePermitted, isForeignReference, isReferenceTo, isRequired, missingRequired, permitEmptyValue, setNull, shouldBeIndexedpublic static final DateTimeFormatter GTFS_DATE_FORMATTER
public DateField(String name, Requirement requirement)
public static ValidateFieldResult<String> validate(String string)
public Set<NewGTFSError> setParameter(PreparedStatement preparedStatement, int oneBasedIndex, String string)
setParameter in class Fieldpublic Set<NewGTFSError> setParameter(PreparedStatement preparedStatement, int oneBasedIndex, LocalDate localDate)
LocalDate.public ValidateFieldResult<String> validateAndConvert(String string)
FieldvalidateAndConvert in class Fieldstring - a non-null Stringpublic SQLType getSqlType()
getSqlType in class FieldCopyright © 2019. All rights reserved.