Exemplo n.º 1
0
 /*
 ** Name: readSqlData
 **
 ** Description:
 **	Reads a SqlInterval data value from the current input message.
 **
 **	A SqlInterval data value is composed of a data indicator byte
 **	which, if not NULL, may be followed by a string which is
 **	composed of a two byte integer indicating the byte length
 **	of the string followed by a character byte array of the
 **	indicated length.
 **
 ** Input:
 **	None.
 **
 ** Output:
 **	value	SQL data value.
 **
 ** Returns:
 **	void.
 **
 ** History:
 **	17-Jan-07 (thoda04)
 **	    Created.
 */
 public void readSqlData(SqlInterval value)
 {
     if (readSqlDataIndicator())	// Read data indicator byte.
         value.set(readString());	// Read data value.
     else
         value.setNull();		// NULL data value.
     return;
 }