public class RESTMboSet extends JSONMboSet
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 |
---|
RESTMboSet(MboServerInterface ms)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Method o be called in non-persistent object on save
|
byte[] |
formatPostData(int index,
boolean forCount)
Default implementation for formats where clause for POST.
|
byte[] |
formatPostDataForNextPage(byte[] data,
int index)
Default implementation for formats data for next page
|
java.lang.String |
formatUrl(java.lang.String url,
java.lang.String method)
Formats where clause.
|
java.lang.String |
formatUrlForNextPage(java.lang.String url,
int index,
java.lang.String method)
Formats where clause.
|
java.lang.String |
formatUrlForSortPage(java.lang.String url,
int index,
boolean forCount,
java.lang.String method)
Add sort and paging to existing URL.
|
void |
formatWhere(java.util.List<java.lang.String> whereList,
java.lang.String where)
Formats where clause.
|
java.lang.String |
getCountClause()
Return count clause.
|
java.lang.String |
getHTTPQueryMethod()
Get HTTP method.
|
java.lang.Object[] |
getOpAndValue(java.lang.String expression)
Parse expression to get operation and value
|
java.lang.String |
getOrderByClouse()
Return order by clause.
|
java.lang.String[] |
getPagingParams()
Return parameters for paging.
|
java.lang.String |
getStringQualifier()
Return string qualifies.
|
java.lang.String |
getUrl(HTTPHandler handler,
boolean forCount)
Return original URL.
|
java.lang.String |
getWhereSeparator()
Formats where separator.
|
java.lang.String |
getWhereToFormat(java.lang.String where)
Return formatted where clause.
|
java.lang.String |
getWhereToFormat(java.lang.String where,
boolean isRelationship)
Return formatted where clause.
|
byte[] |
invoke(int index,
boolean forCount)
Implementation of invoke of the external data to MboSet for REST call
|
void |
load(int index)
Implementation of load of the external data to MboSet using REST
|
MboRemote |
moveNext()
Override this method so that the current index of the mboset doesn't change during loading through moveNext() call.
|
MboRemote |
moveTo(int pos)
Override this method so that the current index of the mboset doesn't change during loading through moveNext() call.
|
void |
resetQbe()
Reset the QBE for this object, i.e.
|
void |
setQbe(java.lang.String attribute,
java.lang.String expression)
Sets QBE.
|
bytesToJSONArray, count, deserialize, formatResourceName, getBulkUpdate, getCountFromResponse, getDataAsDouble, getDateFormat, getDateFormatType, getEndPointName, getLimit, getMbo, getMetaData, getNullFormat, getProductName, getResourceName, getURL, json2Mbo, json2MboSet, moveLast, reset, resetJSON, setAdditionalData, setAppWhere, setBulkUpdate, setDateFormat, setDateFormatType, setRelationship, setResourceName, setup, setUserWhere, setUserWhereAfterParse, setWhere, supportsUpdate, toBeSaved
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, movePrev, moveToKey, newMboIndex, notExist, positionState, processML, remove, remove, remove, resetForRefreshOnSave, 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, 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, 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, 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, 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 RESTMboSet(MboServerInterface ms) throws java.rmi.RemoteException
ms
- The REST MboSet.MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void execute() throws MXException, java.rmi.RemoteException
execute
in interface NonPersistentMboSetRemote
execute
in class NonPersistentMboSet
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote ExceptionTo check that all required fields are have a value
before continuing execution, call this method. Generally implementations
of this method will call validate() as there first action.
public void load(int index) throws MXException, java.rmi.RemoteException
load
in class JSONMboSet
index
- index of the Mbo in MboSetMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic byte[] invoke(int index, boolean forCount) throws MXException, java.rmi.RemoteException
invoke
in class JSONMboSet
index
- index of the Mbo in MboSetforCount
- is invoke for count only or dataMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void setQbe(java.lang.String attribute, java.lang.String expression) throws MXException, java.rmi.RemoteException
setQbe
in interface MboSetRemote
setQbe
in class MboSet
attribute
- attribute to set toexpression
- expression to setMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote ExceptionMboSet.resetQbe()
,
MboSet.setQbe(String[], String)
,
MboSet.reset()
,
MboSet.getMbo()
public java.lang.Object[] getOpAndValue(java.lang.String expression)
expression
- expression to parseMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void resetQbe()
resetQbe
in interface MboSetRemote
resetQbe
in class MboSet
setQbe(String, String)
public java.lang.String getHTTPQueryMethod()
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String formatUrl(java.lang.String url, java.lang.String method) throws java.rmi.RemoteException, MXException
url
- invoke urlmethod
- HTTP invoke methodMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String formatUrlForSortPage(java.lang.String url, int index, boolean forCount, java.lang.String method) throws java.rmi.RemoteException, MXException
url
- invoke urlindex
- index of the Mbo in MboSetforCount
- formatted for count only or get whole datamethod
- HTTP invoke methodMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic byte[] formatPostData(int index, boolean forCount) throws java.rmi.RemoteException, MXException
index
- 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
data
- original POST dataindex
- Index of the row from getMbo(index)MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String getWhereSeparator() throws MXException
MXException
- Maximo Exceptionpublic void formatWhere(java.util.List<java.lang.String> whereList, java.lang.String where) throws java.rmi.RemoteException, MXException
whereList
- list of where clauseswhere
- where clause to add to the listMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String formatUrlForNextPage(java.lang.String url, int index, java.lang.String method) throws java.rmi.RemoteException, MXException
url
- url to add pagingindex
- index of the Mbo in MboSetmethod
- HTTP invoke methodMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String getOrderByClouse()
MXException
java.rmi.RemoteException
public java.lang.String getCountClause()
public java.lang.String[] getPagingParams()
MXException
java.rmi.RemoteException
public java.lang.String getStringQualifier()
public java.lang.String getUrl(HTTPHandler handler, boolean forCount) throws MXException, java.rmi.RemoteException
handler
- handler nameforCount
- count indicatorMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String getWhereToFormat(java.lang.String where) throws java.rmi.RemoteException, MXException
where
- where clauseMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String getWhereToFormat(java.lang.String where, boolean isRelationship) throws java.rmi.RemoteException, MXException
where
- where clauseisRelationship
- is it relationship where or any other whereMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic MboRemote moveTo(int pos) throws MXException, java.rmi.RemoteException
moveTo
in interface MboSetRemote
moveTo
in class MboSet
MXException
java.rmi.RemoteException
MboSet.getMbo(int)
public MboRemote moveNext() throws MXException, java.rmi.RemoteException
moveNext
in interface MboSetRemote
moveNext
in class MboSet
MXException
java.rmi.RemoteException
MboSet.getMbo(int)