Logo Search packages:      
Sourcecode: mysql-connector-java version File versions  Download package

void com::mysql::jdbc::ServerPreparedStatement::setString ( int  parameterIndex,
String  x 
) throws SQLException [inline]

See also:
java.sql.PreparedStatement::setString(int, java.lang.String)

Reimplemented from com::mysql::jdbc::PreparedStatement.

Definition at line 2002 of file ServerPreparedStatement.java.

References checkClosed(), getBinding(), setNull(), and stringTypeCode.

Referenced by setURL().


            if (x == null) {
                  setNull(parameterIndex, java.sql.Types.CHAR);
            } else {
                  BindValue binding = getBinding(parameterIndex, false);

                  setType(binding, this.stringTypeCode);

                  binding.value = x;
                  binding.isNull = false;
                  binding.isLongData = false;

Generated by  Doxygen 1.6.0   Back to index