public class CloudantMboSet extends RESTMboSet
qbecurrentCount, fetchComplete, fullCount, jsonAnalyzer, limit, productName, resourceName, resourceType, responseArray, url, urlFormatteddmDeploySet, dmDeploySkipFieldValidation, fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, mboVec, mrdVec, perfStats, strNoBaseLangValueEntered, toBeSavedINSERTONLY, INSERTORUPDATE, UPDATEONLYALLROWS, 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, USERAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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 |
|---|
CloudantMboSet(MboServerInterface ms)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
addOrderBy(java.lang.String url,
java.lang.String orderBy)
Adds Order By to URL.
|
JSONQuery |
addPaging(JSONQuery formater,
int index,
boolean forCount)
Add paging parameters if paging is enabled.
|
void |
bulkUpdate()
Performs bulk update back to Cloudant.
|
JSONQuery |
format(JSONQuery formater,
JSONResourceInfo resourceInfo,
java.lang.String where,
boolean forCount,
int index)
Formats full where clause.
|
byte[] |
formatPostData(int index,
boolean forCount)
Formats where clause for POST.
|
byte[] |
formatPostDataForNextPage(byte[] data,
int index)
Formats data for next page.
|
JSONQuery |
formatQBE(JSONQuery formater,
JSONResourceInfo resourceInfo,
boolean forCount,
int index)
Formats QBE.
|
java.lang.String |
getHTTPQueryMethod()
Return HTTP method for the call.
|
protected Mbo |
getMboInstance(MboSet ms)
Generate a new Clodant object.
|
java.lang.String |
getQualifiedWhere()
Get the row level security's QUALIFIED where clause that would append to the complete where clause.
|
java.lang.String |
getStringQualifier()
Return string qualifies.
|
java.lang.String |
getURI()
Returns URL.
|
java.lang.String |
getUrl(HTTPHandler handler,
boolean forCount)
Returns URL.
|
void |
setAdditionalData(MboRemote mbo,
com.ibm.json.java.JSONObject jo)
It will set id and revision.
|
protected void |
setAttributeValue(java.lang.String attributeName,
java.lang.Object value,
MboRemote mbo)
Set the attribute value to a serialized mbo from JSON.
|
execute, formatOrderBy, formatUrl, formatUrlForNextPage, formatUrlForSortPage, formatWhere, getCountClause, getMimeType, getOpAndValue, getOrderByClouse, getPagingParams, getWhereSeparator, getWhereToFormat, getWhereToFormat, invoke, load, moveNext, moveTo, processPaging, resetQbe, setDiscardableFlag, setQbebytesToJSONArray, count, deleteMbo, deserialize, formatResourceName, getBulkUpdate, getCountFromResponse, getDataAsDouble, getDateFormat, getDateFormatType, getEndPointName, getLimit, getMbo, getMetaData, getNullFormat, getProductName, getResourceName, getURL, insertMbo, json2Mbo, json2MboSet, moveLast, reset, resetJSON, setAppWhere, setAttributeValue, setBulkUpdate, setDateFormat, setDateFormatType, setRelationship, setResourceName, setup, setUserWhere, setUserWhereAfterParse, setWhere, supportsUpdate, toBeSaved, updateMboexecute, isClosed, setMboSetInfoabortSql, add, add, addAliasForML, addAliasForML, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addFederatedMboToSorter, addJoinedAttribute, addMbo, addMbo, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyAppSpecificAuthorization, 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, countAndCleanup, countAndCleanup, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, dump, earliestDate, enableMethod, executeBatch, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, forceDBSort, getAllAppAlwaysFieldFlags, getAllowQualifiedRestriction, getAlwaysFlags, getAlwaysFlags, getApp, getAppAlwaysFieldFlags, getAppWhere, getAttrRestrictions, getBoolean, getByte, getBytes, getClientLocale, getClientTimeZone, getCompleteWhere, getCurrentPosition, getDate, getDBFetchMaxRows, getDefaultValue, getDefaultValueHash, getDouble, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getFloat, getFromClause, getIgnoredAutokeyAttrs, getInsertCompanySet, getInsertItemSet, getInsertOrg, getInsertSite, getInt, getJspDefaultValueHash, getKeyAttributes, getList, getList, getLong, getMaxAppsWhere, getMaxMessage, getMbo, getMboCtx, 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, getQueryTimeout, getRelationName, getRelationship, getRetainRecordLimit, getRowRestrictions, getSecurityLogger, getSelectClause, getSelectClause, getSelection, getSelectionWhere, getSelectWhereClause, getSetOrderByForUI, getSharedMboSet, getSize, getSkipFirstNRows, getSqlLogger, getSQLOptions, getString, getTranslator, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserPrefWhere, getUserWhere, getUserWhere, getWarnings, getWhere, getZombie, handleMLMbo, handleMLMbo, hasMLQbe, hasQbe, hasWarnings, ignoreAutokeyAttr, ignoreAutokeyAttr, ignoreQbeExactMatchSet, includeRelatedMbosOfOwnersChildren, incrementDeletedCount, init, init, initDataDictionary, insertDeltaRow, isBasedOn, isDeltaStorage, isDMDeploySet, isDMSkipFieldValidation, isDownloadSet, isEAuditFieldModified, isEAuditNeeded, isEmpty, isESigFieldModified, isESigNeeded, isESigNeeded, isFlagSet, isIgnoreQbeExactMatchSet, isInMemorySort, isJoinedAttribute, isLookup, isNull, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, isRetainRecordEnabled, isTableDomainLookup, latestDate, locateMbo, logESigVerification, logRowUpdatedException, max, min, moveFirst, movePrev, moveToKey, newMboIndex, notExist, positionState, processML, remove, remove, remove, removeAllJoinedAttributes, removeCtx, removeJoinedAttribute, resetForRefreshOnSave, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, save, save, save, saveMbos, saveTransaction, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAutoKeyFlag, setBindValueAsBytes, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, setEAuditFieldModified, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFederatedResources, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboCtx, setMXTransaction, setNoNeedtoFetchFromDB, setNoSaveFlag, setOrderBy, setOrderByNVL, setOverrideSelectClause, setOverrideSelectFromClause, setOverrideSelectWhereClause, setOwner, setPreserveOrderByCase, setProxy, 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, updateMboSetRetainMboPositionData, updateRelatedMboSetRetainMboPositionData, useStoredQuery, validate, validateTransaction, verifyESigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortSql, 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, isDownloadSet, isEmpty, isESigNeeded, isFlagSet, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, max, min, moveFirst, movePrev, newMboIndex, notExist, positionState, processML, remove, remove, remove, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, save, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOwner, 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, verifyESiggetBoolean, 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, setValueNullcommitTransaction, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransactionpublic CloudantMboSet(MboServerInterface ms) throws java.rmi.RemoteException
ms - The Cloudant MboSet.MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic java.lang.String getURI()
protected Mbo getMboInstance(MboSet ms) throws MXException, java.rmi.RemoteException
getMboInstance in class RESTMboSetms - MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionprotected java.lang.String addOrderBy(java.lang.String url,
java.lang.String orderBy)
addOrderBy in class RESTMboSeturl - REST URLorderBy - order by clauseMXException - Maximo Exceptionpublic java.lang.String getHTTPQueryMethod()
getHTTPQueryMethod in class RESTMboSetMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic byte[] formatPostData(int index,
boolean forCount)
throws java.rmi.RemoteException,
MXException
formatPostData in class RESTMboSetindex - Index of the row from getMbo(index)forCount - indicates if only count need to be retrievedMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic byte[] formatPostDataForNextPage(byte[] data,
int index)
throws java.rmi.RemoteException,
MXException
formatPostDataForNextPage in class RESTMboSetdata - original POST dataindex - Index of the row from getMbo(index)MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic JSONQuery format(JSONQuery formater, JSONResourceInfo resourceInfo, java.lang.String where, boolean forCount, int index) throws java.rmi.RemoteException, MXException
formater - JSONQueryresourceInfo - resource infowhere - where clauseindex - Index of the row from getMbo(index)forCount - indicates if only count need to be retrievedMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic JSONQuery addPaging(JSONQuery formater, int index, boolean forCount) throws java.rmi.RemoteException, MXException
formater - JSONQueryindex - Index of the row from getMbo(index)forCount - indicates if only count need to be retrievedMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic JSONQuery formatQBE(JSONQuery formater, JSONResourceInfo resourceInfo, boolean forCount, int index) throws java.rmi.RemoteException, MXException
formater - JSONQueryresourceInfo - resource infoindex - Index of the row from getMbo(index)forCount - indicates if only count need to be retrievedMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic void bulkUpdate()
throws java.rmi.RemoteException,
MXException
MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic void setAdditionalData(MboRemote mbo, com.ibm.json.java.JSONObject jo) throws MXException, java.rmi.RemoteException
setAdditionalData in class JSONMboSetmbo - Maximo objectjo - JSON Object to get datambo - processing objectjo - JSON objectMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionprotected void setAttributeValue(java.lang.String attributeName,
java.lang.Object value,
MboRemote mbo)
throws java.rmi.RemoteException,
MXException
attributeName - The attribute name.value - The value to be set.mbo - The serialized mbo.java.rmi.RemoteExceptionMXExceptionpublic java.lang.String getQualifiedWhere()
throws MXException,
java.rmi.RemoteException
getQualifiedWhere in class MboSetMXException - Maximo Exceptionjava.rmi.RemoteException - Remote ExceptionMboSet.isLookup(),
MboSet.getAllowQualifiedRestriction(),
MboSet.getRowRestrictions(int)public java.lang.String getUrl(HTTPHandler handler, boolean forCount) throws MXException, java.rmi.RemoteException
getUrl in class RESTMboSethandler - Handler nameforCount - indicates if only count need to be retrievedMXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic java.lang.String getStringQualifier()
getStringQualifier in class RESTMboSet