AnnotatedObject result = getDaoFactory().getAnnotatedObjectDao( searchClass.getMappedClass() ).getByAc( values[0].toUpperCase() ); List<? extends AnnotatedObject> res = getDaoFactory().getAnnotatedObjectDao( clazzToSearch ).getByAc( acs );
AnnotatedObject result = getDaoFactory().getAnnotatedObjectDao(searchClass.getMappedClass()).getByAc(values[0].toUpperCase()); List<? extends AnnotatedObject> res = getDaoFactory().getAnnotatedObjectDao(clazzToSearch).getByAc(acs);
/** * Loads all CvTopics that should not be shown on the public interface. */ private AnnotationFilter() { logger.debug( "Initializing which CvTopic should be filtered out." ); // search for the CvTopic no-export CvTopic noExport = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotatedObjectDao( CvTopic.class ).getByShortLabel( CvTopic.NO_EXPORT ); if ( noExport != null ) { // load all CvTopics Collection<CvTopic> cvTopics = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCvObjectDao( CvTopic.class ).getAll(); // select those that have an Annotation( no-export ) for ( CvTopic cvTopic : cvTopics ) { for ( Annotation annotation : cvTopic.getAnnotations() ) { if ( noExport.equals( annotation.getCvTopic() ) ) { if ( filteredTopics == null ) { filteredTopics = new HashSet<CvTopic>( 8 ); } logger.debug( "CvTopic( " + cvTopic.getShortLabel() + " )" ); filteredTopics.add( cvTopic ); } } } } if ( filteredTopics == null ) { filteredTopics = Collections.EMPTY_SET; } logger.debug( filteredTopics.size() + " CvTopic" + ( filteredTopics.size() > 1 ? "s" : "" ) + " filtered." ); }
AnnotatedObjectDao<? extends AnnotatedObject> dao = getDaoFactory().getAnnotatedObjectDao(mappedClass);
AnnotatedObjectDao<? extends AnnotatedObject> dao = getDaoFactory().getAnnotatedObjectDao( mappedClass );
getDaoFactory().getAnnotatedObjectDao((Class<AnnotatedObject>)ao.getClass()).persist(ao); log.debug( "\t\tMerging " + ao.getClass().getSimpleName() + ": " + ao.getShortLabel()+ " (AC: "+ ao.getAc() +")" ); getDaoFactory().getAnnotatedObjectDao((Class<AnnotatedObject>)ao.getClass()).merge(ao); logPersistence(ao);
AnnotatedObjectDao dao = daoFactory.getAnnotatedObjectDao( clazz );