setTypeMap(Map<String,Class<?>> map)

Syntax:

void setTypeMap(Map<String,Class<?>> map)
                throws SQLException

Description:

Installs the given TypeMap object as the type map for this Connection object. The type map will be used for the custom mapping of SQL structured types and distinct types.

Parameters:

map

the java.util.Map object to install as the replacement for this Connection object's default type map

Throws:

SQLException - if a database access error occurs

Reference:

For more information, reference JDBC documentation for: Connection.setTypeMap(Map<String,Class<?>>)