class JDBCConnection implements ObjectStoreConnection {

    @Override
    public boolean deleteGroupMember(String domainName, String groupName, String principal, String admin, String auditRef) {

        final String caller = "deleteGroupMember";

        int domainId = getDomainId(domainName);
        if (domainId == 0) {
            throw notFoundError(caller, ZMSConsts.OBJECT_DOMAIN, domainName);
        }
        int groupId = getGroupId(domainId, groupName);
        if (groupId == 0) {
            throw notFoundError(caller, ZMSConsts.OBJECT_GROUP, ZMSUtils.groupResourceName(domainName, groupName));
        }
        int principalId = getPrincipalId(principal);
        if (principalId == 0) {
            throw notFoundError(caller, ZMSConsts.OBJECT_PRINCIPAL, principal);
        }
        int affectedRows;
        try (PreparedStatement ps = con.prepareStatement(SQL_DELETE_GROUP_MEMBER)) {
            ps.setInt(1, groupId);
            ps.setInt(2, principalId);
            affectedRows = executeUpdate(ps, caller);
        } catch (SQLException ex) {
            throw sqlError(ex, caller);
        }

        boolean result = (affectedRows > 0);

        // add audit log entry for this change if the delete was successful
        // add return the result of the audit log insert operation

        if (result) {
            result = insertGroupAuditLog(groupId, admin, principal, "DELETE", auditRef);
        }

        return result;
    }

    public  JDBCConnection(Connection con, boolean autoCommit);

}