| java.lang.Object org.cougaar.tools.csmart.ui.community.CommunityDBUtils
CommunityDBUtils | public class CommunityDBUtils (Code) | | Methods for interfacing to database and supporting community displays.
These methods do not modify the community table display.
|
Method Summary | |
public static void | deleteCommunityAttribute(String communityId, String attributeId, String attributeValue, String assemblyId) | public static void | deleteCommunityInfo(String communityId, String assemblyId) | public static void | deleteEntityAttribute(String communityId, String entityId, String attributeId, String attributeValue, String assemblyId) | public static void | deleteEntityInfo(String communityId, String entityId, String assemblyId) | public static ArrayList | getCommunities() | public static ArrayList | getCommunitiesForExperiment(String assemblyId) | public static ArrayList | getEntities(String communityId, String assemblyId) | public static String | getEntityType(String entityId, String assemblyId) | public static void | insertCommunityAttribute(String communityId, String assemblyId) Insert a new parameter for the community into the database. | public static void | insertCommunityInfo(String communityId, String communityType, String assemblyId) Insert the community into the database. | public static void | insertEntityAttribute(String communityId, String entityId, String assemblyId) Insert a new parameter for the entity into the database. | public static void | insertEntityInfo(String communityId, String entityId, String attributeName, String attributeValue, String assemblyId) Insert the entity into the database. | public static boolean | isCommunityInUse(String communityId, String assemblyId) | public static void | setCommunityAttributeId(String communityId, String attributeId, String prevAttributeId, String attributeValue, String assemblyId) | public static void | setCommunityAttributeValue(String communityId, String attributeValue, String attributeId, String prevAttributeValue, String assemblyId) | public static void | setEntityAttributeId(String communityId, String entityId, String attributeId, String prevAttributeId, String attributeValue, String assemblyId) | public static void | setEntityAttributeValue(String communityId, String entityId, String attributeValue, String attributeId, String prevAttributeValue, String assemblyId) |
deleteCommunityAttribute | public static void deleteCommunityAttribute(String communityId, String attributeId, String attributeValue, String assemblyId)(Code) | | |
deleteCommunityInfo | public static void deleteCommunityInfo(String communityId, String assemblyId)(Code) | | |
getCommunities | public static ArrayList getCommunities()(Code) | | Get all known community IDs
|
getCommunitiesForExperiment | public static ArrayList getCommunitiesForExperiment(String assemblyId)(Code) | | Get all community IDs for this experiment
|
getEntities | public static ArrayList getEntities(String communityId, String assemblyId)(Code) | | Get all Entity IDs in the given community
Parameters: communityId - a String value Parameters: assemblyId - a String Assembly to limit ourselves to an ArrayList value |
getEntityType | public static String getEntityType(String entityId, String assemblyId)(Code) | | Parameters: entityId - a String value Parameters: assemblyId - a String Assembly to limit ourselves to a String value |
insertCommunityAttribute | public static void insertCommunityAttribute(String communityId, String assemblyId)(Code) | | Insert a new parameter for the community into the database.
Parameters: communityId - the community Parameters: assemblyId - a String Assembly to limit ourselves to |
insertCommunityInfo | public static void insertCommunityInfo(String communityId, String communityType, String assemblyId)(Code) | | Insert the community into the database.
Parameters: communityId - the community Parameters: communityType - the community type Parameters: assemblyId - a String Assembly to limit ourselves to |
insertEntityAttribute | public static void insertEntityAttribute(String communityId, String entityId, String assemblyId)(Code) | | Insert a new parameter for the entity into the database.
Parameters: communityId - the community Parameters: entityId - the entity Parameters: assemblyId - a String Assembly to limit ourselves to |
insertEntityInfo | public static void insertEntityInfo(String communityId, String entityId, String attributeName, String attributeValue, String assemblyId)(Code) | | Insert the entity into the database.
Parameters: communityId - the community Parameters: entityId - the ID of the entity Parameters: attributeName - the attribute to enter Parameters: attributeValue - the value of the new attribute Parameters: assemblyId - a String Assembly to limit ourselves to |
isCommunityInUse | public static boolean isCommunityInUse(String communityId, String assemblyId)(Code) | | Parameters: communityId - a String value Parameters: assemblyId - a String Assembly to limit ourselves to a boolean value |
setCommunityAttributeValue | public static void setCommunityAttributeValue(String communityId, String attributeValue, String attributeId, String prevAttributeValue, String assemblyId)(Code) | | |
|
|