The internalMain( ) method

// A JDBCExamples method equivalent to 'main', 
// to be called from SQL or Java in the server

    public static String internalMain(String action) {
        try {
           Connection con = connecter("default");
           String workString = doAction(action, con, server);
           return workString;
        }  catch ( Exception e ) {
             if (e.getMessage().equals(null)) {
               return "Exc: " + e.toString();
             } else {
               return "Exc - " + e.getMessage();
             }  
        }  
    }