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

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

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

Alias.setParent介绍

暂无

代码示例

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

/**
 * Adds an alias to the object. The alis will only be added
 * if an equivalent alias is not yet part of the object.
 */
public void addAlias( A alias ) {
  this.aliases.add( alias );
  alias.setParent( this );
}

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

/**
 * Adds an alias to the object. The alis will only be added
 * if an equivalent alias is not yet part of the object.
 */
public void addAlias( A alias ) {
  this.aliases.add( alias );
  alias.setParent( this );
}

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

/**
 * Adds an alias to the object. The alis will only be added
 * if an equivalent alias is not yet part of the object.
 */
public void addAlias( A alias ) {
  this.aliases.add( alias );
  alias.setParent( this );
}

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

public void removeAlias( A alias ) {
  this.aliases.remove( alias );
  alias.setParent(null);
}

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

public void removeAlias( A alias ) {
  this.aliases.remove( alias );
  alias.setParent(null);
}

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

public static <A extends Alias> A createAlias(AnnotatedObject<?,A> parent, String name, CvAliasType aliasType) {
  A alias = (A) newAliasInstanceFor(parent.getClass());
  alias.setOwner(parent.getOwner());
  alias.setParent(parent);
  alias.setCvAliasType(aliasType);
  alias.setName(name);
  return alias;
}

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

public static <A extends Alias> A createAlias(AnnotatedObject<?, A> parent, String name, CvAliasType aliasType) {
  A alias = (A) newAliasInstanceFor(parent.getClass());
  alias.setOwner(parent.getOwner());
  alias.setParent(parent);
  alias.setCvAliasType(aliasType);
  alias.setName(name);
  return alias;
}

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

public static <A extends Alias> A createAlias(AnnotatedObject<?, A> parent, String name, CvAliasType aliasType) {
  A alias = (A) newAliasInstanceFor(parent.getClass());
  alias.setOwner(parent.getOwner());
  alias.setParent(parent);
  alias.setCvAliasType(aliasType);
  alias.setName(name);
  return alias;
}

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

for ( Alias alias : getAliases() ) {
  Alias aliasClone = ( Alias ) alias.clone();
  aliasClone.setParent( copy );
  copiedAliases.add( ( Alias ) alias.clone() );

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

for ( Alias alias : getAliases() ) {
  Alias aliasClone = ( Alias ) alias.clone();
  aliasClone.setParent( copy );
  copiedAliases.add( ( Alias ) alias.clone() );

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

for ( Alias alias : getAliases() ) {
  Alias aliasClone = ( Alias ) alias.clone();
  aliasClone.setParent( copy );
  copiedAliases.add( ( Alias ) alias.clone() );

代码示例来源: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.core/intact-persister

alias.setCvAliasType(cvAliasType);
alias.setParent(intactObject);
alias.setOwner(institutionPersister.syncIfTransient(alias.getOwner()));

相关文章