Class ByteaArrayType

java.lang.Object
org.jdbi.v3.postgres.internal.ByteaArrayType
All Implemented Interfaces:
SqlArrayType<byte[]>

public final class ByteaArrayType extends Object implements SqlArrayType<byte[]>
  • Constructor Details

    • ByteaArrayType

      public ByteaArrayType()
  • Method Details

    • getTypeName

      public 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 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 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