Class Script

    • Method Detail

      • getType

        public String getType()
        Description copied from interface: DatabaseObject
        Get the type of the database object.
        Returns:
        type of the database object
      • getParameters

        public List<ScriptParameter> getParameters()
        Get the script's parameters.
        Returns:
        parameters
      • getContent

        public String getContent()
        Get the script content (i.e. the implementation).
        Returns:
        script content
      • returnsTable

        public boolean returnsTable()
        Check if the script returns a table.
        Returns:
        true if the script returns a table, false if it returns a row count.
      • execute

        public int execute​(Object... parameters)
        Execute the script ignoring potential return values.
        Parameters:
        parameters - script parameters
        Returns:
        row count
      • builder

        public static Script.Builder builder​(DatabaseObjectWriter writer,
                                             Schema parentSchema,
                                             String name)
        Create a builder for a Script.
        Parameters:
        writer - data object writer
        parentSchema - parent schema
        name - name of the script
        Returns:
        builder