Ejemplo n.º 1
0
 set(SqlVarChar data)
 {
     if (data == null || data.isNull())
     {
         setNull();
     }
     else
     {
         clear();
         put(data.value, 0, data.length);
     }
     return;
 }         // set
Ejemplo n.º 2
0
 set(SqlVarChar data)
 {
     if (data.isNull())
     {
         setNull();
     }
     else
     {
         /*
         ** The character data is stored in a byte array in
         ** the host character-set.  A simple binary stream
         ** will produce the desired output.
         */
         setStream(getBinary(data.value, 0, data.length));
     }
     return;
 }         // set
Ejemplo n.º 3
0
 /*
 ** Name: set
 **
 ** Description:
 **	Assign a new data value as a copy of a SqlVarChar data
 **	value.  The data value will be NULL if the input value
 **	is null, otherwise non-NULL.
 **
 ** Input:
 **	data	SqlVarChar data value to copy.
 **
 ** Output:
 **	None.
 **
 ** Returns:
 **	void.
 **
 ** History:
 **	 1-Dec-03 (gordy)
 **	    Created.
 */
 public void set(SqlVarChar data)
 {
     if (data.isNull())
         setNull();
     else
     {
         /*
         ** The character data is stored in a byte array in
         ** the host character-set.  A simple binary stream
         ** will produce the desired output.
         */
         setStream(getBinary(data.value, 0, data.length));
     }
     return;
 }
Ejemplo n.º 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(SqlVarChar data)
 {
     if (data == null || data.isNull())
         setNull();
     else
     {
         clear();
         put(data.value, 0, data.length);
     }
     return;
 }