|
|||||||||
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.OtherOperationModel
public class OtherOperationModel
Handle other operation related operation TODO: abstract MBOModel without so many useless methods
Field Summary | |
---|---|
static java.lang.String |
OPERATION_SUFFIX
|
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 | |
---|---|
OtherOperationModel(MBOModel mboModel,
java.lang.String operationName)
|
Method Summary | |
---|---|
void |
currentSelectChanged()
Fires CURRENT_SELECT_CHANGE_TYPE event. |
java.util.Vector |
find(Query q)
Queries the MBOModel with Query q and returns the result |
java.util.Vector |
findAll()
|
java.util.Vector |
findNamedQuery(java.lang.String namedQuery,
java.util.Hashtable parameters)
Queries the MBOModel by the named query name and returns the result |
MBOModel |
getMBOModel()
|
java.lang.String |
getOperationName()
|
static java.lang.String |
getOtherOperationAlternateName(java.lang.String othrOperClazzName,
java.lang.String mboName)
To be used when getOtherOperationName is incorrect |
static java.lang.String |
getOtherOperationClassName(java.lang.String mboName,
java.lang.String operationName)
class name as [mboname + Otheropertion + "Operation"] |
OtherOperationModel |
getOtherOperationModel(java.lang.String operationName)
|
java.util.Hashtable |
getOtherOperationModelTable()
|
static java.lang.String |
getOtherOperationName(java.lang.String othrOperClazzName,
java.lang.String mboName)
A simple and often, but not always, accurate way to get the name of an other operation from its class and mbo names |
int |
getParameterMaxLength(java.lang.String parameterName,
java.lang.String namedQuery)
|
ObjectList |
getPendingObjects()
Retrieve the list of pending operations for this OtherOperation object |
java.util.Vector |
getRelationshipData(java.lang.Object mbo,
java.lang.String referenceName)
Gets the data derived from a relationship.The caller takes the responsibility to make sure the metaData of mbo equals to _metaData. |
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 |
MBOModelSyncParameters |
getSyncParameter()
Get the synchronization parameters for this MBO |
void |
namedQueryChanged()
Fires NAMED_QUERY_TYPE event. |
void |
namedQueryInitialized()
Fires NAMED_QUERY_INITIALIZED_TYPE event. |
void |
parentSelectChanged()
Fires PARENT_SELECT_CHANGE_TYPE event. |
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 |
---|
cancelPending, cancelPendingObjects, clearSyncParameter, deleteFromModel, getLastOperation, getLogs, getProfileRefID, getReflectionManager, getSynchronizationGroup, getValue, isDeleted, isDirty, isNew, isSynchronized, newMBOInstance, refresh, relationshipChanged, saveUpdate, setValue, size, submitPending, submitPendingObjects |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String OPERATION_SUFFIX
Constructor Detail |
---|
public OtherOperationModel(MBOModel mboModel, java.lang.String operationName)
Method Detail |
---|
public MBOModel getMBOModel()
public java.lang.String getOperationName()
public static java.lang.String getOtherOperationClassName(java.lang.String mboName, java.lang.String operationName)
public static java.lang.String getOtherOperationName(java.lang.String othrOperClazzName, java.lang.String mboName)
othrOperClazzName
- mboName
- public static java.lang.String getOtherOperationAlternateName(java.lang.String othrOperClazzName, java.lang.String mboName)
othrOperClazzName
- mboName
- 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 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.util.Vector findAll()
public ObjectList getPendingObjects()
getPendingObjects
in class MBOModel
ObjectList
list of OtherOperation objectsObjectList
public MBOModelSyncParameters getSyncParameter()
MBOModel
getSyncParameter
in class MBOModel
public java.util.Vector getRelationshipData(java.lang.Object mbo, java.lang.String referenceName)
MBOModel
getRelationshipData
in class MBOModel
public java.lang.Object getSK(java.lang.Object mbo)
MBOModel
getSK
in class MBOModel
mbo
- 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 int getParameterMaxLength(java.lang.String parameterName, java.lang.String namedQuery)
public void parentSelectChanged()
MBOModel
parentSelectChanged
in class MBOModel
public void currentSelectChanged()
MBOModel
currentSelectChanged
in class MBOModel
public void namedQueryChanged()
MBOModel
namedQueryChanged
in class MBOModel
public void namedQueryInitialized()
MBOModel
namedQueryInitialized
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 OtherOperationModel getOtherOperationModel(java.lang.String operationName)
getOtherOperationModel
in class MBOModel
public java.util.Hashtable getOtherOperationModelTable()
getOtherOperationModelTable
in class MBOModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |