I understand that it is possible to create java function in an oracle database using the command CREATE JAVA - look here. I have been reading a lot about how to do this but the more I read the more there is to read, it seems.
What I want to do is simple. Since I am already very familiar with Java, I don't want to go through learning PL/SQL especially that the project I am working on is rather small. I also don't want to mess around too much with with this feature, all that I want to do is something like the following:
1) Declare a function while connected to the database like:
CREATE JAVA AS
public class Example{
public static bool returnTrue() {
return true;
}
}
2) Then call the function while connected like:
SELECT Example.returnTrue() FROM DUAL;
Is this possible?
How?