Specify SQL names
Specify SQL names with the setSQLName() and setJarFileSQLName() methods:
public void setSQLName(String name) throws SQLException
public void setJarFileSQLName(String name) throws SQLException
By
default, the driver uses the name you set through the setSQLName() method
as the file names of the Java™ class
and JAR files generated when you call the UDTManager.createUDTCclass() and UDTManager.createJar() methods.
For example, if you called setSQLName("circle")
and
then called createUDTCclass() and createJar(),
the class file name generated would be circle.class and
the JAR file name would be circle.jar. You can
specify a Java™ class file name
other than the default by calling the setClassName() method.
The
JAR file SQL name is the name as it will be referenced in the SQL
CREATE FUNCTION statement the driver uses to register a UDR.
Important: The JAR file SQL name is the name of the JAR file
in SQL statements; it has no relationship to the contents of the JAR
file.