Revision 80de230c
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/ICdmEntitySessionManager.java | ||
---|---|---|
7 | 7 |
|
8 | 8 |
public interface ICdmEntitySessionManager { |
9 | 9 |
|
10 |
public abstract CdmEntitySession getActiveSession(); |
|
10 |
public abstract ICdmEntitySession getActiveSession();
|
|
11 | 11 |
|
12 |
public abstract CdmEntitySession getSession( |
|
12 |
public abstract ICdmEntitySession getSession(
|
|
13 | 13 |
ISessionEventListener sessionOwner); |
14 | 14 |
|
15 | 15 |
public abstract void bind(ISessionEventListener sessionOwner); |
... | ... | |
30 | 30 |
public abstract <T extends CdmBase> Collection<T> load( |
31 | 31 |
Collection<T> cdmBaseList); |
32 | 32 |
|
33 |
@SuppressWarnings("unchecked") |
|
34 |
public abstract <T extends CdmBase> void addRootEntity(T cdmBase); |
|
35 |
|
|
36 |
@SuppressWarnings("unchecked") |
|
37 |
public abstract <T extends Object> void addRootEntities( |
|
38 |
Collection<T> cdmBaseList); |
|
39 |
|
|
33 |
public abstract void dispose(ISessionEventListener owner); |
|
34 |
|
|
40 | 35 |
//FIXME:Remoting would be nice to have these methods working, |
41 | 36 |
// but they can only be useful if we can 'intelligently' |
42 | 37 |
// get from a model class to the correspoding service class |
38 |
|
|
39 |
// @SuppressWarnings("unchecked") |
|
40 |
// public abstract <T extends CdmBase> void addRootEntity(T cdmBase); |
|
41 |
// |
|
42 |
// @SuppressWarnings("unchecked") |
|
43 |
// public abstract <T extends Object> void addRootEntities( |
|
44 |
// Collection<T> cdmBaseList); |
|
45 |
|
|
43 | 46 |
// public abstract void commit(); |
44 | 47 |
// |
45 | 48 |
// public abstract void commit(ISessionEventListener sessionOwner); |
46 | 49 |
// |
47 | 50 |
// public abstract void commit(IService service, CdmBase cdmBase); |
48 | 51 |
|
49 |
public abstract void dispose(ISessionEventListener owner); |
|
52 |
|
|
50 | 53 |
|
51 | 54 |
} |
Also available in: Unified diff
updated manifest for deleted test dir
removed unnecessary commit root entity methods in session and session manager