com.h3c.util.dao

## Interface UpdateStrategy<P,T>

- Type Parameters:
    `P` - type of the persistent object.
    `T` - type of the transport object.
  All Known Implementing Classes:
    VersionedUpdateStrategy

      public interface UpdateStrategy<P,T>

  Update Strategy.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `validateConversion(P source, T target)` This method is called when a persistent object is converted to a transport object.
    `void` | `validateUpdate(P target, T source)` Validates an update.

- - ### Method Detail

    - #### validateUpdate

          void validateUpdate(P target,
                            T source)

      Validates an update. This method will be called when the persistent object is updated using the data from the transport object.
      Parameters:
        `target` - object to update.
        `source` - object to take the data from.

    - #### validateConversion

          void validateConversion(P source,
                                T target)

      This method is called when a persistent object is converted to a transport object.
      Parameters:
        `source` - object to take the data from.
        `target` - object to update.

Copyright © 2014. All Rights Reserved.