This function returns a BOOLEAN value that indicates whether or not an object is null.
FUNCTION ORA_JAVA.IS_NULL (
obj IN ORA_JAVA.JOBJECT)
RETURN BOOLEAN;
Parameter |
Description |
obj |
A valid instance of the Java class. The actual parameter can be any object of type ORA_JAVA.JOBJECT. |
PROCEDURE foo IS
obj ORA_JAVA.JOBJECT;
...
BEGIN
obj := myclass.new;
IF NOT ORA_JAVA.IS_NULL(obj) THEN
pck.obj := ORA_JAVA.NEW_GLOBAL_REF(obj);
...
END IF;
...
END;