public class DoubleField extends Field
ILLEGAL_CHARACTERS, name, referenceTable, requirement| Constructor and Description |
|---|
DoubleField(String name,
Requirement requirement,
double minValue,
double maxValue,
int outputPrecision) |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnExpression(String prefix,
boolean csvOutput)
When outputting to csv, round fields that have been created with an outputPrecision > -1 to avoid excessive
precision.
|
SQLType |
getSqlType() |
String |
getSqlTypeName() |
Set<NewGTFSError> |
setParameter(PreparedStatement preparedStatement,
int oneBasedIndex,
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, getFieldIndex, getSqlDeclaration, indexThisColumn, isEmptyValuePermitted, isForeignReference, isReferenceTo, isRequired, missingRequired, permitEmptyValue, setNull, shouldBeIndexedpublic DoubleField(String name, Requirement requirement, double minValue, double maxValue, int outputPrecision)
public Set<NewGTFSError> setParameter(PreparedStatement preparedStatement, int oneBasedIndex, String string)
setParameter in class Fieldpublic ValidateFieldResult<String> validateAndConvert(String string)
FieldvalidateAndConvert in class Fieldstring - a non-null Stringpublic SQLType getSqlType()
getSqlType in class Fieldpublic String getSqlTypeName()
getSqlTypeName in class Fieldpublic String getColumnExpression(String prefix, boolean csvOutput)
getColumnExpression in class FieldCopyright © 2019. All rights reserved.