public class SKDQuery extends Mbo implements SKDQueryRemote
This is a system level object.
The key attributes for this object is: NAME, OBJECTNAME, QUERYNAME.
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
| OBJECTNAME | Identifies the type of work/resource records that will be retrieved using the query. |
| QUERYNAME | Identifies the query that will be used to retrieve work/resource records. This value must be unique. |
| WHERECLAUSE | SQL expression that will be used to retrieve work/resource records. |
| SKDOBJECTNAME | SKD Object Name. |
| SKDQUERYID | Unique Id. |
| DESCRIPTION | Describes the query. |
| EXPOBJECT | Expression builder Object. |
| NAME | Identifies the schedule in the SKDProject(for a schedule). This value must be unique. The schedule consists of a group of work records and their required resources. The schedule can be viewed and edited in the Gantt View tab. |
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| Constructor and Description |
|---|
SKDQuery(MboSet ms)
Constructs the SKDQuery object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Adds a new SKDQuery(SKDACTQUERY,SKDRESQUERY,SKDLABORQUERY) object for the 'Work Queries', 'Additional Resources'
and 'Resource Availability'.
|
void |
appValidate()
Pre-save validation method.
|
void |
canDelete()
Before delete, here we check, If the Schedule(SKDProject) is been createdby the loggedin user.
|
void |
copyQuerys(MboSetRemote querySet)
Used to copy the selected queries from Query to SKDQuery depends on,
'Work Queries - SKDACTQUERY' or ' 'Additional Resources - SKDRESQUERY'.
|
void |
delete(long accessModifier)
Delete related SKDQuery entry
|
java.lang.String |
getDefaultObjectName(java.lang.String relationShipName)
Return the default object name to be used for filling in for a new query.
|
java.util.Hashtable |
getQuickQueryQbe()
This method returns the hash table for the given queryid.
|
void |
init()
Initialization routine.
|
void |
modify()
This is called whenever a change is made to the attributes of SKDQuery.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for NAME.
|
protected void |
save()
Saves a SKDQuery Object.
|
void |
saveQuickQueryQbe(java.util.Hashtable savedQbeAttributes)
This method will be called from the data bean to save the quick query qbe in the hashtable.
|
void |
setQueryValues(java.lang.String whereClause)
This method is called from the bean to set current query whereclause.
|
protected boolean |
skipCopyField(MboValueInfo mvi)
This method overrides the skipCopyField() in the Mbo.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, 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, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, 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, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, 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, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, 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, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic SKDQuery(MboSet ms) throws java.rmi.RemoteException
ms - MboSetjava.rmi.RemoteExceptionpublic java.lang.String getDefaultObjectName(java.lang.String relationShipName)
throws MXException,
java.rmi.RemoteException
relationShipName - MXExceptionjava.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class Mbonone - MXException, - RemoteExceptionMXExceptionjava.rmi.RemoteExceptionprotected void save()
throws MXException,
java.rmi.RemoteException
save in class MboMXException, - RemoteExceptionMXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class Mbonone - MXExceptionprotected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField in class Mbomvi - The MboValueInfo object of the MboValue that needs to be copied.MXExceptionjava.rmi.RemoteExceptionpublic void propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
throws MXException,
java.rmi.RemoteException
propagateKeyValue in interface MboRemotepropagateKeyValue in class MbokeyName - Should equal "NAME" or else nothing will be propagated.keyValue - The new value of NAME.MXExceptionjava.rmi.RemoteExceptionpublic void modify()
throws MXException,
java.rmi.RemoteException
modify in class MboMXExceptionjava.rmi.RemoteExceptionpublic void copyQuerys(MboSetRemote querySet) throws MXException, java.rmi.RemoteException
copyQuerys in interface SKDQueryRemoteMXExceptionjava.rmi.RemoteExceptionSKDQuery.copyQuerys(MboSetRemote querySet)public void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXExceptionjava.rmi.RemoteExceptionMXApplicationExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class MboaccessModifier - The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void appValidate()
throws MXException,
java.rmi.RemoteException
MboappValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic void setQueryValues(java.lang.String whereClause)
throws MXException,
java.rmi.RemoteException
setQueryValues in interface SKDQueryRemoteMXExceptionjava.rmi.RemoteExceptionSKDQuery.setQueryValues(String whereClause)public void saveQuickQueryQbe(java.util.Hashtable savedQbeAttributes)
throws MXException,
java.rmi.RemoteException
saveQuickQueryQbe in interface SKDQueryRemoteMXExceptionjava.rmi.RemoteExceptioncom.ibm.tivoli.maximo.skd.app.SKDQuery#saveQuickQueryQbe( HashtablesavedQbeAttributes) public java.util.Hashtable getQuickQueryQbe()
throws MXException,
java.rmi.RemoteException
getQuickQueryQbe in interface SKDQueryRemoteMXExceptionjava.rmi.RemoteExceptioncom.ibm.tivoli.maximo.skd.app.SKDQuerySet#Hashtable getQBE(long queryid)