Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions
11g Release 1 (11.1.1)

E17787-01


com.sigmadynamics.util
Class Null

java.lang.Object
  extended by com.sigmadynamics.util.Null


public final class Null
extends java.lang.Object

NULL values for built-in Inline Service data types. RTD generated ILS code follows a convention of using distinguished values to represent nulls for primitives. This utility class may be used to test for null. For example:

int id = request.getCustomerId(); if (!Null.isNull(id)) { ... }


Field Summary
static boolean BOOLEAN
           
static long DATE
           
static double DOUBLE
           
static int INT
           
static int INTEGER
           
static long LONG
           
static java.lang.Object OBJECT
           
static java.lang.String STRING
           

 

Method Summary
static boolean isAllNull(SDBooleanArray values)
           
static boolean isAllNull(SDDoubleArray values)
           
static boolean isAllNull(SDIntArray values)
           
static boolean isAllNull(SDLongArray values)
           
static boolean isAllNull(SDObjectArray values)
           
static boolean isAllNull(SDStringArray values)
           
static boolean isNull(boolean val)
           
static boolean isNull(double val)
           
static boolean isNull(float val)
           
static boolean isNull(int val)
           
static boolean isNull(long val)
           
static boolean isNull(java.lang.Object val)
           
static boolean isNull(java.lang.String val)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

DOUBLE

public static final double DOUBLE
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

DATE

public static final long DATE
See Also:
Constant Field Values

LONG

public static final long LONG
See Also:
Constant Field Values

STRING

public static final java.lang.String STRING

OBJECT

public static final java.lang.Object OBJECT

INT

public static final int INT
See Also:
Constant Field Values

BOOLEAN

public static final boolean BOOLEAN
See Also:
Constant Field Values

Method Detail

isNull

public static boolean isNull(double val)
See Also:
Null.DOUBLE, Double.NaN

isNull

public static boolean isNull(float val)
See Also:
Float.NaN

isNull

public static boolean isNull(int val)
See Also:
Null.INTEGER, Integer.MIN_VALUE

isNull

public static boolean isNull(long val)
See Also:
Null.DATE, Long.MIN_VALUE

isNull

public static boolean isNull(boolean val)
Returns:
false, never true

isNull

public static boolean isNull(java.lang.Object val)
Returns:
(val == null)

isNull

public static boolean isNull(java.lang.String val)
Returns:
(val == null || val == STRING)
See Also:
Null.STRING

isAllNull

public static boolean isAllNull(SDStringArray values)

isAllNull

public static boolean isAllNull(SDObjectArray values)

isAllNull

public static boolean isAllNull(SDBooleanArray values)

isAllNull

public static boolean isAllNull(SDIntArray values)

isAllNull

public static boolean isAllNull(SDLongArray values)

isAllNull

public static boolean isAllNull(SDDoubleArray values)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions
11g Release 1 (11.1.1)

E17787-01


Copyright © 2010, Oracle. All rights reserved.