Package net.sf.basedb.util.parser
Class NullIfExceptionMapper
java.lang.Object
net.sf.basedb.util.parser.NullIfExceptionMapper
- All Implemented Interfaces:
Mapper
public class NullIfExceptionMapper extends Object implements Mapper
A mapper that returns null if there is an exception when parsing the
input data. The actual mapping is delegated to a parent mapper.
- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2019-03-21 12:50:52 +0100 (tors, 21 mars 2019) $
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NullIfExceptionMapper(Mapper parent)
Create a new CropStringMapper. -
Method Summary
Modifier and Type Method Description Date
getDate(FlatFileParser.Data data)
Get the value for the line of data as a date.Double
getDouble(FlatFileParser.Data data)
Get the value for the line of data as a double.Float
getFloat(FlatFileParser.Data data)
Get the value for the line of data as a float.Integer
getInt(FlatFileParser.Data data)
Get the value for the line of data as an integer.Long
getLong(FlatFileParser.Data data)
Get the value for the line of data as a long.String
getString(FlatFileParser.Data data)
Get the value for the line of data as a string.String
getValue(FlatFileParser.Data data)
Deprecated.
-
Field Details
-
parent
-
-
Constructor Details
-
NullIfExceptionMapper
Create a new CropStringMapper.- Parameters:
parent
- The parent mapper that does the actual mapping
-
-
Method Details
-
getValue
Deprecated.Description copied from interface:Mapper
Get the value for the line of data. -
getString
Description copied from interface:Mapper
Get the value for the line of data as a string. -
getInt
Description copied from interface:Mapper
Get the value for the line of data as an integer. -
getLong
Description copied from interface:Mapper
Get the value for the line of data as a long. -
getFloat
Description copied from interface:Mapper
Get the value for the line of data as a float. -
getDouble
Description copied from interface:Mapper
Get the value for the line of data as a double. -
getDate
Description copied from interface:Mapper
Get the value for the line of data as a date.
-