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
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 Details
-
MergeOptionsBuilder
public MergeOptionsBuilder()
-
-
Method Details
-
defaultOptions
Return the default options. -
addPath
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
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
Set that deletions should use delete permanent (rather than default which allows soft deletes). -
build
Build and return the MergeOptions instance.
-