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
;
13 import eu
.etaxonomy
.cdm
.api
.service
.config
.DeleteConfiguratorBase
;
14 import eu
.etaxonomy
.cdm
.api
.service
.exception
.ReferencedObjectUndeletableException
;
18 * Performs the retrieving and saving of a list of entities edited by a <code>ListEditor</code>,
19 * interacting with the persistence layer.
21 * The methods' element input parameter is typically the <code>ListEditor</code>'s <code>IEditorInput</code>.
27 public interface IEntityPersistenceService
<T
> {
32 * @param entity a {@link java.lang.Object} object.
40 * @param entity a {@link java.lang.Object} object.
48 * @param entity a {@link java.lang.Object} object.
49 * @param mergeTarget a {@link java.lang.Object} object.
52 boolean merge(T entity
, T mergeTarget
);
57 * @param entity a {@link java.lang.Object} object.
59 * @throws ReferencedObjectUndeletableException
61 boolean delete(T entity
, DeleteConfiguratorBase config
) throws ReferencedObjectUndeletableException
;