Package org.h2.value

Class ValueJavaObject

  • All Implemented Interfaces:
    HasSQL, Typed

    public final class ValueJavaObject
    extends ValueBytesBase
    Implementation of the JAVA_OBJECT data type.
    • Constructor Detail

      • ValueJavaObject

        protected ValueJavaObject​(byte[] v)
    • Method Detail

      • getNoCopy

        public static ValueJavaObject getNoCopy​(byte[] b)
        Get or create a java object value for the given byte array. Do not clone the data.
        Parameters:
        b - the byte array
        Returns:
        the value
      • getType

        public TypeInfo getType()
        Description copied from interface: Typed
        Returns the data type.
        Specified by:
        getType in interface Typed
        Specified by:
        getType in class Value
        Returns:
        the data type
      • getValueType

        public int getValueType()
        Description copied from class: Value
        Get the value type.
        Specified by:
        getValueType in class Value
        Returns:
        the value type
      • getSQL

        public java.lang.StringBuilder getSQL​(java.lang.StringBuilder builder,
                                              int sqlFlags)
        Description copied from interface: HasSQL
        Appends the SQL statement of this object to the specified builder.
        Specified by:
        getSQL in interface HasSQL
        Overrides:
        getSQL in class ValueBytesBase
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the specified string builder
      • getString

        public java.lang.String getString()
        Description copied from class: Value
        Get the value as a string.
        Specified by:
        getString in class Value
        Returns:
        the string