Class PostgresqlDbTypeConverter

java.lang.Object
io.jmix.data.impl.dbms.PostgresqlDbTypeConverter
All Implemented Interfaces:
DbTypeConverter

@Component("postgresqlDbTypeConverter") public class PostgresqlDbTypeConverter extends Object implements DbTypeConverter
  • Constructor Details

    • PostgresqlDbTypeConverter

      public PostgresqlDbTypeConverter()
  • Method Details

    • getJavaObject

      public Object getJavaObject(ResultSet resultSet, int columnIndex)
      Description copied from interface: DbTypeConverter
      Convert a JDBC ResultSet column value to a value appropriate for an entity attribute.
      Specified by:
      getJavaObject in interface DbTypeConverter
      Parameters:
      resultSet - JDBC ResultSet
      columnIndex - ResultSet column number, starting from 1
      Returns:
      corresponding value for an entity attribute
    • getSqlObject

      public Object getSqlObject(Object value)
      Description copied from interface: DbTypeConverter
      Convert an entity attribute value to a value appropriate for a JDBC parameter.
      Specified by:
      getSqlObject in interface DbTypeConverter
      Parameters:
      value - an entity attribute value
      Returns:
      corresponding value for a JDBC parameter
    • getSqlType

      public int getSqlType(Class<?> javaClass)
      Description copied from interface: DbTypeConverter
      Get a JDBC type corresponding to an entity attribute type.
      Specified by:
      getSqlType in interface DbTypeConverter
      Parameters:
      javaClass - entity attribute type
      Returns:
      corresponding JDBC type
      See Also:
    • getTypeAndVersion

      public String getTypeAndVersion()
      Description copied from interface: DbTypeConverter
      Provides information about jmix.data.dbmsType and jmix.data.dbmsVersion this bean designed for. Version can be empty.
      Specified by:
      getTypeAndVersion in interface DbTypeConverter