2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.annotatedlineeditor
;
12 import eu
.etaxonomy
.cdm
.api
.service
.config
.DeleteConfiguratorBase
;
13 import eu
.etaxonomy
.cdm
.api
.service
.exception
.ReferencedObjectUndeletableException
;
17 * Performs the retrieving and saving of a list of entities edited by a <code>ListEditor</code>,
18 * interacting with the persistence layer.
20 * The methods' element input parameter is typically the <code>ListEditor</code>'s <code>IEditorInput</code>.
26 public interface IEntityPersistenceService
<T
> {
31 * @param entity a {@link java.lang.Object} object.
39 * @param entity a {@link java.lang.Object} object.
47 * @param entity a {@link java.lang.Object} object.
48 * @param mergeTarget a {@link java.lang.Object} object.
51 boolean merge(T entity
, T mergeTarget
);
56 * @param entity a {@link java.lang.Object} object.
58 * @throws ReferencedObjectUndeletableException
60 boolean delete(T entity
, DeleteConfiguratorBase config
) throws ReferencedObjectUndeletableException
;