Package com.iizigo.db.editor
Class ResultListener
- java.lang.Object
-
- com.iizigo.db.editor.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 instancevoid
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.
-
-
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.eclipse.datatools.sqltools.result.core.IResultManagerListener
- Parameters:
instance
- The result instance.params
- TheParameter
instances list.- See Also:
Parameter
-
-