public abstract class CommonRowParser.AbstractFieldParser extends java.lang.Object implements TypeParser
Modifier and Type | Field and Description |
---|---|
protected CommonRowParser.DecimalNumber |
scratchDecimal |
Constructor and Description |
---|
AbstractFieldParser() |
Modifier and Type | Method and Description |
---|---|
void |
setContext(RuntimeObjectContext context) |
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
|
void |
verifyNotEmpty(java.lang.String text)
Raise an error if the text is an empty string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse, parse
getInitProperties, init
protected CommonRowParser.DecimalNumber scratchDecimal
public void setTreatEmptyStringAsNull(boolean newValue)
TypeParser
setTreatEmptyStringAsNull
in interface TypeParser
newValue
- True if empty strings map to null, false otherwise.public boolean treatingEmptyStringsAsNull()
TypeParser
treatingEmptyStringsAsNull
in interface TypeParser
public void setContext(RuntimeObjectContext context)
setContext
in interface RuntimeObject<RuntimeObjectContext>
public void verifyNotEmpty(java.lang.String text) throws java.sql.SQLException
java.sql.SQLException
Copyright (C) 2003-2021 SQLstream, Inc.