接口 UnsavedValueStrategy

  • 所有已知实现类:
    IdentifierValue, VersionValue

    public interface UnsavedValueStrategy
    The base contract for determining transient status versus detached status.
    作者:
    Steve Ebersole
    • 方法详细资料

      • isUnsaved

        Boolean isUnsaved​(Object test)
        Make the transient/detached determination
        参数:
        test - The value to be tested
        返回:
        true indicates the value corresponds to unsaved data (aka, transient state); false indicates the value does not corresponds to unsaved data (aka, detached state); null indicates that this strategy was not able to determine conclusively.
      • getDefaultValue

        Object getDefaultValue​(Object currentValue)
        Get a default value meant to indicate transience.
        参数:
        currentValue - The current state value.
        返回:
        The default transience value.