customUpdate

This method is for class mappings that take over the update
process, but still want to use this indicator for optimistic locking.

Parameters:

sm - the instance to test

store - store manager context

table - only state image values in this table will be tested;
if the custom mapping uses different updates for
different tables, this method can be called multiple
times for the multiple tables

record - set this parameter to true the last time you call
this method, so the indicator can setup the next
version of the given state manager

Returns:

a StateComparisonVersionStrategy.CustomUpdate whose getSQL method yields a
boolean SQL expression that tests whether the current
record is equal to our recorded state image, and whose
setParameters method parameterizes the given prepared
statement with the values used in the above boolean expression