view m-toolbox/classes/+utils/@jmysql/jmysql.m @ 43:bc767aaa99a8

CVS Update
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 11:09:25 +0100
parents f0afece42f48
children 6d43f39633b8
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 = queryDialog(varargin) % show a query builder dialog
    varargout = submitDialog(varargin) % show a submission dialog
    varargout = jconnTodbconn(varargin) % convert a java connection to database toolbox connection
    varargout = dbconnTojconn(varargin) % convert a database toolbox connection to java connection
    varargout = getUserID(varargin)
    varargout = getXdoc(varargin)
    varargout = insert(varargin)
    varargout = getRepositoryVersion(varargin)
    varargout = dbquery(varargin)
    varargout = insertObjMetadata(varargin)
    varargout = updateObjMetadata(varargin)
    varargout = insertObjMetadataV1(varargin) % back-compatibility for old database schema
    varargout = updateObjMetadataV1(varargin) % back-compatibility for old database schema
    varargout = execute(varargin)

  end % End static methods

end