blob: fdd7e6b87c0534bcdb439de42bf78d64f9ef0ac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package com.c2kernel.collection;
import com.c2kernel.lookup.EntityPath;
import com.c2kernel.persistency.ClusterStorage;
import com.c2kernel.process.Gateway;
/**
* @version $Revision: 1.22 $ $Date: 2004/10/21 08:02:23 $
* @author $Author: abranson $
*/
public class RelationshipUtils
{
static public boolean getIsComposite(int entityKey)
{
if (entityKey == -1) return false;
try
{
if ( ((Aggregation) Gateway.getProxyManager().getProxy(new EntityPath(entityKey)).getObject(ClusterStorage.COLLECTION+"/Composition" )).size() > 0 )
return true;
}
catch (Exception ex)
{
//do nothing - member has no composition, thus elementary
}
return false;
}
}
|