@Transient public String getParentAc() { if ( parent != null ) { parentAc = parent.getAc(); } return parentAc; }
@Transient public String getParentAc() { if (parent != null) { parentAc = parent.getAc(); } return parentAc; }
@Transient public String getParentAc() { if ( parent != null ) { parentAc = parent.getAc(); } return parentAc; }
@Transient public String getParentAc() { if (parent != null) { parentAc = parent.getAc(); } return parentAc; }
@Transient public String getParentAc() { if ( parent != null ) { parentAc = parent.getAc(); } return parentAc; }
@Transient public String getParentAc() { if ( parent != null ) { parentAc = parent.getAc(); } return parentAc; }
public AnnotatedObjectStatsUnit(AnnotatedObject ao) { this.shortLabel = ao.getShortLabel(); this.ac = ao.getAc(); this.type = CgLibUtil.removeCglibEnhanced(ao.getClass()); }
public AnnotatedObjectStatsUnit(AnnotatedObject ao) { this.shortLabel = ao.getShortLabel(); this.ac = ao.getAc(); this.type = CgLibUtil.removeCglibEnhanced(ao.getClass()); }
public SimplifiedAnnotatedObject( AnnotatedObject annotatedObject ) { this.ac = annotatedObject.getAc(); this.shortLabel = annotatedObject.getShortLabel(); this.created = annotatedObject.getCreated(); }
public SimplifiedAnnotatedObject( AnnotatedObject annotatedObject ) { this.ac = annotatedObject.getAc(); this.shortLabel = annotatedObject.getShortLabel(); this.created = annotatedObject.getCreated(); }
public SimplifiedAnnotatedObject( AnnotatedObject annotatedObject ) { this.ac = annotatedObject.getAc(); this.shortLabel = annotatedObject.getShortLabel(); this.created = annotatedObject.getCreated(); }
private void deleteSearchItemsForAnnotatedObject( AnnotatedObject<? extends Xref, ? extends Alias> ao ) { if ( log.isDebugEnabled() ) { log.debug( "Deleting SearchItems for AnnotatedObject: " + ao.getShortLabel() + " (" + ao.getAc() + ")" ); } IntactContext.getCurrentInstance().getDataContext().getDaoFactory() .getSearchItemDao().deleteByAc( ao.getAc() ); }
private <T extends AnnotatedObject> void warnIfInteractionDuplicate( T ao, T managedObject ) { if ( log.isWarnEnabled() && ao instanceof Interaction ) { Interaction newInteraction = ( Interaction ) ao; Interaction existingInteraction = ( Interaction ) managedObject; String newImexId = InteractionUtils.getImexIdentifier( newInteraction ); String existingImexId = InteractionUtils.getImexIdentifier( existingInteraction ); log.warn( "An AC already exists for this interaction. Possibly a duplicate? : Existing [" + managedObject.getAc() + ", " + managedObject.getShortLabel() + ", " + existingImexId + "] - " + "New [-, " + ao.getShortLabel() + ", " + newImexId + "]. The existing interaction will be updated" ); } }
private <T extends AnnotatedObject> void warnIfInteractionDuplicate( T ao, T managedObject ) { if ( log.isWarnEnabled() && ao instanceof Interaction ) { Interaction newInteraction = ( Interaction ) ao; Interaction existingInteraction = ( Interaction ) managedObject; String newImexId = InteractionUtils.getImexIdentifier( newInteraction ); String existingImexId = InteractionUtils.getImexIdentifier( existingInteraction ); log.warn( "An AC already exists for this interaction. Possibly a duplicate? : Existing [" + managedObject.getAc() + ", " + managedObject.getShortLabel() + ", " + existingImexId + "] - " + "New [-, " + ao.getShortLabel() + ", " + newImexId + "]. The existing interaction will be updated" ); } }
private void insertSearchItemForAnnotatedObject( AnnotatedObject<? extends Xref, ? extends Alias> ao, boolean includeAliases ) { if ( log.isDebugEnabled() ) { log.debug( "Inserting SearchItems for AnnotatedObject: " + ao.getShortLabel() + " (" + ao.getAc() + ")" ); } for ( SearchItem searchItem : searchItemsForAnnotatedObject( ao, includeAliases ) ) { if ( log.isDebugEnabled() ) { log.debug( "\t" + searchItem ); } IntactContext.getCurrentInstance().getDataContext().getDaoFactory() .getSearchItemDao().persist( searchItem ); } }
/** * 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)); }
private Annotation synchronizeAnnotation( Annotation annotation, AnnotatedObject parent ) { if (annotation.getAc() != null) { return IntactContext.getCurrentInstance().getDataContext().getDaoFactory() .getAnnotationDao().getByAc(annotation.getAc()); } else { } annotation.setCvTopic( synchronize( annotation.getCvTopic() ) ); if (annotation.getAc() == null && parent.getAc() != null) { annotatedObjectsToPersist.put(keyBuilder.keyForAnnotation(annotation, parent), annotation); } return annotation; }
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; }
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; }
private Annotation synchronizeAnnotation( Annotation annotation, AnnotatedObject parent ) { if (annotation.getAc() != null) { return IntactContext.getCurrentInstance().getDataContext().getDaoFactory() .getAnnotationDao().getByAc(annotation.getAc()); } else { } annotation.setCvTopic( synchronize( annotation.getCvTopic() ) ); if (annotation.getAc() == null && parent.getAc() != null) { annotatedObjectsToPersist.put(keyBuilder.keyForAnnotation(annotation, parent), annotation); } return annotation; }