mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Adds MutableValueInfo.nextDirty() to replace the isEqualToJson() method. The next is computed once and stored. BindablePropertyJsonUpdate makes the .mutableNext(propertyIndex) call to move the next MutableValueInfo and return the json content.
18 lines
382 B
Java
18 lines
382 B
Java
package io.ebean.bean;
|
|
|
|
/**
|
|
* Represents a next value to use for mutable content properties (DbJson with jackson beans).
|
|
*/
|
|
public interface MutableValueNext {
|
|
|
|
/**
|
|
* Return the next content to use. Provided such that we serialise to json once.
|
|
*/
|
|
String content();
|
|
|
|
/**
|
|
* Return the next MutableValueInfo to use after an update.
|
|
*/
|
|
MutableValueInfo info();
|
|
}
|