pl.edu.agh.cast.model.base.util
Class AbstractMainEntitiesUtil
java.lang.Object
pl.edu.agh.cast.model.base.util.AbstractMainEntitiesUtil
public abstract class AbstractMainEntitiesUtil
- extends Object
Utility methods used to find main entities.
- Author:
- AGH CAST Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMainEntitiesUtil
public AbstractMainEntitiesUtil()
getSortedEntities
public static SortedMap<IEntity,Integer> getSortedEntities(IDataSet dataSet)
- Returns SortedMap (as key is IEntity, as value this entity all relations count). Result map is sorted in
descending order by all relations count for entity.
- Parameters:
dataSet
- Input data set.
- Returns:
- sorted map.
setEntitiesAsMain
public static void setEntitiesAsMain(Collection<IEntity> entities)
- Sets the property isMain to true, for given collection of entities.
- Parameters:
entities
- The entities to set the property.
getEntityRelationsCount
protected static int getEntityRelationsCount(IEntity entity)
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.