public abstract String getString (int parameterIndex) throws SQLException

Retrieves the value of the designated JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language.

For the fixed-length type JDBC CHAR, the String object returned has exactly the same value the SQL CHAR value had in the database, including any padding added by the database.

Parameters:
parameterIndex    the first parameter is 1, the second is 2, and so on

Returns:  the parameter value. If the value is SQL NULL, the result is null.

Exceptions:
SQLException    if the parameterIndex is not valid; if a database access error occurs or this method is called on a closed CallableStatement

See also:
setString