public class JSONMboSet extends NonPersistentMboSet
fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, perfStats, strNoBaseLangValueEntered
INSERTONLY, INSERTORUPDATE, UPDATEONLY
ALLROWS, 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
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
JSONMboSet(MboServerInterface ms)
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.ibm.json.java.JSONArray |
bytesToJSONArray(byte[] data)
Convers byte array to JSONArray
|
int |
count()
Process count.
|
void |
deserialize(byte[] response,
JSONResourceInfo resourceInfo,
int index)
Turn a json string into a mbo, and add it to this set.
|
java.lang.String |
formatResourceName(java.lang.String where)
Parse relationship and extract resource name and other information including:
- resource name
- end point name
- bulk update
- url
|
boolean |
getBulkUpdate()
Return bulk update indicator
|
int |
getCountFromResponse(byte[] response)
Get count of the returned response.
|
void |
getDataAsDouble(java.lang.Object value,
java.lang.String attributeName,
MboRemote mbo)
Gets data from JSON as double and sets it to the Mbo
|
java.lang.String |
getDateFormat()
Return date format parameter
|
java.lang.String |
getDateFormatType()
Return date format type parameter
|
java.lang.String |
getEndPointName()
Return end point name
|
int |
getLimit()
Formats limit parameter for paging.
|
MboRemote |
getMbo(int index)
Return the Mbo from the specified position in the collection.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetaData()
Return meta data map for invoke
|
java.lang.String |
getNullFormat()
Return null format.
|
java.lang.String |
getProductName()
Figure out resource name using relationship, Mbo name
|
java.lang.String |
getResourceName()
Figure out resource name using relationship, Mbo name
|
java.lang.String |
getURL()
Return formatted URL
|
byte[] |
invoke(int index,
boolean forCount)
Default implementation of invoke of the external data to MboSet
|
void |
json2Mbo(java.lang.Object jsonObj,
JSONObjectInfo detailInfo,
MboRemote parentMbo)
Turn a json object into a mbo.
|
void |
json2MboSet(com.ibm.json.java.JSONArray jsonArray,
JSONResourceInfo resourceInfo,
int start,
int end)
Convert JSON into mbo and add the mbo to this set.
|
void |
load(int index)
Default implementation of load of the external data to MboSet
|
MboRemote |
moveLast()
Positions to the last Object within the collection.
|
void |
reset()
Clears the current contents of the collection.
|
void |
resetJSON()
Resets JSON variables
|
void |
setAdditionalData(MboRemote mbo,
com.ibm.json.java.JSONObject jo)
Default implementation set set non-generic data (like id)
|
void |
setAppWhere(java.lang.String whereClause)
Sets application where clause.
|
void |
setBulkUpdate(boolean bulk)
Set build update indicator
|
void |
setDateFormat(java.lang.String dateFormat)
Set date format parameter
|
void |
setDateFormatType(java.lang.String dateFormatType)
Set date format type parameter
|
void |
setRelationship(java.lang.String relationClause)
Sets relationship.
|
void |
setResourceName(java.lang.String resourceName)
Set resource name
|
MboRemote |
setup()
Causes the NonP-MboSet used for method parameter validation to setup itself for use.
|
void |
setUserWhere(java.lang.String whereClause)
Sets user where clause.
|
void |
setUserWhereAfterParse(java.lang.String where)
Set the user where.
|
void |
setWhere(java.lang.String whereClause)
Sets where clause.
|
boolean |
supportsUpdate() |
boolean |
toBeSaved()
Has the collection be modified in any way so that it needs to be
put in storage ?
|
execute, execute, isClosed, setMboSetInfo
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addFederatedMboToSorter, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyRowSecurity, avg, canAdd, cancelAndClose, checkMethodAccess, checkMethodAccess, cleanup, clear, clearBatchedPreparedStmt, clearBatchedPreparedStmts, clearESigTransactionIdThread, clearESigTransIDForAdmin, clearIgnoredAutokeyAttrs, clearLongOpPipe, clearToBeSaved, clearTransactionReference, clearWarnings, close, commit, commitTransaction, copy, copy, copy, copyForDM, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, dump, earliestDate, enableMethod, executeBatch, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, forceDBSort, getAllowQualifiedRestriction, getAlwaysFlags, getAlwaysFlags, getApp, getAppAlwaysFieldFlags, getAppWhere, getAttrRestrictions, getBoolean, getByte, getBytes, getClientLocale, getClientTimeZone, getCompleteWhere, getCurrentPosition, getDate, getDBFetchMaxRows, getDefaultValue, getDefaultValueHash, getDouble, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getFloat, getIgnoredAutokeyAttrs, getInsertCompanySet, getInsertItemSet, getInsertOrg, getInsertSite, getInt, getJspDefaultValueHash, getKeyAttributes, getList, getList, getLong, getMaxAppsWhere, getMaxMessage, getMbo, getMboForUniqueId, getMboLogger, getMboServer, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMultiSiteWhere, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getPreparedStmt, getProfile, getProxy, getQbe, getQbe, getQbe, getQbeSiteAuthorization, getQbeWhere, getQualifiedWhere, getQueryTimeout, getRelationName, getRelationship, getRowRestrictions, getSecurityLogger, getSelection, getSelectionWhere, getSetOrderByForUI, getSharedMboSet, getSize, getSkipFirstNRows, getSqlLogger, getSQLOptions, getString, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserPrefWhere, getUserWhere, getUserWhere, getWarnings, getWhere, getZombie, handleMLMbo, handleMLMbo, hasMLQbe, hasQbe, hasWarnings, ignoreAutokeyAttr, ignoreAutokeyAttr, ignoreQbeExactMatchSet, incrementDeletedCount, init, init, initDataDictionary, isBasedOn, isDeltaStorage, isDMDeploySet, isDMSkipFieldValidation, isEAuditFieldModified, isEmpty, isESigFieldModified, isESigNeeded, isFlagSet, isIgnoreQbeExactMatchSet, isLookup, isNull, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, isTableDomainLookup, latestDate, locateMbo, logESigVerification, logRowUpdatedException, max, min, moveFirst, moveNext, movePrev, moveTo, moveToKey, newMboIndex, notExist, positionState, processML, remove, remove, remove, resetForRefreshOnSave, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, save, save, save, saveMbos, saveTransaction, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setEAuditFieldModified, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFederatedResources, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOrderByNVL, setOwner, setPreserveOrderByCase, setProxy, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSkipFirstNRows, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, setWhereQbe, smartFill, smartFill, smartFind, smartFind, smartFind, smartFind, sort, splitOrderBy, startCheckpoint, startCheckpoint, sum, undeleteAll, undoTransaction, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, validateTransaction, verifyESig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addWarning, addWarnings, checkMethodAccess, cleanup, clear, clearLongOpPipe, close, commit, copy, copy, copyForDM, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, earliestDate, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, getApp, getAppAlwaysFieldFlags, getAppWhere, getCompleteWhere, getCurrentPosition, getDBFetchMaxRows, getDefaultValue, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getKeyAttributes, getList, getList, getMaxMessage, getMbo, getMboForUniqueId, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getProfile, getQbe, getQbe, getQbe, getQbeWhere, getQueryTimeout, getRelationName, getRelationship, getSelection, getSelectionWhere, getSetOrderByForUI, getSize, getSQLOptions, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserWhere, getWarnings, getWhere, getZombie, hasMLQbe, hasQbe, hasWarnings, ignoreQbeExactMatchSet, incrementDeletedCount, init, isBasedOn, isDMDeploySet, isDMSkipFieldValidation, isEmpty, isESigNeeded, isFlagSet, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, max, min, moveFirst, moveNext, movePrev, moveTo, newMboIndex, notExist, positionState, processML, remove, remove, remove, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, save, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOwner, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setWhereQbe, smartFill, smartFill, smartFind, smartFind, startCheckpoint, startCheckpoint, sum, undeleteAll, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, verifyESig
getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getString, isNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull
commitTransaction, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransaction
public JSONMboSet(MboServerInterface ms) throws java.rmi.RemoteException
ms
- The JSON MboSet.MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void deserialize(byte[] response, JSONResourceInfo resourceInfo, int index) throws MXException, java.rmi.RemoteException
response
- The json string in bytesresourceInfo
- Info about the json resource that describes the the json and mbo association.index
- index of the mbo in mbosetMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void json2MboSet(com.ibm.json.java.JSONArray jsonArray, JSONResourceInfo resourceInfo, int start, int end) throws java.rmi.RemoteException, MXException
jsonArray
- JSON object(s)resourceInfo
- JSON resource infostart
- starting object indexend
- ending object indexjava.rmi.RemoteException
MXException
public void json2Mbo(java.lang.Object jsonObj, JSONObjectInfo detailInfo, MboRemote parentMbo) throws java.rmi.RemoteException, MXException
jsonObj
- The current json objectdetailInfo
- The current json object infoparentMbo
- The parent Mbo.java.rmi.RemoteException
MXException
public boolean toBeSaved() throws java.rmi.RemoteException
toBeSaved
in interface MboSetRemote
toBeSaved
in class NonPersistentMboSet
java.rmi.RemoteException
public MboRemote setup() throws MXException, java.rmi.RemoteException
setup
in interface NonPersistentMboSetRemote
setup
in class NonPersistentMboSet
MXException
java.rmi.RemoteException
NonPersistentMboSet.setup()
public void setRelationship(java.lang.String relationClause)
setRelationship
in interface MboSetRemote
setRelationship
in class MboSet
relationClause
- relation clausepublic void setWhere(java.lang.String whereClause)
setWhere
in interface MboSetRemote
setWhere
in class MboSet
whereClause
- where clauseMboSet.reset()
,
MboSet.getMbo()
public void setAppWhere(java.lang.String whereClause) throws java.rmi.RemoteException, MXException
setAppWhere
in interface MboSetRemote
setAppWhere
in class MboSet
whereClause
- where clauseMXException
java.rmi.RemoteException
Getter method.
,
Assembles the where clause used to get records.
public void setUserWhere(java.lang.String whereClause) throws java.rmi.RemoteException, MXException
setUserWhere
in interface MboSetRemote
setUserWhere
in class MboSet
whereClause
- where clauseMXException
java.rmi.RemoteException
MboSet.setUserWhere(String whereClause)
public MboRemote getMbo(int index) throws MXException, java.rmi.RemoteException
getMbo
in interface MboSetRemote
getMbo
in class MboSet
MXException
java.rmi.RemoteException
MboSet.fetchMbos(int)
,
MboSet.loadMboVecFromMrd(int)
public MboRemote moveLast() throws MXException, java.rmi.RemoteException
moveLast
in interface MboSetRemote
moveLast
in class MboSet
MXException
java.rmi.RemoteException
MboSet.fetchMbos()
,
getMbo(int)
public int count() throws MXException, java.rmi.RemoteException
count
in interface MboSetRemote
count
in class NonPersistentMboSet
flag
- JSONQueryresourceInfo
- resource infowhere
- where clauseMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote ExceptionMboSet.count(int)
public int getCountFromResponse(byte[] response) throws MXException, java.rmi.RemoteException
response
- invoke responseMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void reset() throws MXException, java.rmi.RemoteException
reset
in interface MboSetRemote
reset
in class MboSet
MXException
java.rmi.RemoteException
MboSet.save()
public void resetJSON()
public void load(int index) throws MXException, java.rmi.RemoteException
index
- index of the Mbo in MboSetMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic byte[] invoke(int index, boolean forCount) throws MXException, java.rmi.RemoteException
index
- index of the Mbo in MboSetforCount
- is invoke for count only or dataMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void setAdditionalData(MboRemote mbo, com.ibm.json.java.JSONObject jo) throws MXException, java.rmi.RemoteException
mbo
- business objectjo
- JSON ObjectMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic com.ibm.json.java.JSONArray bytesToJSONArray(byte[] data) throws MXException
data
- byte aray of dataMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void getDataAsDouble(java.lang.Object value, java.lang.String attributeName, MboRemote mbo) throws MXException, java.rmi.RemoteException
value
- data value as native objectattributeName
- attribute namembo
- Mbo to set dataMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void setUserWhereAfterParse(java.lang.String where) throws MXException, java.rmi.RemoteException
setUserWhereAfterParse
in interface MboSetRemote
setUserWhereAfterParse
in class MboSet
MXException
java.rmi.RemoteException
MboSet.setUserWhereAfterParse(String)
public void setBulkUpdate(boolean bulk)
build
- bulk update supportpublic void setResourceName(java.lang.String resourceName)
resourceName
- resource namepublic java.lang.String getResourceName() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String formatResourceName(java.lang.String where)
where
- where clausepublic java.lang.String getProductName() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Map<java.lang.String,java.lang.Object> getMetaData() throws MXException, java.rmi.RemoteException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic boolean getBulkUpdate()
public java.lang.String getEndPointName() throws MXException, java.rmi.RemoteException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic int getLimit() throws java.rmi.RemoteException, MXException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String getURL()
public void setDateFormatType(java.lang.String dateFormatType)
dateFormatType
- date format typepublic java.lang.String getDateFormatType()
public void setDateFormat(java.lang.String dateFormat)
dateFormatType
- date formatpublic java.lang.String getDateFormat()
public java.lang.String getNullFormat()
public boolean supportsUpdate()