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 ( Gateway.getProxyManager().getProxy(new EntityPath(entityKey)).getContents(ClusterStorage.COLLECTION).length > 0 ) return true; } catch (Exception ex) { //do nothing - member has no composition, thus elementary } return false; } }