Class ScriptDataSourceHandle

  • All Implemented Interfaces:
    org.eclipse.birt.report.model.elements.interfaces.IDataSourceModel, org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel, org.eclipse.birt.report.model.elements.interfaces.IScriptDataSourceModel

    public class ScriptDataSourceHandle
    extends DataSourceHandle
    implements org.eclipse.birt.report.model.elements.interfaces.IScriptDataSourceModel
    Represents a script data source. Script data source is one that is defined in JavaScript. The application is responsible for implementing two operations:
    • Open: connect to the external system. Report an error if the connection fails.
    • Close: drop the connection to the external system.
    See Also:
    ScriptDataSource
    • Constructor Detail

      • ScriptDataSourceHandle

        public ScriptDataSourceHandle​(org.eclipse.birt.report.model.core.Module module,
                                      org.eclipse.birt.report.model.core.DesignElement element)
        Constructs a handle for script data source.
        Parameters:
        module - the module
        element - the script data source element
    • Method Detail

      • setOpen

        public void setOpen​(java.lang.String value)
                     throws SemanticException
        Sets the script for opening data connection.
        Parameters:
        value - the script to set.
        Throws:
        SemanticException - if the property is locked.
      • getOpen

        public java.lang.String getOpen()
        Returns the script name for opening data connection.
        Returns:
        the script name for opening data connection.
      • setClose

        public void setClose​(java.lang.String value)
                      throws SemanticException
        Sets the script name for closing data connection.
        Parameters:
        value - the script name to set.
        Throws:
        SemanticException - if the property is locked.
      • getClose

        public java.lang.String getClose()
        Returns the script name for closing data connection.
        Returns:
        the script name for closing data connection.