Class ByteaArrayType

  • All Implemented Interfaces:
    SqlArrayType<byte[]>

    public final class ByteaArrayType
    extends java.lang.Object
    implements SqlArrayType<byte[]>
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteaArrayType()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convertArrayElement​(byte[] element)
      Returns an equivalent value in a type supported by the JDBC vendor.
      java.lang.Class<?> getArrayElementClass()
      Returns the element class that is used to create the backing array.
      java.lang.String getTypeName()
      Returns the vendor-specific SQL type name String for the element type T.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteaArrayType

        public ByteaArrayType()
    • Method Detail

      • getTypeName

        public java.lang.String getTypeName()
        Description copied from interface: SqlArrayType
        Returns the vendor-specific SQL type name String for the element type T. This value will be passed to Connection.createArrayOf(String, Object[]) to create SQL arrays.
        Specified by:
        getTypeName in interface SqlArrayType<byte[]>
        Returns:
        the type name
      • getArrayElementClass

        public java.lang.Class<?> getArrayElementClass()
        Description copied from interface: SqlArrayType
        Returns the element class that is used to create the backing array. By default, Object is used and the backing array is an Object[] array. Can be overridden if a more specific type is needed.
        Specified by:
        getArrayElementClass in interface SqlArrayType<byte[]>
        Returns:
        A Class instance which is used with Array.newInstance(Class, int).
      • convertArrayElement

        public java.lang.Object convertArrayElement​(byte[] element)
        Description copied from interface: SqlArrayType
        Returns an equivalent value in a type supported by the JDBC vendor. If element type T is already supported by the JDBC vendor, this method may return element without modification.
        Specified by:
        convertArrayElement in interface SqlArrayType<byte[]>
        Parameters:
        element - the element to convert
        Returns:
        the converted element