Interface Converter<T>
- All Known Implementing Classes:
ModelEntity,ModelGrantRecord,ModelPolicyMappingRecord,ModelPrincipalAuthenticationData,SchemaVersion
public interface Converter<T>
-
Method Summary
Modifier and TypeMethodDescriptionConverts a ResultSet to model.default org.postgresql.util.PGobjecttoJsonbPGobject(String props) 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
Converts a ResultSet to model.- Parameters:
rs- : ResultSet from JDBC.- Returns:
- the corresponding business entity
- Throws:
SQLException- : Exception while fetching from ResultSet.
-
toMap
Convert a model into a Map with keys as snake case names, where as values as values of member of model obj. -
toJsonbPGobject
-