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 MergeOptionsBuilder
addPath(String path)
Add a path that will included in the merge.MergeOptions
build()
Build and return the MergeOptions instance.static MergeOptions
defaultOptions()
Return the default options.MergeOptionsBuilder
setClientGeneratedIds()
Set to true if Id values are supplied by the client.MergeOptionsBuilder
setDeletePermanent()
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.
-
-