public interface TypeParser extends RuntimeObject<RuntimeObjectContext>
Modifier and Type | Method and Description |
---|---|
void |
parse(byte[] buf,
int start,
int end,
RowInserter inserter,
int col)
Parses a value from a range of a byte array, and applies it to the row inserer.
|
void |
parse(java.lang.String data,
RowInserter inserter,
int col)
Parses a value directly from a string and puts it into the row inserter
|
void |
setTreatEmptyStringAsNull(boolean newValue)
Change whether empty strings should be treated as null.
|
boolean |
treatingEmptyStringsAsNull()
Return true if empty strings should be treated as nulls
|
getInitProperties, init, setContext
void parse(java.lang.String data, RowInserter inserter, int col) throws java.sql.SQLException, java.lang.NumberFormatException
data
- the string representation of the value to parseinserter
- where to store the parsed valuecol
- column in the statement to storejava.sql.SQLException
java.lang.NumberFormatException
void parse(byte[] buf, int start, int end, RowInserter inserter, int col) throws java.sql.SQLException, java.lang.NumberFormatException
buf
- : parse the value buf[start .. (end-1)]start
- end
- inserter
- gets the valuecol
- column in the statement to storejava.sql.SQLException
java.lang.NumberFormatException
boolean treatingEmptyStringsAsNull()
void setTreatEmptyStringAsNull(boolean newValue)
newValue
- True if empty strings map to null, false otherwise.Copyright (C) 2003-2021 SQLstream, Inc.