Package adams.db

Interface SequenceProvider

  • All Known Implementing Classes:
    Sequences

    public interface SequenceProvider
    Interface for classes that return XYSequences.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • refresh

        void refresh()
        Reloads the templates.
      • retrieve

        Vector<XYSequence> retrieve​(String query)
        Retrieves sequence(s) from a given SQL statement.
        Parameters:
        query - the statement to retrieve the sequences
        Returns:
        the sequence(s)
      • retrieve

        Vector<XYSequence> retrieve​(String query,
                                    String nameX)
        Retrieves sequence(s) from a given SQL statement.
        Parameters:
        query - the statement to retrieve the sequences
        nameX - the name of the column to use as x-axis, if null then the first column will be used
        Returns:
        the sequence(s)
      • getTemplates

        Hashtable<String,​String> getTemplates()
        Returns all the templates currently stored.
        Returns:
        the templates (name <-> sql relation)