Tabnine Logo
uk.ac.ebi.intact.core.persister
Code IndexAdd Tabnine to your IDE (free)

How to use uk.ac.ebi.intact.core.persister

Best Java code snippets using uk.ac.ebi.intact.core.persister (Showing top 20 results out of 315)

origin: uk.ac.ebi.intact.core/intact-core

protected Key keyForExperiment(Experiment experiment) {
  return new Key(new ExperimentKeyCalculator().calculateExperimentKey(experiment));
}
origin: uk.ac.ebi.intact.core/intact-core

protected void copyLifecycleEvent( LifecycleEvent source, LifecycleEvent target ) {
  copyProperty(source, "event", target);
  copyProperty(source, "who", target);
  copyProperty(source, "when", target);
  copyProperty(source, "publication", target);
  copyProperty(source, "note", target);
}
origin: uk.ac.ebi.intact.core/intact-core

private void synchronizeInstitution( Institution institution, boolean synchronyzeCommonAttributes ) {
  if (synchronyzeCommonAttributes){
    synchronizeAnnotatedObjectCommons( institution );
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

  protected Key keyForFeature(Feature feature) {


    if (feature.getComponent() == null) {
      throw new IllegalArgumentException("Cannot create a feature key for feature without component: " + feature);
    }

    Key componentKey = keyFor(feature.getComponent());
    return new Key(new FeatureKeyCalculator().calculateFeatureKey(feature) + "___" + componentKey.getUniqueString());

//        return new Key( keyForAnnotatedObject( feature ).getUniqueString() + "___" + componentKey.getUniqueString() );
  }
 
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-exchange

/**
 * Imports an IntactEntry into intact
 *
 * @param entry  the intact entry to import
 *
 * @return report of the import
 *
 * @throws PersisterException thrown if there are problems persisting the data in the intact-model database
 */
public void importIntoIntact(IntactEntry entry) throws PersisterException {
  corePersister.saveOrUpdate(entry);
}
origin: uk.ac.ebi.intact.core/intact-persister

/**
 * Checks is the given object already synchronized with the persistence session.
 * @param intactObject object to be synced.
 * @return a response that contains the answer.
 */
protected final SyncTransientResponse<T> syncIfTransientResponse(T intactObject) {
   T refreshedObject = syncIfTransient(intactObject);
  if (refreshedObject.getAc() != null) {
    return new SyncTransientResponse<T>(true, refreshedObject);
  }
  
  return new SyncTransientResponse<T>(false, syncAttributes(intactObject));
}
origin: uk.ac.ebi.intact.core/intact-persister

  public PersisterUnexpectedException(String message, Throwable cause) {
    super(message, cause);
    PersisterContext.getInstance().clear();
  }
}
origin: uk.ac.ebi.intact.core/intact-persister

/**
 * Mandatory method to execute the actual data persister in the database.
 */
public final void commit() {
  PersisterContext.getInstance().persistAll();
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

  protected boolean isCollectionClonable(Collection col) {
    return IntactCore.isInitialized(col);
  }
}
origin: uk.ac.ebi.intact.core/intact-persister

  @Override
  protected PersisterContext initialValue() {
    return new PersisterContext();
  }
};
origin: uk.ac.ebi.intact.core/intact-persister

  @Override
  protected SyncContext initialValue() {
    return new SyncContext();
  }
};
origin: uk.ac.ebi.intact.core/intact-core

  protected Key keyForFeature(Feature feature) {


    if (feature.getComponent() == null) {
      throw new IllegalArgumentException("Cannot create a feature key for feature without component: " + feature);
    }

    Key componentKey = keyFor(feature.getComponent());
    return new Key(new FeatureKeyCalculator().calculateFeatureKey(feature) + "___" + componentKey.getUniqueString());

//        return new Key( keyForAnnotatedObject( feature ).getUniqueString() + "___" + componentKey.getUniqueString() );
  }
 
origin: uk.ac.ebi.intact.core/intact-core-readonly

protected Key keyForExperiment(Experiment experiment) {
  return new Key(new ExperimentKeyCalculator().calculateExperimentKey(experiment));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

protected void copyBioSource( BioSource source, BioSource target ) {
  copyProperty(source, "taxId", target);
  copyProperty(source, "cvTissue", target);
  copyProperty(source, "cvCellType", target);
}
origin: uk.ac.ebi.intact.core/intact-persister

  public PersisterException(String message, Throwable cause) {
    super(message, cause);
    PersisterContext.getInstance().clear();
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

private void synchronizeInstitution( Institution institution, boolean synchronyzeCommonAttributes ) {
  if (synchronyzeCommonAttributes){
    synchronizeAnnotatedObjectCommons( institution );
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

protected void copyLifecycleEvent( LifecycleEvent source, LifecycleEvent target ) {
  copyProperty(source, "event", target);
  copyProperty(source, "who", target);
  copyProperty(source, "when", target);
  copyProperty(source, "publication", target);
  copyProperty(source, "note", target);
}
origin: uk.ac.ebi.intact.core/intact-persister

public PersisterUnexpectedException(String message) {
  super(message);
  PersisterContext.getInstance().clear();
}
origin: uk.ac.ebi.intact.core/intact-core

protected void copyBioSource( BioSource source, BioSource target ) {
  copyProperty(source, "taxId", target);
  copyProperty(source, "cvTissue", target);
  copyProperty(source, "cvCellType", target);
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

protected void copyInstitution( Institution source, Institution target ) {
  copyProperty(source, "url", target);
  copyProperty(source, "postalAddress", target);
}
uk.ac.ebi.intact.core.persister

Most used classes

  • CorePersister
  • PersisterException
    TODO comment this
  • PersisterHelper
    Helper class to reduce the code needed to save or update an Annotated object.
  • PersisterStatistics
    Gathers statistics during saveOrUpdate by the CorePersister
  • IntactCore
    Global persistence utilities, based on the philosophy of the org.hibernate.Hibernate class.
  • StatsUnitFactory,
  • CvObjectStatsUnit,
  • BulkOperationsImpl,
  • CoreDeleterImpl,
  • CorePersisterImpl,
  • DefaultEntityStateCopier,
  • EntityStateCopier,
  • EqualsUtils,
  • Finder,
  • FinderException,
  • IntactObjectDeleteException,
  • Key,
  • KeyBuilder$ExperimentKeyCalculator,
  • KeyBuilder$FeatureKeyCalculator
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now