3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.annotatedlineeditor
;
15 * Performs the retrieving and saving of a list of entities edited by a <code>ListEditor</code>,
16 * interacting with the persistence layer.
18 * The methods' element input parameter is typically the <code>ListEditor</code>'s <code>IEditorInput</code>.
24 public interface IEntityPersistenceService
<T
> {
29 * @param entity a {@link java.lang.Object} object.
32 boolean create(T entity
);
37 * @param entity a {@link java.lang.Object} object.
40 boolean save(T entity
);
45 * @param entity a {@link java.lang.Object} object.
46 * @param mergeTarget a {@link java.lang.Object} object.
49 boolean merge(T entity
, T mergeTarget
);
54 * @param entity a {@link java.lang.Object} object.
57 boolean delete(T entity
);