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 Summary
Constructors Constructor Description MergeOptionsBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeOptionsBuilderaddPath(String path)Add a path that will included in the merge.MergeOptionsbuild()Build and return the MergeOptions instance.static MergeOptionsdefaultOptions()Return the default options.MergeOptionsBuildersetClientGeneratedIds()Set to true if Id values are supplied by the client.MergeOptionsBuildersetDeletePermanent()Set that deletions should use delete permanent (rather than default which allows soft deletes).
-
-
-
Constructor Detail
-
MergeOptionsBuilder
public MergeOptionsBuilder()
-
-
Method Detail
-
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.
-
-