view m-toolbox/classes/+utils/@jmysql/jmysql.m @ 39:11e3ed9d2115 database-connection-manager

Implement databases listing in database connection dialog
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents ce3fbb7ebe71
children
line wrap: on
line source

% JMYSQL interface to MySQL database via java sql.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: JMYSQL interface to MySQL database via java sql.
%
% HELP:        To see the available static methods, call
%              >> methods utils.mysql
%
% VERSION:     $Id: jmysql.m,v 1.14 2010/05/19 16:40:52 nicolodi Exp $
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

classdef jmysql

  %------------------------------------------------
  %--------- Declaration of Static methods --------
  %------------------------------------------------
  methods (Static)

    %-------------------------------------------------------------
    % List other methods
    %-------------------------------------------------------------

    %%% GENERAL TOOLS
    varargout = getsinfo(varargin) % return sinfo structure of repository object

    %%% MYSQL TOOLS
    varargout = connect(varargin) % connects to an LTPDA repository and returns the connection object
    varargout = query(varargin) % perform a query on an LTPDA repository and returns the results
    varargout = resultsToCell(varargin) % convert a ResultSet to a cell-array
    varargout = displayResults(varargin) % display a ResultSet in a table
    varargout = dbquery(varargin)

  end % End static methods

end