set(SqlNChar data) { if (data == null || data.isNull()) { setNull(); } else { clear(); put(data.value, 0, data.length); } return; } // set
set(SqlNChar data) { if (data.isNull()) { setNull(); } else { /* ** The character data is stored in a character array. ** A character stream will produce the desired output. ** Note that we need to follow the SqlNChar convention ** and extend the data to the optional limit. */ data.extend(); setStream(getCharacter(data.value, data.length)); } return; } // set