public class JSONMbo extends NonPersistentMbo
MULTILANGCOPY, phantomList, phantomQueueALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Modifier and Type | Method and Description |
|---|---|
void |
add()
Default value for some of the fields of the new JSONAttributeMap table.
|
boolean |
checkForUpdate(java.lang.String attributeName)
Has the data in the object been changed?
An object is modified if one or more of its attributes have been changed.
|
void |
createDocument()
Default method to create document.
|
void |
deleteDocument()
Default method to delete document.
|
boolean |
existInCloud()
Is object exists in external application.
|
HTTPHandler |
getHandler()
Get Handler Name.
|
long |
getUniqueIDValue()
Get Unique ID.
|
boolean |
isModified()
Has the data in the object been changed?
An object is modified if one or more of its attributes have been changed.
|
boolean |
isSetup()
is setup.
|
boolean |
isUpdated()
Has the data in the object been updated?
|
void |
mbo2JSON(com.ibm.json.java.JSONObject jo,
JSONObjectInfo joInfo)
Converts Mbo to JSON Object.
|
void |
setExistInCloud(boolean e)
Sets object exists in external application.
|
void |
setSetup(boolean set)
Sets setup indicator.
|
void |
setUpdated(boolean updated)
Sets updated flag
|
void |
setValue(java.lang.String attributeName,
boolean val,
long accessModifier)
Sets a boolean value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
byte[] val,
long accessModifier)
Sets a byte[] value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
byte val,
long accessModifier)
Sets a byte value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
java.util.Date val,
long accessModifier)
Sets a date value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
double val,
long accessModifier)
Sets a double value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
float val,
long accessModifier)
Sets a float value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
int val,
long accessModifier)
Sets a integer value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
long val,
long accessModifier)
Sets a long value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
MaxType mboValue,
long accessModifier)
Set the value based on the MaxType object passed in.
|
void |
setValue(java.lang.String attributeName,
short val,
long accessModifier)
Sets a short value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
java.lang.String val,
long accessModifier)
Sets a string value to an attribute identified by name within the current
object.
|
void |
setValueNull(java.lang.String attributeName,
long accessModifier)
Sets an attribute value identified by name within the current object to null using
the specified access modifiers.
|
boolean |
toBeAdded()
Is the Mbo to added to storage ?
|
boolean |
toBeUpdated()
Is the Mbo to be updated in storage ?
|
com.ibm.json.java.JSONObject |
toJSON()
Converts to JSON Object.
|
void |
updateDocument()
Default method to update document.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, init, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeDeleted, toBeSaved, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeDeleted, toBeSaved, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic JSONMbo(MboSet ms) throws java.rmi.RemoteException
ms - The JSON MboSet.MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic void setValue(java.lang.String attributeName,
java.lang.String val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,String,long)public void setValue(java.lang.String attributeName,
boolean val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,boolean,long)public void setValue(java.lang.String attributeName,
byte val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,byte,long)public void setValue(java.lang.String attributeName,
int val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,int,long)public void setValue(java.lang.String attributeName,
float val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,float,long)public void setValue(java.lang.String attributeName,
byte[] val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,byte[],long)public void setValue(java.lang.String attributeName,
java.util.Date val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,java.util.Date,long)public void setValue(java.lang.String attributeName,
short val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,short,long)public void setValue(java.lang.String attributeName,
long val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,long,long)public void setValue(java.lang.String attributeName,
double val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,double,long)public void setValue(java.lang.String attributeName,
MaxType mboValue,
long accessModifier)
throws MXException,
java.rmi.RemoteException
MbosetValue in interface MboRemotesetValue in class MboMXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,MaxType,long)public void setValueNull(java.lang.String attributeName,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValueNull in interface MboRemotesetValueNull in class MboattributeName - The attribute name within the current object.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXException - "Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.
"Field is read only" exception will be thrown
if the attribute is READONLY and the
accessModifier does not specify NOACCESSCHECK.java.rmi.RemoteExceptionMbo.setValueNull(String,long)public boolean checkForUpdate(java.lang.String attributeName)
public boolean isModified()
isModified in interface MboRemoteisModified in class MboMbo.isModified()public void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic boolean toBeAdded()
public boolean toBeUpdated()
throws java.rmi.RemoteException
toBeUpdated in interface MboRemotetoBeUpdated in class Mbojava.rmi.RemoteExceptionpublic boolean isUpdated()
public void setUpdated(boolean updated)
updated - flag.public void createDocument()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void updateDocument()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void deleteDocument()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic com.ibm.json.java.JSONObject toJSON()
throws MXException,
java.rmi.RemoteException
MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic void mbo2JSON(com.ibm.json.java.JSONObject jo,
JSONObjectInfo joInfo)
throws MXException,
java.rmi.RemoteException
jo - JSON objectjoInfo - JSON Object InfoMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic void setExistInCloud(boolean e)
e - is existspublic boolean existInCloud()
public void setSetup(boolean set)
set - is setuppublic boolean isSetup()
public long getUniqueIDValue()
getUniqueIDValue in interface MboRemotegetUniqueIDValue in class Mbopsdi.mbo.getUniqueIDValuepublic HTTPHandler getHandler() throws MXException, java.rmi.RemoteException
MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exception