3 * Copyright (C) 2014 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.
10 package eu
.etaxonomy
.taxeditor
.remoting
.cache
;
12 import org
.hibernate
.collection
.spi
.PersistentCollection
;
14 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
15 import eu
.etaxonomy
.taxeditor
.remoting
.cache
.CachedCommonServiceImpl
.CollectionField
;
22 public interface ICachedCommonService
{
24 public CdmBase
find(Class
<?
extends CdmBase
> clazz
, int id
);
26 public PersistentCollection
initializeCollection(PersistentCollection col
);
28 public void updatePersistentCollection(CollectionField colf
);
30 public boolean isEmpty(PersistentCollection col
);
32 public int size(PersistentCollection col
);
34 public Object
get(PersistentCollection col
, int index
);
36 public boolean contains(PersistentCollection col
, Object element
);
38 public boolean containsKey(PersistentCollection col
, Object key
);
40 public boolean containsValue(PersistentCollection col
, Object element
);
42 public CollectionField
getCollectionField(PersistentCollection pc
);