com.mysql.jdbc
Class CharsetMapping
java.lang.Object
com.mysql.jdbc.CharsetMapping
public class CharsetMapping
- extends java.lang.Object
Mapping between MySQL charset names and Java charset names. I've investigated
placing these in a .properties file, but unfortunately under most appservers
this complicates configuration because the security policy needs to be
changed by the user to allow the driver to read them :(
- Author:
- Mark Matthews
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEX_TO_CHARSET
public static final java.lang.String[] INDEX_TO_CHARSET
- Map of MySQL-4.1 charset indexes to Java encoding names
INDEX_TO_COLLATION
public static final java.lang.String[] INDEX_TO_COLLATION
- Map of MySQL-4.1 collation index to collation names
STATIC_CHARSET_TO_NUM_BYTES_MAP
public static final java.util.Map STATIC_CHARSET_TO_NUM_BYTES_MAP
CharsetMapping
public CharsetMapping()
getJavaEncodingForMysqlEncoding
public static final java.lang.String getJavaEncodingForMysqlEncoding(java.lang.String mysqlEncoding,
Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getMysqlEncodingForJavaEncoding
public static final java.lang.String getMysqlEncodingForJavaEncoding(java.lang.String javaEncodingUC,
Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException