We're Hiring!

generating/attaching/retrieving a non-OMERO related file

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re: generating/attaching/retrieving a non-OMERO related file

Postby bhcho » Fri May 06, 2011 8:24 pm

Thanks Josh,

Code: Select all
                dal = queryService.findByQuery("select dal from DatasetAnnotationLink as dal " \
                        "join fetch dal.child as fileAnn " \
                        "join fetch fileAnn.file " \
                        "join dal.parent as dataset " \
                        "where dataset.id = :id and " \
                        "fileAnn.ns = :ns ", params)


does this retrieve all attached files within the dataset "id" and for the namespace "ns"?
or retrieve just one of them randomely?

if it is just one of them, I want to retrieve all of them (and their file names)

BK
bhcho
 
Posts: 236
Joined: Mon Apr 05, 2010 2:15 pm

Re: generating/attaching/retrieving a non-OMERO related file

Postby wmoore » Sat May 07, 2011 7:06 am

Simply use

Code: Select all
queryService.findAllByQuery
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Previous

Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest