You can remove UDRs using the following methods:
public void removeUDR(String sqlname) throws SQLException public void removeJar(String jarfilesqlname, int undeploy) throws SQLException
The removeJar() method is described in Removing Opaque Types and JAR Files.
To remove overloaded UDRs, use the removeUDR() method with an additional parameter:
public void removeUDR(String sqlname, Class[] methodparams) throws SQLException
The methodparams parameter specifies the data type of each parameter in the UDR. Specify NULL to indicate no parameters. For example, assume a UDR named print() is overloaded with two additional method signatures.
The code to remove all three UDRs is:
udrmgr.removeUDR("print1", null ); udrmgr.removeUDR("print2", new Class[] {String.class, String.class, int.class} ); udrmgr.removeUDR("print3", new Class[] {int.class, int.class} );Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]