private void addNotificationLog(NotificationEvent event, ListenerEvent listenerEvent, Connection dbConn,
                                  SQLGenerator sqlGenerator) throws MetaException, SQLException {
    LOG.debug("DbNotificationListener: adding notification log for : {}", event.getMessage());
    addNotificationLogBatch(Collections.singletonList(event), Collections.singletonList(listenerEvent),
            dbConn, sqlGenerator);
  }
Get the next event ID.

@return The next ID to use for an event.
@throws SQLException if a database access error occurs or this method is
          called on a closed connection
@throws MetaException if the sequence table is not properly initialized
hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java