|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.data.CommonMBOModel
com.sybase.uep.bobclient.data.MBOModel
com.sybase.uep.bobclient.data.SPMBOModel
public class SPMBOModel
Structured parameter MBO model
Field Summary | |
---|---|
static java.lang.String |
CREATE_OP
name of create operation |
static java.lang.String |
DELETE_OP
name of delete operation |
static java.lang.String |
UPDATE_OP
name of update operation |
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 | |
---|---|
protected |
SPMBOModel()
|
|
SPMBOModel(java.lang.String id)
Constructor |
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 |
protected void |
doPersist(java.lang.Object mbo,
java.lang.String operationName)
Designed to be overridden. |
java.util.Vector |
find(Query q)
Queries the MBOModel with Query q and returns the result |
java.util.Vector |
findAll()
Returns all data. |
java.util.Vector |
findNamedQuery(java.lang.String namedQuery,
java.util.Hashtable parameters)
Queries the MBOModel by the named query name and returns the result |
java.lang.String |
getPackageName()
Gets the package name of the MBO |
int |
getParameterMaxLength(java.lang.String parameterName,
java.lang.String namedQuery)
|
ObjectList |
getPendingObjects()
Retrieve the list of pending operations for this MBO object |
java.lang.String |
getProfileRefID()
Get the mobile application reference ID |
java.util.Vector |
getRelationshipDataFilterBy(java.lang.Object mbo,
java.lang.String relation,
Query q)
Gets the data through relationship, and the Query q is used to
filter the result data. |
int |
getSize(Query query)
Queries the size of the total records in the MBOModel with Query q |
java.lang.Object |
getSK(java.lang.Object mbo)
Gets the surrogate key of a given mbo instance |
java.lang.String |
getSynchronizationGroup()
Obtains the synchronization group registered by this MBO; Returns null if no synchronization group found |
MBOModelSyncParameters |
getSyncParameter()
Get the synchronization parameters for this MBO |
java.lang.Object |
invoke(java.lang.Object mbo,
java.lang.String operationName,
ObjectList paramValueList)
Wrapper the invoke method of reflection manager. |
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 |
isOtherCalled(java.lang.Object mbo)
|
boolean |
isSynchronized()
Gets whether this MBO application has been synchronized. |
void |
namedQueryChanged()
Fires NAMED_QUERY_TYPE event. |
void |
namedQueryInitialized()
Fires NAMED_QUERY_INITIALIZED_TYPE event. |
protected java.util.Vector |
readPersistentData()
Designed to be overridden. |
void |
refresh(java.lang.Object mbo)
Refresh the given mbo. |
void |
saveUpdate(java.lang.Object mbo)
Saves the changes to MBO application. |
void |
setData(java.util.Vector data)
set data to this model |
void |
setData(java.util.Vector data,
boolean notifyListener)
Set the data to this model |
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, getLastOperation, getLogs, getOtherOperationModel, getOtherOperationModelTable, getReflectionManager, getRelationshipData, getValue, newMBOInstance, parentSelectChanged, relationshipChanged, setValue, size, submitPending |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CREATE_OP
public static final java.lang.String DELETE_OP
public static final java.lang.String UPDATE_OP
Constructor Detail |
---|
public SPMBOModel(java.lang.String id)
id
- protected SPMBOModel()
Method Detail |
---|
protected java.util.Vector readPersistentData()
public java.lang.String getSynchronizationGroup()
CommonMBOModel
getSynchronizationGroup
in class MBOModel
public boolean isSynchronized()
MBOModel
isSynchronized
in class MBOModel
public void synchronize(SyncStatusListener syncStatusListener, int pendingOpScope) throws java.lang.Exception
MBOModel
synchronize
in class MBOModel
syncStatusListener
- - Sync status listenerpendingOpScope
- - @see CommonMBOModel.PENDING_OP_SCOPE_SYNCGROUP
, CommonMBOModel.PENDING_OP_SCOPE_MBO
, CommonMBOModel.PENDING_OP_SCOPE_PACKAGE
NoSuchOperationException
- if synchronize( SyncStatusListener ) is not defined in
corresponding database class.
java.lang.Exception
public java.lang.Object invoke(java.lang.Object mbo, java.lang.String operationName, ObjectList paramValueList)
CommonMBOModel
invoke
in class CommonMBOModel
public boolean isDeleted(java.lang.Object mbo)
MBOModel
isDeleted
in class MBOModel
public boolean isDirty(java.lang.Object mbo)
MBOModel
isDirty
in class MBOModel
public boolean isNew(java.lang.Object mbo)
MBOModel
isNew
in class MBOModel
public void cancelPending(java.lang.Object mbo)
MBOModel
cancelPending
in class MBOModel
public void cancelPendingObjects()
MBOModel
cancelPendingObjects
in class MBOModel
public ObjectList getPendingObjects()
MBOModel
getPendingObjects
in class MBOModel
ObjectList
list of MBO objectsObjectList
public MBOModelSyncParameters getSyncParameter()
MBOModel
getSyncParameter
in class MBOModel
public java.util.Vector find(Query q)
MBOModel
Query
q and returns the result
find
in class MBOModel
Vector
that contains MBO instances. Return an empty
vector if no data is found.public java.util.Vector findAll()
public void setData(java.util.Vector data)
data
- public void setData(java.util.Vector data, boolean notifyListener)
data
- notifyListener
- whether to fire an event.public java.util.Vector findNamedQuery(java.lang.String namedQuery, java.util.Hashtable parameters)
MBOModel
findNamedQuery
in class MBOModel
namedQuery
- String
value for the named query method nameparameters
- Hashtable
value for the list of parameters
Vector
value for the result set.public java.lang.String getPackageName()
CommonMBOModel
getPackageName
in class CommonMBOModel
public int getParameterMaxLength(java.lang.String parameterName, java.lang.String namedQuery)
public java.lang.String getProfileRefID()
MBOModel
getProfileRefID
in class MBOModel
public java.util.Vector getRelationshipDataFilterBy(java.lang.Object mbo, java.lang.String relation, Query q)
MBOModel
Query
q is used to
filter the result data.
getRelationshipDataFilterBy
in class MBOModel
mbo
- the parent mbo to retrieve the child datarelation
- relationship nameq
- query
public int getSize(Query query)
MBOModel
Query
q
getSize
in class MBOModel
public java.lang.Object getSK(java.lang.Object mbo)
MBOModel
getSK
in class MBOModel
mbo
- public boolean isOtherCalled(java.lang.Object mbo)
public void namedQueryChanged()
MBOModel
namedQueryChanged
in class MBOModel
public void namedQueryInitialized()
MBOModel
namedQueryInitialized
in class MBOModel
public void refresh(java.lang.Object mbo)
MBOModel
refresh
in class MBOModel
mbo
- public void saveUpdate(java.lang.Object mbo)
MBOModel
saveUpdate
in class MBOModel
mbo
- the changed MBO instancepublic void submitPendingObjects()
MBOModel
submitPendingObjects
in class MBOModel
protected void doPersist(java.lang.Object mbo, java.lang.String operationName)
mbo
- the raw object to be persisted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |