Module io.ebean.api
Package io.ebean

Class MergeOptionsBuilder

java.lang.Object
io.ebean.MergeOptionsBuilder

public class MergeOptionsBuilder extends Object
Builds a MergeOptions which is immutable and thread safe.
  • Constructor Details

    • MergeOptionsBuilder

      public MergeOptionsBuilder()
  • Method Details

    • defaultOptions

      public static MergeOptions defaultOptions()
      Return the default options.
    • addPath

      public MergeOptionsBuilder addPath(String path)
      Add a path that will included in the merge.
      Parameters:
      path - The path relative to the root type.
      Returns:
      The builder to chain another addPath() or build().
    • setClientGeneratedIds

      public MergeOptionsBuilder setClientGeneratedIds()
      Set to true if Id values are supplied by the client.

      This would be the case when for example a mobile creates data in it's own local database and then sync's. In this case often the id values are UUID.

    • setDeletePermanent

      public MergeOptionsBuilder setDeletePermanent()
      Set that deletions should use delete permanent (rather than default which allows soft deletes).
    • build

      public MergeOptions build()
      Build and return the MergeOptions instance.