jbcl.model Package 

DataSetModel class

java.lang.Object
   +----com.borland.jbcl.model.DataSetModel

About the DataSetModel class

Properties  Methods  

The DataSetModel class is a DataSetException handler. It displays an error dialog (ExceptionDialog) when a DataSetException is thrown. See ExceptionDialog for descriptions of properties that can be set to configure the capabilities of the error dialog.


DataSetModel properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

DataSetModel methods

Methods implemented in this class

Methods implemented in java.lang.Object


DataSetModel methods

handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception)

  public static final void handleException(DataSet dataSet, Component component, Exception ex)
Calls handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean) and passes to it the dataSet, component, and ex parameter values. It also passes false as the value of the modal parameter.

Parameters:

dataSet
The DataSet the exception occurs in if the exception is a DataSet exception.
component
The component on which the exception occurred.
ex
The Exception that occurs.

handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean)

  public static final void handleException(DataSet dataSet, Component component, Exception ex, boolean modal)
The exception handler method. If there are registered listeners for DataSetExceptions, an ExceptionEvent is dispatched to each of them. If there are no registered listeners for DataSetExceptions, a DBExceptionDialog appears. The appearance and behavior of the DBExceptionDialog depend on its property settings.

Parameters:

dataSet
The DataSet the exception occurs in if the exception is a DataSet exception.
component
The component on which the exception occurred.
ex
The Exception that occurs.
modal
Determines whether the dialog is modal or modeless. If its value is true, the dialog is modal; if its value is false, it is modeless.

handleException(java.awt.Component, java.lang.Exception, boolean)

  public static final void handleException(Component component, Exception ex, boolean modal)
Calls handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean) and passes to it the component and modal parameter values. It also passes null for the dataSet and ex values.

Parameters:

component
The component on which the exception occurred.
modal
Determines whether the dialog is modal or modeless. If its value is true, the dialog is modal; if its value is false, it is modeless.

handleException(java.lang.Exception)

  public static final void handleException(Exception ex)
Calls the handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean) method and passes the exception and null values for the dataSet, component and modal parameters.

Parameters:

ex
The Exception that occurs.

handleException(java.lang.Exception, boolean)

  public static final void handleException(Exception ex, boolean modal)
Calls handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean) and passes to it the ex and modal parameter values. It passes a null value for the dataSet and component values.

Parameters:

ex
The Exception that occurs.
modal
Determines whether the dialog is modal or modeless. If its value is true, the dialog is modal; if its value is false, it is modeless.