Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.mdm.index.update
Interface UpdatePolicy

public interface UpdatePolicy

Update policy, called before persisting the data. This policy allow users to plug in customized logic that changes the data content of an EnterpriseObject before it is persisted in the database

Method Summary
`EnterpriseObject` | `applyUpdatePolicy(EnterpriseObject beforeImage, EnterpriseObject afterImage)` This policy allow users to plug in customized logic that changes the data content of an EnterpriseObject before it is persisted in the database

Method Detail

### applyUpdatePolicy

    public EnterpriseObject applyUpdatePolicy(EnterpriseObject beforeImage,
                                              EnterpriseObject afterImage)
                                       throws SystemObjectException,
                                              ObjectException,
                                              UserException

  This policy allow users to plug in customized logic that changes the data content of an EnterpriseObject before it is persisted in the database

  Parameters:
    `beforeImage` - image of the EnterpriseObject before core update logic is applied
    `afterImage` - image of the EnterpriseObject after core update logic is applied
  Returns:
    EnterpriseObject image to be persisted
  Throws:
    `SystemObjectException` - Error accessing SystemObjects
    `ObjectException` - error in the ObjectNodes
    `UserException` - general user exception

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Sun Microsystems, Inc.