class TrimDao {

    public TrimEntry get() {
        try (Connection con = databaseManager.getDataSource().getConnection();
             PreparedStatement pstmt = con.prepareStatement("SELECT * FROM trim");
             ResultSet rs = pstmt.executeQuery()) {
            if (rs.next()) {
                return new TrimEntry(rs.getLong("db_id"), rs.getInt("height"), rs.getBoolean("done"));
            } else {
                return null;
            }
        } catch (SQLException e) {
            throw new RuntimeException(e.toString(), e);
        }
    }

    @Inject public  TrimDao(DatabaseManager databaseManager);

}