@RequiresSession
  public List<ExtensionLinkEntity> findByExtension(String extensionName, String extensionVersion) {
    TypedQuery<ExtensionLinkEntity> query = entityManagerProvider.get().createNamedQuery(
        "ExtensionLinkEntity.findByExtension", ExtensionLinkEntity.class);

    query.setParameter("extensionName", extensionName);
    query.setParameter("extensionVersion", extensionVersion);

    return daoUtils.selectList(query);
  }
Gets the extension links that match the specified extension name and version.

@return the extension links matching the specified extension name and version if any.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ExtensionLinkDAO.java