com.sybase.uep.bobclient.data
Class ClientMBOModel

java.lang.Object
  extended by com.sybase.uep.bobclient.data.CommonMBOModel
      extended by com.sybase.uep.bobclient.data.MBOModel
          extended by com.sybase.uep.bobclient.data.ClientMBOModel

public class ClientMBOModel
extends MBOModel

Client Only MBO Model

Author:
haowang

Field Summary
 
Fields inherited from class com.sybase.uep.bobclient.data.CommonMBOModel
_databaseMetaData, _log, _mboApp, _metaData, KEY, PENDING_OP_SCOPE_MBO, PENDING_OP_SCOPE_PACKAGE, PENDING_OP_SCOPE_SYNCGROUP, SYNCHRONIZATION_NORMAL, SYNCHRONIZATION_NOTIFICATION
 
Constructor Summary
ClientMBOModel(java.lang.String id)
           
 
Method Summary
 void cancelPending(java.lang.Object mbo)
          Restores the original state of the MBO instance.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData.
 void cancelPendingObjects()
          Cancel all the pending operations for this MBO object
 ObjectList getPendingObjects()
          Retrieve the list of pending operations for this MBO object
 java.lang.String getPublication()
           
 MBOModelSyncParameters getSyncParameter()
          Get the synchronization parameters for this MBO
 boolean isDeleted(java.lang.Object mbo)
          Checks if the MBO object has been deleted since last synchronization.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData.
 boolean isDirty(java.lang.Object mbo)
          Checks if the MBO object has been updated since last synchronization.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData.
 boolean isNew(java.lang.Object mbo)
          Checks if the MBO object is a new created one since last synchronization.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData.
 boolean isSynchronized()
          Gets whether this MBO application has been synchronized.
 void submitPendingObjects()
          Submits all the pending operations for this MBO object.
 void synchronize(SyncStatusListener syncStatusListener, int pendingOpScope)
          Synchronizes the MBO application with a sync status listener.
 
Methods inherited from class com.sybase.uep.bobclient.data.MBOModel
clearSyncParameter, currentSelectChanged, deleteFromModel, find, findNamedQuery, getLastOperation, getLogs, getOtherOperationModel, getOtherOperationModelTable, getProfileRefID, getReflectionManager, getRelationshipData, getRelationshipDataFilterBy, getSize, getSK, getSynchronizationGroup, getValue, namedQueryChanged, namedQueryInitialized, newMBOInstance, parentSelectChanged, refresh, relationshipChanged, saveUpdate, setValue, size, submitPending
 
Methods inherited from class com.sybase.uep.bobclient.data.CommonMBOModel
addModelChangeListener, deleteDatabase, fireModelChanged, fireSyncEvent, fireSyncEvent, getDataType, getID, getLastSynchronized, getLogger, getLogs, getMetaData, getName, getPackageName, getSynchronizationGroup, getSynchronizationProfile, getSynchronizationProfile, getType, invoke, invoke, loginToSync, registerCallbackHandler, removeModelChangeListener, startBackgroundSynchronization, startBackgroundSynchronization, submitPendingOperations, submitPendingOperations, synchronize, synchronize, syncSyncGroup, syncSyncGroupNoSubmit, uploadLogs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientMBOModel

public ClientMBOModel(java.lang.String id)
Method Detail

getPublication

public java.lang.String getPublication()

isSynchronized

public boolean isSynchronized()
Description copied from class: MBOModel
Gets whether this MBO application has been synchronized.

Overrides:
isSynchronized in class MBOModel
Returns:

synchronize

public void synchronize(SyncStatusListener syncStatusListener,
                        int pendingOpScope)
                 throws java.lang.Exception
Description copied from class: MBOModel
Synchronizes the MBO application with a sync status listener.

Overrides:
synchronize in class MBOModel
Parameters:
syncStatusListener - - Sync status listener
pendingOpScope - - @see CommonMBOModel.PENDING_OP_SCOPE_SYNCGROUP, CommonMBOModel.PENDING_OP_SCOPE_MBO, CommonMBOModel.PENDING_OP_SCOPE_PACKAGE
Throws:
NoSuchOperationException - if synchronize( SyncStatusListener ) is not defined in corresponding database class.
java.lang.Exception

isDeleted

public boolean isDeleted(java.lang.Object mbo)
Description copied from class: MBOModel
Checks if the MBO object has been deleted since last synchronization.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData. For example, caller should not try to use a Customer MBOModel to check the status of a SalesOrder instance

Overrides:
isDeleted in class MBOModel
Returns:

isDirty

public boolean isDirty(java.lang.Object mbo)
Description copied from class: MBOModel
Checks if the MBO object has been updated since last synchronization.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData. For example, caller should not try to use a Customer MBOModel to check the status of a SalesOrder instance

Overrides:
isDirty in class MBOModel
Returns:

isNew

public boolean isNew(java.lang.Object mbo)
Description copied from class: MBOModel
Checks if the MBO object is a new created one since last synchronization.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData. For example, caller should not try to use a Customer MBOModel to check the status of a SalesOrder instance

Overrides:
isNew in class MBOModel
Returns:

cancelPending

public void cancelPending(java.lang.Object mbo)
Description copied from class: MBOModel
Restores the original state of the MBO instance.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData. For example, caller should not try to use a Customer MBOModel to restore the state of a SalesOrder instance

Overrides:
cancelPending in class MBOModel

cancelPendingObjects

public void cancelPendingObjects()
Description copied from class: MBOModel
Cancel all the pending operations for this MBO object

Overrides:
cancelPendingObjects in class MBOModel

getPendingObjects

public ObjectList getPendingObjects()
Description copied from class: MBOModel
Retrieve the list of pending operations for this MBO object

Overrides:
getPendingObjects in class MBOModel
Returns:
ObjectList list of MBO objects
See Also:
ObjectList

getSyncParameter

public MBOModelSyncParameters getSyncParameter()
Description copied from class: MBOModel
Get the synchronization parameters for this MBO

Overrides:
getSyncParameter in class MBOModel
Returns:
MBOModelSyncParameters object

submitPendingObjects

public void submitPendingObjects()
Description copied from class: MBOModel
Submits all the pending operations for this MBO object. During MBO sync, synchronization group level pending operations should be submitted, so this API is only intended to be called in pending operations screen, when user selects a MBO model.

Overrides:
submitPendingObjects in class MBOModel