INSTALL JAVA UPDATE FROM FILE 'D:\\Examples\\Java\\PhoneticString.class';
CREATE FUNCTION metaname (emp_lname CHAR(20))
RETURNS CHAR(4)
BEGIN
    DECLARE mfon4 CHAR(4);
    create variable jvar PhoneticString;
    SET jvar = NEW PhoneticString();
    SET mfon4 = jvar>>Metafon4(emp_lname);
    RETURN ( mfon4 );
END