resultInfo = getDaoFactory().getSearchItemDao().countGroupsByValuesLike( values, objClasses, type );
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 ); } }
List<String> acList = searchItemDao.getDistinctAc( values, classesToSearch, type, firstResult, maximumResultSize ); String[] acs = acList.toArray( new String[acList.size()] );
private void deleteSearchItemForXref( Xref xref ) { if ( log.isDebugEnabled() ) { log.debug( "Deleting SearchItems for Xref: " + xref.getPrimaryId() + " (" + xref.getAc() + "); Parent AC: " + xref.getParentAc() ); } SearchItem searchItem = searchItemForXref( xref ); IntactContext.getCurrentInstance().getDataContext().getDaoFactory() .getSearchItemDao().delete( searchItem ); }
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() ); }
List<String> acList = searchItemDao.getDistinctAc(values, classesToSearch, type, firstResult, maximumResultSize); String[] acs = acList.toArray(new String[acList.size()]);
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 ); }
resultInfo = getDaoFactory().getSearchItemDao().countGroupsByValuesLike(values, objClasses, type);
private void insertSearchItemForXref( Xref xref ) { if ( log.isDebugEnabled() ) { log.debug( "Inserting SearchItems for Xref: " + xref.getPrimaryId() + " (" + xref.getAc() + "); Parent AC: " + xref.getParentAc() ); } SearchItem searchItem = searchItemForXref( xref ); if ( log.isDebugEnabled() ) { log.debug( "\t" + searchItem ); } IntactContext.getCurrentInstance().getDataContext().getDaoFactory() .getSearchItemDao().persist( searchItem ); }
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 ); }