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

String com::mysql::jdbc::ResultSetMetaData::getColumnCharacterEncoding ( int  column  )  throws SQLException [inline]

What's the Java character encoding name for the given column?

Parameters:
column the first column is 1, the second is 2, etc.
Returns:
the Java character encoding name for the given column, or null if no Java character encoding maps to the MySQL character set for the given column.
Exceptions:
SQLException if an invalid column index is given.

Definition at line 142 of file ResultSetMetaData.java.

References getColumnCharacterSet().

                            {
        String mysqlName = getColumnCharacterSet(column);

        String javaName = null;

        if (mysqlName != null) {
            javaName = (String) CharsetMapping.MYSQL_TO_JAVA_CHARSET_MAP.get(mysqlName);
        }

        return javaName;
    }


Generated by  Doxygen 1.6.0   Back to index