Interface JdbcArrayColumns

All Superinterfaces:
org.springframework.data.relational.core.dialect.ArrayColumns
All Known Implementing Classes:
JdbcArrayColumns.DefaultSupport, JdbcArrayColumns.Unsupported

public interface JdbcArrayColumns extends org.springframework.data.relational.core.dialect.ArrayColumns
ArrayColumns that offer JDBC-specific functionality.
Since:
2.3
Author:
Jens Schauder, Mark Paluch
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Default ArrayColumns implementation for dialects that do not support array-typed columns.
    static enum 
    Default ArrayColumns implementation for dialects that do not support array-typed columns.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Class<?>
    getArrayType(Class<?> userType)
     
    default String
    The appropriate SQL type as a String which should be used to represent the given SQLType in an Array.
    default SQLType
    getSqlType(Class<?> componentType)
    Determine the SQLType for a given array component type.

    Methods inherited from interface org.springframework.data.relational.core.dialect.ArrayColumns

    isSupported
  • Method Details

    • getArrayType

      default Class<?> getArrayType(Class<?> userType)
      Specified by:
      getArrayType in interface org.springframework.data.relational.core.dialect.ArrayColumns
    • getSqlType

      default SQLType getSqlType(Class<?> componentType)
      Determine the SQLType for a given array component type.
      Parameters:
      componentType - component type of the array.
      Returns:
      the dialect-supported array type.
      Since:
      3.1.3
    • 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.