Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@jmysql/displayResults.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % DISPLAYRESULTS displays the results from a query of an LTPDA repository. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: DISPLAYRESULTS displays the results from a query of an LTPDA | |
5 % repository. | |
6 % | |
7 % CALL: utils.jmysql.displayResults(results_cell, query); | |
8 % | |
9 % INPUTS: | |
10 % results_cell - a cell array of results like that returned | |
11 % from utils.jmysql.query | |
12 % query - the query string that yielded the results | |
13 % (for display purposes only) | |
14 % | |
15 % | |
16 % VERSION: $Id: displayResults.m,v 1.2 2009/09/22 14:40:07 ingo Exp $ | |
17 % | |
18 % HISTORY: 24-05-2007 M Hewitson | |
19 % Creation | |
20 % | |
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
22 | |
23 | |
24 | |
25 function displayResults(varargin) | |
26 | |
27 if ~isa(varargin{1}, 'java.sql.ResultSet') | |
28 error('### The first argument should be a ResultSet'); | |
29 end | |
30 | |
31 if ~ischar(varargin{2}) | |
32 error('### The second argument should be a string.'); | |
33 end | |
34 | |
35 % Inputs | |
36 results = varargin{1}; | |
37 query = varargin{2}; | |
38 | |
39 warning('off', 'MATLAB:JavaEDTAutoDelegation'); | |
40 qrd = mpipeline.repository.QueryResultsTableDialog([], false, results, query, false); | |
41 qrd.setTitle('Query Results'); | |
42 qrd.setVisible(true) | |
43 warning('on', 'MATLAB:JavaEDTAutoDelegation'); | |
44 | |
45 end | |
46 |