com.sybase.uep.bobclient.data
Class PKMBOModel

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

public class PKMBOModel
extends CommonMBOModel

PKMBOModel is the access layer to personalization MBO application. It is used specifically to retrieve and save personalization values

Author:
tdang

Field Summary
static java.lang.String SYNCGROUP_NAME_SYSTEM
          system synchronization group for personalization keys.
 
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
PKMBOModel(java.lang.String id)
           
 
Method Summary
 java.lang.Object getPKValue(java.lang.String attributeName)
          Gets personalization key value
 java.lang.String getSynchronizationGroup()
          For PK MBO, the synchronization group is always "system"
 boolean isSynchronized()
          Gets whether this MBO application has been synchronized.
 void setPKValue(java.lang.String attributeName, java.lang.Object value)
          Set personalization key value
 void synchronize(SyncStatusListener syncStatusListener, int pendingOpScope)
          Synchronizes the MBO application with a sync status listener.
 
Methods inherited from class com.sybase.uep.bobclient.data.CommonMBOModel
addModelChangeListener, deleteDatabase, fireModelChanged, fireSyncEvent, fireSyncEvent, getDataType, getID, getLastSynchronized, getLogger, getLogs, getMetaData, getName, getPackageName, getProfileRefID, 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
 

Field Detail

SYNCGROUP_NAME_SYSTEM

public static java.lang.String SYNCGROUP_NAME_SYSTEM
system synchronization group for personalization keys.

Constructor Detail

PKMBOModel

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

getPKValue

public java.lang.Object getPKValue(java.lang.String attributeName)
Gets personalization key value

Parameters:
personalization - key - personalization key name
Returns:
Object - personalization value
Throws:
NoSuchOperationException - if attribute name is not defined in mbo.

setPKValue

public void setPKValue(java.lang.String attributeName,
                       java.lang.Object value)
Set personalization key value

Parameters:
personalization - key - personalization key name
value - - value to set for the personalization key
Throws:
NoSuchOperationException - if attribute name is not defined in mbo.

synchronize

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

Specified by:
synchronize in class CommonMBOModel
Parameters:
syncStatusListener - - Sync status listener
pendingOpScope - - @see CommonMBOModel.PENDING_OP_SCOPE_SYNCGROUP, CommonMBOModel.PENDING_OP_SCOPE_MBO, CommonMBOModel.PENDING_OP_SCOPE_PACKAGE This is ignored for PK MBO
Throws:
NoSuchOperationException - if synchronize( syncStatusListener ) is not defined in corresponding database class.
java.lang.Exception

isSynchronized

public boolean isSynchronized()
Gets whether this MBO application has been synchronized.

Specified by:
isSynchronized in class CommonMBOModel
Returns:

getSynchronizationGroup

public java.lang.String getSynchronizationGroup()
For PK MBO, the synchronization group is always "system"

Specified by:
getSynchronizationGroup in class CommonMBOModel
Returns:
the synchronization group name