class JDBCCertRecordStoreConnection implements CertRecordStoreConnection {

    @Override
    public X509CertRecord getX509CertRecord(String provider, String instanceId, String service) {
        
        final String caller = "getX509CertRecord";

        X509CertRecord certRecord = null;
        try (PreparedStatement ps = con.prepareStatement(SQL_GET_X509_RECORD)) {
            ps.setString(1, provider);
            ps.setString(2, instanceId);
            ps.setString(3, service);
            
            try (ResultSet rs = executeQuery(ps, caller)) {
                if (rs.next()) {
                    certRecord = setRecordFromResultSet(rs);
                }
            }
        } catch (SQLException ex) {
            throw sqlError(ex, caller);
        }
        return certRecord;
    }

    public  JDBCCertRecordStoreConnection(Connection con);

}