Class ResultListener

  • All Implemented Interfaces:
    org.eclipse.datatools.sqltools.result.core.IResultManagerListener

    public class ResultListener
    extends java.lang.Object
    implements org.eclipse.datatools.sqltools.result.core.IResultManagerListener
    The result listener.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void allResultInstancesRemoved()
      Will be invoked when all instances are removed.
      static ResultListener getInstance()
      A single instance is used.
      void parametersShow​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance, java.util.List params)
      Will be invoked when showing the parameters in a result instance
      void resultInstanceAppended​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance, org.eclipse.datatools.sqltools.result.model.ResultItem result, int index)
      Will be invoked when the instance is appended.
      void resultInstanceCreated​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
      Will be invoked when a new instance is created.
      void resultInstanceRemoved​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
      Will be invoked when an instance is removed.
      void resultInstanceReset​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
      Will be invoked when an instance if reseted.
      void resultInstancesRemoved​(org.eclipse.datatools.sqltools.result.model.IResultInstance[] instances)
      Will be invoked when an array of instances is removed.
      void resultInstanceStatusUpdated​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
      Will be invoked when the status of the instance is changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static ResultListener getInstance()
        A single instance is used.
        Returns:
        The singleton.
      • resultInstanceCreated

        public void resultInstanceCreated​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
        Will be invoked when a new instance is created.
        Specified by:
        resultInstanceCreated in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
        Parameters:
        instance - the result instance.
      • resultInstanceRemoved

        public void resultInstanceRemoved​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
        Will be invoked when an instance is removed.
        Specified by:
        resultInstanceRemoved in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
        Parameters:
        instance - the result instance.
      • resultInstancesRemoved

        public void resultInstancesRemoved​(org.eclipse.datatools.sqltools.result.model.IResultInstance[] instances)
        Will be invoked when an array of instances is removed.
        Specified by:
        resultInstancesRemoved in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
        Parameters:
        instances - the result instances.
      • resultInstanceAppended

        public void resultInstanceAppended​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance,
                                           org.eclipse.datatools.sqltools.result.model.ResultItem result,
                                           int index)
        Will be invoked when the instance is appended.
        Specified by:
        resultInstanceAppended in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
        Parameters:
        instance - the result instance.
        result - the result item.
        index - the index of the result item.
      • allResultInstancesRemoved

        public void allResultInstancesRemoved()
        Will be invoked when all instances are removed.
        Specified by:
        allResultInstancesRemoved in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
      • resultInstanceStatusUpdated

        public void resultInstanceStatusUpdated​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
        Will be invoked when the status of the instance is changed.
        Specified by:
        resultInstanceStatusUpdated in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
        Parameters:
        instance - the result instance.
      • resultInstanceReset

        public void resultInstanceReset​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
        Will be invoked when an instance if reseted.
        Specified by:
        resultInstanceReset in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
        Parameters:
        instance - the result instance.
      • parametersShow

        public void parametersShow​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance,
                                   java.util.List params)
        Will be invoked when showing the parameters in a result instance
        Specified by:
        parametersShow in interface org.eclipse.datatools.sqltools.result.core.IResultManagerListener
        Parameters:
        instance - the result instance.
        params - the Parameter instances list.
        See Also:
        Parameter