uk.ac.ebi.intact.model.Alias.getAc()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中uk.ac.ebi.intact.model.Alias.getAc()方法的一些代码示例,展示了Alias.getAc()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alias.getAc()方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Alias
类名称:Alias
方法名:getAc

Alias.getAc介绍

暂无

代码示例

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

public static boolean sameAlias( Alias a1, Alias a2 ) {
  if (a1.getAc() != null && a2.getAc() != null) {
    return a1.getAc().equals(a2.getAc());
  }
  if ( !same( a1.getName(), a2.getName() ) ) {
    return false;
  }
  if ( !CvObjectUtils.areEqual( a1.getCvAliasType(), a2.getCvAliasType() ) ) {
    return false;
  }
  return true;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

public static boolean sameAlias( Alias a1, Alias a2 ) {
  if (a1.getAc() != null && a2.getAc() != null) {
    return a1.getAc().equals(a2.getAc());
  }
  if ( !same( a1.getName(), a2.getName() ) ) {
    return false;
  }
  if ( !CvObjectUtils.areEqual( a1.getCvAliasType(), a2.getCvAliasType() ) ) {
    return false;
  }
  return true;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

private Alias synchronizeAlias( Alias alias, AnnotatedObject parent ) {
  if (alias.getAc() != null) {
    return IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
        .getAliasDao().getByAc(alias.getAc());
  }
  alias.setCvAliasType( synchronize( alias.getCvAliasType() ) );
  alias.setParent(parent);
  if (alias.getAc() == null && parent.getAc() != null) {
    annotatedObjectsToPersist.put(keyBuilder.keyForAlias(alias), alias);
  }
  return alias;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

private Alias synchronizeAlias( Alias alias, AnnotatedObject parent ) {
  if (alias.getAc() != null) {
    return IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
        .getAliasDao().getByAc(alias.getAc());
  }
  alias.setCvAliasType( synchronize( alias.getCvAliasType() ) );
  alias.setParent(parent);
  if (alias.getAc() == null && parent.getAc() != null) {
    annotatedObjectsToPersist.put(keyBuilder.keyForAlias(alias), alias);
  }
  return alias;
}

代码示例来源:origin: uk.ac.ebi.intact/intact-core

private void insertSearchItemForAlias( Alias alias ) {
  if ( log.isDebugEnabled() ) {
    log.debug( "Inserting SearchItems for Alias: " + alias.getName() + " (" + alias.getAc() + "); Parent AC: " + alias.getParentAc() );
  }
  if ( !isAliasSearchable( alias ) ) {
    return;
  }
  SearchItem searchItem = searchItemForAlias( alias );
  if ( log.isDebugEnabled() ) {
    log.debug( "\t" + searchItem );
  }
  IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
      .getSearchItemDao().persist( searchItem );
}

代码示例来源:origin: uk.ac.ebi.intact/intact-core

private void deleteSearchItemForAlias( Alias alias ) {
  if ( log.isDebugEnabled() ) {
    log.debug( "Deleting SearchItems for Alias: " + alias.getName() + " (" + alias.getAc() + "); Parent AC: " + alias.getParentAc() );
  }
  if ( !isAliasSearchable( alias ) ) {
    return;
  }
  SearchItem searchItem = searchItemForAlias( alias );
  IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
      .getSearchItemDao().delete( searchItem );
}

相关文章