Interface JdbcArrayColumns

All Superinterfaces:
ArrayColumns
All Known Implementing Classes:
JdbcArrayColumns.DefaultSupport, JdbcArrayColumns.Unsupported

public interface JdbcArrayColumns extends ArrayColumns
ArrayColumns that offer JDBC-specific functionality.
Since:
2.3
Author:
Jens Schauder, Mark Paluch
  • Method Details

    • getArrayType

      default Class<?> getArrayType(Class<?> userType)
      Description copied from interface: ArrayColumns
      Translate the user type of an array into the dialect-specific type. This method considers only the component type.
      Specified by:
      getArrayType in interface ArrayColumns
      Parameters:
      userType - component type of the array.
      Returns:
      the dialect-supported array type.
    • getArrayTypeName

      default String getArrayTypeName(SQLType jdbcType)
      The appropriate SQL type as a String which should be used to represent the given SQLType in an Array. Defaults to the name of the argument.
      Parameters:
      jdbcType - the SQLType value representing the type that should be stored in the Array. Must not be null.
      Returns:
      the appropriate SQL type as a String which should be used to represent the given SQLType in an Array. Guaranteed to be not null.