Example #1
0
 set(SqlNVarChar data)
 {
     if (data == null || data.isNull())
     {
         setNull();
     }
     else
     {
         clear();
         put(data.value, 0, data.length);
     }
     return;
 }         // set
Example #2
0
 set(SqlNVarChar data)
 {
     if (data.isNull())
     {
         setNull();
     }
     else
     {
         /*
         ** The character data is stored in a character array.
         ** A character stream will produce the desired output.
         */
         setStream(getCharacter(data.value, data.length));
     }
     return;
 }         // set
Example #3
0
 /*
 ** Name: set
 **
 ** Description:
 **	Assign a new data value as a copy of a SqlNVarChar data
 **	value.  The data value will be NULL if the input value
 **	is null, otherwise non-NULL.
 **
 ** Input:
 **	data	SqlNVarChar data value to copy.
 **
 ** Output:
 **	None.
 **
 ** Returns:
 **	void.
 **
 ** History:
 **	 1-Dec-03 (gordy)
 **	    Created.
 */
 public void set(SqlNVarChar data)
 {
     if (data.isNull())
         setNull();
     else
     {
         /*
         ** The character data is stored in a character array.
         ** A character stream will produce the desired output.
         */
         setStream(getCharacter(data.value, data.length));
     }
     return;
 }
Example #4
0
 /*
 ** Name: set
 **
 ** Description:
 **	Assign a new data value as a copy of an existing
 **	SQL data object.  If the input is NULL, a NULL
 **	data value results.
 **
 ** Input:
 **	data	The SQL data to be copied.
 **
 ** Output:
 **	None.
 **
 ** Returns:
 **	void.
 **
 ** History:
 **	 1-Dec-03 (gordy)
 **	    Created.
 */
 public void set( SqlNVarChar data )
 {
     if ( data == null  ||  data.isNull() )
     setNull();
     else
     {
     clear();
     put(data.value, 0, data.length);
     }
     return;
 }