StateManagerUtil

public final class StateManagerUtil

This is a helper class, used to invoke operations on instance state manager

Methods

setTransactionVersion

public static void setTransactionVersion(Object instance, String versionFieldName)

Sets the transaction version to the instance state manager. Version value will be retrieved from the instance.

Parameters:
  • instance – the instance from which state manager will be retrieved
  • versionFieldName – the name of the version field

setTransactionVersion

public static void setTransactionVersion(Object instance, Object version, String versionFieldName)

Sets the given transaction version to the instance state manager.

Parameters:
  • instance – the instance from which state manager will be retrieved
  • version – the transaction version
  • versionFieldName – the name of the version field