com.mysql.jdbc
Class CharsetMapping

java.lang.Object
  extended bycom.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 :(


Field Summary
static java.lang.String[] INDEX_TO_CHARSET
          Map of MySQL-4.1 charset indexes to Java encoding names
static java.util.Map JAVA_TO_MYSQL_CHARSET_MAP
          Mapping of Java charset names to MySQL charset names
static java.util.Map JAVA_UC_TO_MYSQL_CHARSET_MAP
          Mapping of upper-case Java charset names to MySQL charset names
static java.util.Map MULTIBYTE_CHARSETS
          Map/List of multibyte character sets (using MySQL names)
static java.util.Map MYSQL_TO_JAVA_CHARSET_MAP
          Mapping of MySQL charset names to Java charset names
 
Constructor Summary
CharsetMapping()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_TO_MYSQL_CHARSET_MAP

public static final java.util.Map JAVA_TO_MYSQL_CHARSET_MAP
Mapping of Java charset names to MySQL charset names


JAVA_UC_TO_MYSQL_CHARSET_MAP

public static final java.util.Map JAVA_UC_TO_MYSQL_CHARSET_MAP
Mapping of upper-case Java charset names to MySQL charset names


MYSQL_TO_JAVA_CHARSET_MAP

public static final java.util.Map MYSQL_TO_JAVA_CHARSET_MAP
Mapping of MySQL charset names to Java charset names


MULTIBYTE_CHARSETS

public static final java.util.Map MULTIBYTE_CHARSETS
Map/List of multibyte character sets (using MySQL names)


INDEX_TO_CHARSET

public static final java.lang.String[] INDEX_TO_CHARSET
Map of MySQL-4.1 charset indexes to Java encoding names

Constructor Detail

CharsetMapping

public CharsetMapping()