They are pickled in salted brine and then either put into oil (with spices or not) or into vinegar marinade (and then sold either in vinegar or in different sauces such as mustard, cream, dill etc.) or they are only slightly vinegared (after the salted brine of course) and put into oil.