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 TypeMethodDescription
      voidallResultInstancesRemoved()
      Will be invoked when all instances are removed.
      static ResultListenergetInstance()
      A single instance is used.
      voidparametersShow​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance, java.util.List params)
      Will be invoked when showing the parameters in a result instance
      voidresultInstanceAppended​(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.
      voidresultInstanceCreated​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
      Will be invoked when a new instance is created.
      voidresultInstanceRemoved​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
      Will be invoked when an instance is removed.
      voidresultInstanceReset​(org.eclipse.datatools.sqltools.result.model.IResultInstance instance)
      Will be invoked when an instance if reseted.
      voidresultInstancesRemoved​(org.eclipse.datatools.sqltools.result.model.IResultInstance[] instances)
      Will be invoked when an array of instances is removed.
      voidresultInstanceStatusUpdated​(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