Interface SaveOptions


  • public interface SaveOptions
    Seems like we might want save the model differently in different scenarios. This interface is the description of the parameters of EditableSModel#save.
    See Also:
    EditableSModel.save(SaveOptions), for construction
    • Method Detail

      • refreshDataSource

        boolean refreshDataSource()
        Returns:
        true iff the implementation of EditableSModel needs to refresh the data source before saving the data to the data source
      • force

        default boolean force()
        Returns:
        true then the EditableSModel implementation does not consider the changes coming from the SModel.getSource(), always choosing the current model data; and the implementation does not consider EditableSModel.isChanged() flag as well. if false then the implementation is free to choose between SModel.getSource() and internal data. The resulting model must be EditableSModel.isChanged() = false and the content is either equal to the current data or the new loaded data from SModel.getSource()
      • preloadModelIfNeeded

        default boolean preloadModelIfNeeded()
        Returns:
        true if the EditableSModel implementation must load model (SModel.load()) before saving it