What is the main difference between using
Java Stored Procedure and Oracle Stored Procedure?
If I have to write 2 methods in a Java Stored Procedure java file, can one method access the other for fetching some values. If yes, how to call the same. In this case, I have to declare 2 Functions returning
String values.
public class ScripReconciler
{
public static String getStringVal(String str_AccountCode)
{
String str_schemecode = "seetesh";;
System.out.println(str_schemecode);
return str_schemecode;
}
public static boolean mainmethod(String str_AccountCode)
{
String str_schemecode = getStringVal(str_AccountCode);
System.out.println(str_schemecode);
if (str_schemecode.length() > 0)
{
return true;
}
else
{
return false;
}
}
}
Rgds,
Seetesh