gov.nih.nlm.util
Interface LocalNullValueSupport

All Known Subinterfaces:
BrowsableInputStream, ConceptInputStream, ConceptOutputStream, CuiList, MetamorphoSysInputStream, MetamorphoSysOutputStream, MetathesaurusInputStream, MetathesaurusOutputStream
All Known Implementing Classes:
CuiSuiAuiList, MetaDescriptionInitializer, MRCXTBuilder, MRCXTBuilderOutputStream, NLMFileMetamorphoSysInputStream, OriginalMRFilesConceptInputStream, OriginalMRFilesConceptOutputStream, OriginalMRMetamorphoSysInputStream, OriginalMRMetamorphoSysOutputStream, OriginalMRMetathesaurusInputStream, OriginalMRMetathesaurusOutputStream, PushBackReader, RichMRFilesConceptInputStream, RichMRFilesConceptOutputStream, RichMRFilesIndexLookup, RichMRFilesSingleConceptInputStream, RichMRMetamorphoSysInputStream, RichMRMetamorphoSysOutputStream, RichMRMetathesaurusInputStream, RichMRMetathesaurusOutputStream, RRFBrowsableInputStream, SearchStringPushBackReader

public interface LocalNullValueSupport


Method Summary
 String getNullValue()
          Returns the string value representing a null or empty field in a fielded file representation of some data.
 boolean isEmptyValue(String token)
          Indicates whether or not the specified token is null or contains a null value as defined by being either zero length or a value equal to the null value.
 void setNullValue(String l_null_value)
          Allows the application to override the default "null" string value for a fielded file.
 

Method Detail

getNullValue

String getNullValue()
Returns the string value representing a null or empty field in a fielded file representation of some data. This exists because MySQL requires a "\N" string sequence to represent a null value for an integer field.

Returns:
the string value for "null"

isEmptyValue

boolean isEmptyValue(String token)
Indicates whether or not the specified token is null or contains a null value as defined by being either zero length or a value equal to the null value.


setNullValue

void setNullValue(String l_null_value)
Allows the application to override the default "null" string value for a fielded file. This is needed because MySQL requires a "\N" string sequence to represent a null value.

Parameters:
l_null_value - the new null string value


Copyright ©2005