Display the name of the ConnectionEvent constant given the event id.

@param eventID a valid ConnectionEvent constant value.

@return The name of the ConnectionEvent constant, or a string indicating the constant
is unknown.
493599
public static String getConnectionEventString(int eventID) {
        switch (eventID) {

            case ConnectionEvent.CONNECTION_CLOSED: 
                return "CONNECTION CLOSED (" + eventID + ')'; 

            case ConnectionEvent.LOCAL_TRANSACTION_STARTED: 
                return "LOCAL TRANSACTION STARTED (" + eventID + ')'; 

            case ConnectionEvent.LOCAL_TRANSACTION_COMMITTED: 
                return "LOCAL TRANSACTION COMMITTED (" + eventID + ')'; 

            case ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK: 
                return "LOCAL TRANSACTION ROLLEDBACK (" + eventID + ')'; 

            case ConnectionEvent.CONNECTION_ERROR_OCCURRED: 
                return "CONNECTION ERROR OCCURRED (" + eventID + ')'; 

            case WSConnectionEvent.CONNECTION_ERROR_OCCURRED_NO_EVENT:
                return "CONNECTION ERROR OCCURRED NO EVENT (" + eventID + ')';

            case WSConnectionEvent.SINGLE_CONNECTION_ERROR_OCCURRED:
                return "SINGLE CONNECTION ERROR OCCURRED (" + eventID + ')';
        }

        return "UNKNOWN CONNECTION EVENT CONSTANT (" + eventID + ')'; 
    }
1157736
public SourceType identifyWithEventName(String source, String eventName) {
        if (eventName.startsWith(CREATE_EVENT_PREFIX)) {
            return getCloudTrailSourceType(source);
        }
        return SourceType.Other;
    }
1357883
public static String getEventName(String channelName) {
        int i = channelName.indexOf(EVENT_PREFIX);
        return i < 0 ? channelName : channelName.substring(i + EVENT_PREFIX.length());
    }
932072
public void setEventInstanceId(int v) {
    if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_eventInstanceId == null)
      jcasType.jcas.throwFeatMissing("eventInstanceId", "de.unihd.dbs.uima.types.heideltime.Event");
    jcasType.ll_cas.ll_setIntValue(addr, ((Event_Type)jcasType).casFeatCode_eventInstanceId, v);}
110730
public String getString(int id)
	{
		Activity activity = activityUtils.getCurrentActivity(false);
		if(activity == null){
			return "";
		}
		return activity.getString(id);
	}
569345
private String getDeviceName(String eventName) {
        int pos = eventName.lastIndexOf('.');
        return eventName.substring(0, pos);
    }
393431
public static ServerSentEvent withEventId(ByteBuf eventId, ByteBuf data) {
        return new ServerSentEvent(eventId, null, data);
    }
1054910
private String getUsernameForUserId(int id) {
        if (id > 0) {
            String username = userIdentityStore.getPortalUserName(id);
            if (username != null) {
                return username;
            }
            logger.warn(
                    "Invalid userID {} found when exporting a portlet; return system username instead",
                    id);
        }
        return systemUsername;
    }
547001
public final static String getDisplayName(String ID) {
        return getDisplayName(ID, ULocale.getDefault(Category.DISPLAY));
    }
1014709
private static String getServerIdString(String id) {

        if (id.contains(CmsADEManager.CLIENT_ID_SEPERATOR)) {
            id = id.substring(0, id.indexOf(CmsADEManager.CLIENT_ID_SEPERATOR));
        }
        return id;
    }
760928
protected String formatAnnounceEvent(
          AnnounceRequestMessage.RequestEvent event) {
    return AnnounceRequestMessage.RequestEvent.NONE.equals(event)
            ? ""
            : String.format(" %s", event.name());
  }
665843
public static String topologyIdToName(String topologyId) throws InvalidTopologyException {
        String ret;
        int index = topologyId.lastIndexOf('-');
        if (index != -1 && index > 2) {
            index = topologyId.lastIndexOf('-', index - 1);
            if (index != -1 && index > 0)
                ret = topologyId.substring(0, index);
            else
                throw new InvalidTopologyException(topologyId + " is not a valid topologyId");
        } else
            throw new InvalidTopologyException(topologyId + " is not a valid topologyId");
        return ret;
    }
1302745
public static String getConectorName(String pathManifest) throws InitializationException {

        String connectionName = "";
        try {
            Document document = getDocument(pathManifest);

            Object result = getResult(document, "//ConnectorName/text()");
            connectionName = ((NodeList) result).item(0).getNodeValue();

        } catch (SAXException | XPathExpressionException | IOException | ParserConfigurationException e) {
            String msg = "Impossible to read DataStoreName in Manifest with the connector configuration."
                    + e.getCause();
            LOGGER.error(msg);
            throw new InitializationException(msg, e);
        }

        return connectionName;
    }
1362176
static void decodeTo(String eventKey, Collection<String> eventIds) {
        int startIdx = 0;
        String prevId = null;
        for (int i = 0; i < eventKey.length(); i++) {
            char ch = eventKey.charAt(i);
            if (ch == DELIM_REGULAR || ch == DELIM_SHARED_PREFIX) {
                String eventId = checkValid(combine(prevId, eventKey.substring(startIdx, i)));
                eventIds.add(eventId);
                prevId = (ch == DELIM_REGULAR) ? null : eventId;
                startIdx = i + 1;
            }
        }
        // Add the final event ID
        eventIds.add(checkValid(combine(prevId, eventKey.substring(startIdx, eventKey.length()))));
    }
524853
@Override
    protected String getInstanceIdName(int id)
    {
        switch (id - super.getMaxInstanceId()) {
          case Id_prefix: return "prefix";
          case Id_uri: return "uri";
        }
        return super.getInstanceIdName(id);
    }
901242
private String getTagName(final XMLEvent event) {

		if (event.isStartElement()) {
			return event.asStartElement().getName().toString();
		}

		if (event.isEndElement()) {
			return event.asEndElement().getName().toString();
		}

		return null;
	}
1051617
private Map<String, String> readCustomInfo(long eventId) {
        List<Map<String, Object>> rows = getJdbcTemplate()
            .queryForList("select * from EVENTS_CUSTOMINFO where EVENT_ID=" + eventId);
        Map<String, String> customInfo = new HashMap<String, String>(rows.size());
        for (Map<String, Object> row : rows) {
            customInfo.put((String)row.get("CUST_KEY"), (String)row.get("CUST_VALUE"));
        }
        return customInfo;
    }