public final void setTypeMap ( Map < String , Class < ? > > typeMap ) throws SQLException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "Set TypeMap to " + typeMap ) ; try { sqlConn . setTypeMap ( typeMap ) ; } catch ( SQLFeatureNotSupportedException nse ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "supportsGetTypeMap false due to " , nse ) ; mcf . supportsGetTypeMap = false ; throw nse ; } catch ( UnsupportedOperationException uoe ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "supportsGetTypeMap false due to " , uoe ) ; mcf . supportsGetTypeMap = false ; throw uoe ; } connectionPropertyChanged = true ; }
Updates the value of the typeMap property .