if (((sqlvar.sqltype & ~1) != GDS.SQL_TEXT) && ((sqlvar.sqltype & ~1) != GDS.SQL_VARYING)){ throw new SQLException("Not a String, type: " + sqlvar.sqltype);
if ((sqlvar.sqltype & ~1) == GDS.SQL_TEXT) { byte[] supplied = x.getBytes(); if (supplied.length > sqlvar.sqllen) { throw new DataTruncation(parameterIndex, true, false, supplied.length, sqlvar.sqllen); } if (supplied.length == sqlvar.sqllen) { sqlvar.sqlind = 0; sqlvar.sqldata = supplied; return; }  StringBuffer padded = new StringBuffer(sqlvar.sqllen); padded.append(x); for (int i = 0; i < sqlvar.sqllen - supplied.length; i++) { padded.append(' '); } sqlvar.sqlind = 0; sqlvar.sqldata = padded.toString().getBytes(); System.out.println("padded: /" + x + "/ to /" + padded + "/ length: " + ((byte[])sqlvar.sqldata).length); return;
    public void setString(int parameterIndex, String x) throws  SQLException {        XSQLVAR sqlvar = fixedStmt.getInSqlda().sqlvar[parameterIndex - 1];        if (((sqlvar.sqltype & ~1) != GDS.SQL_TEXT) && ((sqlvar.sqltype & ~1) != GDS.SQL_VARYING)){            throw new SQLException("Not a String, type: " + sqlvar.sqltype);        }        sqlvar.sqlind = 0;        sqlvar.sqldata = x;    }