A script-enabled browser is required for this page to function properly.

ORA_JAVA.IS_NULL built-in function

This function returns a BOOLEAN value that indicates whether or not an object is null.

Syntax


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.

Example


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;