public String getObjectDetails(String buffer) {
dbcon con = new dbcon();
ResultSet rs = null;
String name_msg=null;
String type_msg=null;
int type_code=0;
int name_code=0;
try {
rs = con.dbstate().createStatement().executeQuery("SELECT pkg_test1.get_object_type('"+buffer+"',"+type_code+",'"+type_msg+"'),pkg_test1.get_object_name('"+buffer+"',"+name_code+",'"+name_msg+"') from dual");
if (rs.next()) {
return rs.getString(1) + "," + rs.getString(2);
}
} catch (SQLException ex) {
Logger.getLogger(username.class.getName()).log(Level.SEVERE, null, ex);
}
return "";
}
And, I'm trying to get information from these two function declared inside PKG_TEST1
package
FUNCTION get_object_type(i_buffer IN VARCHAR2, o_errcode OUT NUMBER,
o_errmsg OUT VARCHAR2) RETURN VARCHAR2;
FUNCTION get_object_name(i_buffer IN VARCHAR2, o_errcode OUT NUMBER,
o_errmsg OUT VARCHAR2) RETURN VARCHAR2;
But, I'm getting error
java.sql.SQLException: ORA-06572: Function GET_OBJECT_NAME has out arguments
Please help me to solve this problem.