Class JdbcUtil

java.lang.Object
org.springframework.data.jdbc.support.JdbcUtil

public final class JdbcUtil extends Object
Contains methods dealing with the quirks of JDBC, independent of any Entity, Aggregate or Repository abstraction.
Author:
Jens Schauder, Thomas Lang
  • Field Details

    • TYPE_UNKNOWN

      public static final SQLType TYPE_UNKNOWN
  • Method Details

    • targetSqlTypeFor

      public static SQLType targetSqlTypeFor(Class<?> type)
      Returns the SQLType value suitable for passing a value of the provided type to JDBC driver.
      Parameters:
      type - The type of value to be bound to a PreparedStatement.
      Returns:
      a matching SQLType or TYPE_UNKNOWN.