com.sap.ip.me.api.smartsync
Class ProcessingStatusType

java.lang.Object
  extended bycom.sap.ip.me.api.smartsync.ProcessingStatusType

public final class ProcessingStatusType
extends java.lang.Object

An enumeration of possible processing status types of SyncBo objects. It can be assigned to a SyncBo instance.

Smart Sync allows application to change an IN_SYNC SyncBo, and change the ProcessingStatusType whenever the change is successful or failed bacause of confliction / error.

Since:
2.5
Author:
SAP

Field Summary
static ProcessingStatusType CHANGED
           CHANGED indicates that a SyncBo has an inconsistent data with middleware (which is managed in middleware consolidated database.) until the latest synchronization.
static ProcessingStatusType CONTRARY_QUARANTINED
           CONTRARY_QUARANTINED is the status for the contrary SyncBo data for a quarantined SyncBo.
static ProcessingStatusType DESTROYED
           DESTROYED indicates a SyncBo object has been deleted by application or by inbound deletion message.
static ProcessingStatusType IN_SYNC
           IN_SYNC indicates that a CHANGED SyncBo delta data has been transferred to middleware or backend, but not yet received any confirmation response from middleware.
static ProcessingStatusType IN_SYNC_CONFLICT_WAITING
           IN_SYNC_CONFLICT_WAITING is a special state, which means that Smart Sync already detected the SyncBo is going to be received as conflict response later on, however could not transit the IN_SYNC SyncBo to QUARANTINED until receives the conflict middleware response officially.
static ProcessingStatusType QUARANTINED
           QUARANTINED indicates that an IN_SYNC SyncBo received an error/ conflict confirmation response from middlware.
static ProcessingStatusType SYNCED
           SYNCED indicates that a SyncBo has a consistent data with middleware (which is managed in middleware consolidated database.) until the latest synchronization.
 
Method Summary
static ProcessingStatusType forInteger(java.lang.Integer typeInt)
          Returns the correspnoding ProcessingStatusType instance with the specified Integer representation.
static ProcessingStatusType forString(java.lang.String string)
          Returns the correspnoding ProcessingStatusType instance with the specified String representation.
 java.lang.Integer toInteger()
          Returns the Integer representation of this ProcessingStatusType.
 java.lang.String toString()
          Returns the string representation of this ProcessingStatusType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHANGED

public static final ProcessingStatusType CHANGED

CHANGED indicates that a SyncBo has an inconsistent data with middleware (which is managed in middleware consolidated database.) until the latest synchronization. As soon as starting a synchronization, all CHANGED SyncBos transit to IN_SYNC SyncBos.


SYNCED

public static final ProcessingStatusType SYNCED

SYNCED indicates that a SyncBo has a consistent data with middleware (which is managed in middleware consolidated database.) until the latest synchronization. After application edit, a SYNCED SyncBo transits to CHANGED SyncBo.


IN_SYNC

public static final ProcessingStatusType IN_SYNC

IN_SYNC indicates that a CHANGED SyncBo delta data has been transferred to middleware or backend, but not yet received any confirmation response from middleware.

  • Indicates an IN_SYNC SyncBo receives a successful middleware response, its state transits to SYNCED.
  • In case, an IN_SYNC SyncBo receives an error/ conflict middleware response, its state transits to QUARANTIED, waiting applications resolving.
  • In case, the SyncBo is detected as a conflict before an error / conflict middleware response, its state transits to IN_SYNC_CONFLICT_WAITING.

  • IN_SYNC_CONFLICT_WAITING

    public static final ProcessingStatusType IN_SYNC_CONFLICT_WAITING

    IN_SYNC_CONFLICT_WAITING is a special state, which means that Smart Sync already detected the SyncBo is going to be received as conflict response later on, however could not transit the IN_SYNC SyncBo to QUARANTINED until receives the conflict middleware response officially. IN_SYNC_CONFLICT_WAITING is handled in the same way as IN_SYNC.

    See Also:


    QUARANTINED

    public static final ProcessingStatusType QUARANTINED

    QUARANTINED indicates that an IN_SYNC SyncBo received an error/ conflict confirmation response from middlware.


    CONTRARY_QUARANTINED

    public static final ProcessingStatusType CONTRARY_QUARANTINED

    CONTRARY_QUARANTINED is the status for the contrary SyncBo data for a quarantined SyncBo. The contrary SyncBo data is read-only, no other executions are allowed


    DESTROYED

    public static final ProcessingStatusType DESTROYED

    DESTROYED indicates a SyncBo object has been deleted by application or by inbound deletion message.

    Method Detail

    forString

    public static ProcessingStatusType forString(java.lang.String string)
    Returns the correspnoding ProcessingStatusType instance with the specified String representation.

    Parameters:
    string - the specified String representation.
    - "CHANGED" for ProcessingStatusType.CHANGED
    - "SYNCHED" for ProcessingStatusType.SYNCED
    - "IN_SYNC" for ProcessingStatusType.IN_SYNC
    - "IN_SYNC_CONFLICT_WAITING" for ProcessingStatusType.IN_SYNC_CONFLICT_WAITING
    - "QUARANTINED" for ProcessingStatusType.QUARANTINED
    - "CONTRARY_QUARANTINED" for ProcessingStatusType.CONTRARY_QUARANTINED
    - "DESTROYED" for ProcessingStatusType.DESTROYED
    Returns:
    the corresponding ProcessingStatusType instance

    forInteger

    public static ProcessingStatusType forInteger(java.lang.Integer typeInt)
    Returns the correspnoding ProcessingStatusType instance with the specified Integer representation.

    Parameters:
    typeInt - the specified String representation.
    - 1 for ProcessingStatusType.CHANGED
    - 2 for ProcessingStatusType.SYNCED
    - 3 for ProcessingStatusType.IN_SYNC
    - 4 for ProcessingStatusType.IN_SYNC_CONFLICT_WAITING
    - 5 for ProcessingStatusType.QUARANTINED
    - 6 for ProcessingStatusType.CONTRARY_QUARANTINED
    - 7 for ProcessingStatusType.DESTROYED
    Returns:
    the corresponding ProcessingStatusType instance

    toString

    public java.lang.String toString()
    Returns the string representation of this ProcessingStatusType.

    Returns:
    the string representation of this ProcessingStatusType

    toInteger

    public java.lang.Integer toInteger()
    Returns the Integer representation of this ProcessingStatusType.

    Returns:
    the Integer representation of this ProcessingStatusType


    Copyright © 2005 SAP AG. All Rights Reserved.