Class Null


  • public final class Null
    extends Object
    A null of a given type.
    • Field Detail

      • ARRAY

        public static final Null ARRAY
      • BIGINT

        public static final Null BIGINT
      • BINARY

        public static final Null BINARY
      • BIT

        public static final Null BIT
      • BLOB

        public static final Null BLOB
      • BOOLEAN

        public static final Null BOOLEAN
      • CHAR

        public static final Null CHAR
      • CLOB

        public static final Null CLOB
      • DATALINK

        public static final Null DATALINK
      • DATE

        public static final Null DATE
      • DECIMAL

        public static final Null DECIMAL
      • DISTINCT

        public static final Null DISTINCT
      • DOUBLE

        public static final Null DOUBLE
      • FLOAT

        public static final Null FLOAT
      • INTEGER

        public static final Null INTEGER
      • JAVA_OBJECT

        public static final Null JAVA_OBJECT
      • LONGVARBINARY

        public static final Null LONGVARBINARY
      • LONGVARCHAR

        public static final Null LONGVARCHAR
      • NULL

        public static final Null NULL
      • NUMERIC

        public static final Null NUMERIC
      • OTHER

        public static final Null OTHER
      • REAL

        public static final Null REAL
      • REF

        public static final Null REF
      • SMALLINT

        public static final Null SMALLINT
      • STRUCT

        public static final Null STRUCT
      • TIME

        public static final Null TIME
      • TIMESTAMP

        public static final Null TIMESTAMP
      • TINYINT

        public static final Null TINYINT
      • VARBINARY

        public static final Null VARBINARY
      • VARCHAR

        public static final Null VARCHAR
    • Constructor Detail

      • Null

        public Null​(int newType)
        Construct a new null of a given type. Should only be called for types that are not predefined constants.
        Parameters:
        newType - the type from java.sql.Types
    • Method Detail

      • getType

        public int getType()
        Get the type of this null.
        Returns:
        the type from java.sql.Types.