All Known Implementing Classes:
ModelEntity, ModelGrantRecord, ModelPolicyMappingRecord, ModelPrincipalAuthenticationData, SchemaVersion

public interface Converter<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a ResultSet to model.
    default org.postgresql.util.PGobject
     
    toMap(DatabaseType databaseType)
    Convert a model into a Map with keys as snake case names, where as values as values of member of model obj.
  • Method Details

    • fromResultSet

      T fromResultSet(ResultSet rs) throws SQLException
      Converts a ResultSet to model.
      Parameters:
      rs - : ResultSet from JDBC.
      Returns:
      the corresponding business entity
      Throws:
      SQLException - : Exception while fetching from ResultSet.
    • toMap

      Map<String,Object> toMap(DatabaseType databaseType)
      Convert a model into a Map with keys as snake case names, where as values as values of member of model obj.
    • toJsonbPGobject

      default org.postgresql.util.PGobject toJsonbPGobject(String props)