public class Mbo extends java.lang.Object implements MboRemote, MboConstants, MaxRemoteProxy
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MULTILANGCOPY
Bulletin Board signal to copy all language versions
|
static java.util.Set |
phantomList |
static java.lang.ref.ReferenceQueue |
phantomQueue |
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| Modifier and Type | Method and Description |
|---|---|
void |
add()
This is called when a new Mbo is added to the Mboset collection.
|
void |
addMboSetForRequiredCheck(MboSetRemote mboSet)
Adds the related MboSet to a list that will be used to check for required fields without a value
when the top most mboset is saved.
|
void |
addToDeleteForInsertList(java.lang.String mboName)
Add name of child mbo to the DeleteForInsert list.
|
boolean |
andEvaluateConditions(DataRestrictionCache.RestrictionBundle restrictions)
Evaluate a bundle of restrictions.
|
void |
appValidate()
Pre-save validation method.
|
MboRemote |
blindCopy(MboSetRemote mboset)
Adds a new mbo to the set passed in and copies all the information for each
of the fields into the new mbo.
|
void |
canDelete()
Can the object be deleted ?
This is object specific and should be overridden.
|
void |
checkFieldAccess(long accessModifier)
Check field access for the entire object.
|
void |
checkMethodAccess(java.lang.String methodName)
Check if the method name is available.
|
void |
checkMethodAccess(java.lang.String methodName,
long accessModifier)
Check if the method name is available.
|
void |
checkQualifiedRestriction()
Check whether the to be saved record is qualified by the QUALIFIED data restriction
if any.
|
protected void |
checkRecordLock()
Checks the MAXRECORDLOCKCACHE if this Mbo is locked by another session.
|
void |
checkSiteOrgAccessForSave()
Checks for access to siteid or orgid, and for conditional sigoption
for optionnames INSERT, DELETE, and/or SAVE.
|
void |
clear()
Clears out any references to other MBOs
|
protected void |
clearRelatedSets()
Close and clear related (child) MboSets, and remove from hashtable.
|
protected void |
clearRelatedSets(java.util.HashSet namesToClear)
Close and clear the named related (child) MboSets, and remove from hashtable.
|
protected void |
commit() |
MboRemote |
copy()
Adds a new mbo to this set and copies the values from the
current record into the new one.
|
MboRemote |
copy(MboSetRemote mboset)
Adds a new mbo to the set passed in and copies the information for each
of the fields into the new mbo from this.
|
MboRemote |
copy(MboSetRemote mboset,
long mboAddFlags)
Adds a new mbo to the set passed in and copies the information for each
of the fields into the new mbo from this.
|
MboRemote |
copyFake(MboSetRemote mboset)
Adds a fake mbo to the set passed in and copies theinformation for each of the fields into
the new mbo from this.
|
void |
copyValue(MboRemote sourceMbo,
java.lang.String[] attrSource,
java.lang.String[] attrTarget,
long flags)
This method will copy the given values of multiple source attributes to
multiple target attributes. 1. |
void |
copyValue(MboRemote sourceMbo,
java.lang.String attrSource,
java.lang.String attrTarget,
long flags)
This method will copy value of source attribute to target attribute
1. |
MboRemote |
createComm()
Create a communication log associated with the current Mbo.
|
void |
delete()
Mark the object to be deleted with all the normal security checks.
|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
protected void |
deleteDoclinks() |
java.util.List |
determineRequiredFieldsFromERM(java.util.Collection attributes,
int mboVectorIndex)
Using the passed in list of ERMAttributes, this method will obtain a complete list of required
fields that need a value for this mbo.
|
MboRemote |
duplicate()
Duplicate method only throws exception now
|
void |
enableMethod(java.lang.String methodName,
boolean state)
Enable/disable a certain method name
|
boolean |
evaluateCondition(java.lang.String conditionNum)
Evaluate to true or false the given single condition by the condition number.
|
boolean |
evaluateCondition(java.lang.String conditionNum,
boolean logErrorOnly)
Evaluate to true or false the given single condition by the condition number.
|
java.util.HashMap |
evaluateCtrlConditions(java.util.HashSet options) |
java.util.HashMap |
evaluateCtrlConditions(java.util.HashSet options,
java.lang.String app)
Evaluate conditions for a given set of option names.
|
boolean |
evaluateRestriction(DataRestriction restriction)
Evaluate the restriction by its ID.
|
boolean |
excludeObjectForPropagate(java.lang.String name)
Check if the object is exclude from propagation
|
java.util.List |
findAllNullRequiredFields(java.util.Collection attributes,
int mboIndex)
Returns a list of ERMAttributeError for each required attribute with a null value.
|
void |
fireEvent(java.lang.String type)
fires events for the different types of events for all business objects
The possible different types are - validate, preSaveEventAction, eventAction,
postCommitEventAction
|
void |
generateAutoKey()
This method has the mbo generate a unique identifier for itself.
|
void |
generateContentUID()
Provide the contentuid.
|
BitFlag |
getAlwaysFlags(java.lang.String attr)
Returns the access flag that apply to the attribute of all the records in the set unconditionally.
|
BitFlag |
getAttrRestrictionFlag(java.lang.String attr)
Get the bit flag set by the attribute restriction.
|
DataRestrictionCache.RestrictionBundle |
getAttrRestrictions(int levelRequested,
java.lang.String attr)
Returns an array list of the attribute restrictions of the requested restriction level that applies to the
attribute.
|
boolean |
getBoolean(java.lang.String attributeName)
Retrieves the boolean value of the attribute identified by name
within the current object.
|
byte |
getByte(java.lang.String attributeName)
Retrieves an attribute value identified by name within the current object
|
byte[] |
getBytes(java.lang.String attributeName)
Retrieves an attribute value identified by name within the current object
|
boolean |
getCheckpoint() |
java.util.Locale |
getClientLocale()
Helper to get the locale of the client previously set for collection
|
java.util.TimeZone |
getClientTimeZone()
Helper to get the time zone of the client previously set for collection
|
java.lang.Object[] |
getCommLogOwnerNameAndUniqueId()
Retuns an object array of owner object name and uniqueid so that commlog can set
in the commlog table.
|
MaxCondition |
getCondition(java.lang.String conditionNum)
Get the MaxCondition object by the condition id.
|
java.lang.Object |
getDatabaseValue(java.lang.String attributeName)
Returns the value of the column at the time of databse fetch.
|
java.util.Date |
getDate(java.lang.String attributeName)
Retrieves the date value of the attribute identified by name
within the current object.
|
java.util.Vector |
getDeleteForInsertList()
Returns the list of deleteForInsert mbo names.
|
int |
getDocLinksCount()
This method recursively traverse the doclinks tree of an object, and count the total number
of attached documents related to it.
|
java.lang.String |
getDomainFilterWhere(java.lang.String filterKeyword)
Get the domain filter where based on the filter keyword which contains the attribute name.
|
java.lang.String[] |
getDomainIDs(java.lang.String attr)
Returns an array of all domain ids linked to the field.
|
double |
getDouble(java.lang.String attributeName)
Retrieves the double value of the attribute identified by name
within the current object.
|
java.lang.String |
getESId() |
MboSetRemote |
getExistingMboSet(java.lang.String relationship)
Get a related MboSet for the object using the named relationship only if the the MboSet
already exists.
|
int |
getFetchIndex()
Returns the fetch index.
|
java.util.Hashtable |
getFieldExceptions()
Return the hashtable of field Exceptions
|
long |
getFlags()
Deprecated.
Replaced by isFlagSet(flag)
|
float |
getFloat(java.lang.String attributeName)
Retrieves the float value of the attribute identified by name
within the current object.
|
boolean |
getIgnoreLockCheck() |
MaxType |
getInitialValue(java.lang.String attributeName) |
java.lang.String |
getInsertCompanySetId()
Returns the default company set id to be applied to a new mbo.
|
java.lang.String |
getInsertItemSetId()
Returns the default item set id to be applied to a new mbo.
|
java.lang.String |
getInsertOrganization()
Returns the default orgid to be applied to a new mbo.
|
java.lang.String |
getInsertOrgForSite(java.lang.String site)
Returns the default site to be applied to a new mbo.
|
java.lang.String |
getInsertSite()
Returns the default site to be applied to a new mbo.
|
MboSetRemote |
getInstanciatedMboSet(java.lang.String relationshipName)
Returned a MboSet with the specified relationship name.
|
MboValue |
getInstanciatedMboValue(java.lang.String name)
Return a MboValue object given the name, but only if it has been instanciated
Returns null if no MboValue has been create with that name.
|
int |
getInt(java.lang.String attributeName)
Retrieves the integer value of the attribute identified by name
within the current object.
|
ServiceRemote |
getIntegrationService()
Convenience Method for getting the IntegrationServiceRemote.
|
KeyValue |
getKeyValue()
Get the key value of this object
|
long[] |
getLanguageRecordRowStamp()
Get the array of language rowstamp values.
|
java.lang.String |
getLinesRelationship() |
MboSetRemote |
getList(java.lang.String attribute)
Get the list of valid values for the attribute.
|
java.lang.String |
getLockedByDisplayName()
Returns the display name of the user who has this Mbo locked
|
java.lang.String |
getLockedByUserID()
Returns the userid of the user who has this Mbo locked
|
long |
getLong(java.lang.String attributeName)
Retrieves the long value of the attribute identified by name
within the current object.
|
java.lang.String |
getMatchingAttr(java.lang.String attribute)
Get the attribute in the lookup table which matches the specified
attribute of this MBO.
|
java.lang.String |
getMatchingAttr(java.lang.String sourceObjectName,
java.lang.String attribute)
Get the attribute in the lookup table which matches the specified
attribute of this MBO.
|
java.lang.Object[] |
getMatchingAttrs(java.lang.String sourceName,
java.lang.String targetAttr)
This method retieves the lookup attribute mapping from the lookup source table
to the target table by looking at the MAXLOOKUPMAP table if the mapping is
specified there.
|
MaxMessage |
getMaxMessage(java.lang.String errGrp,
java.lang.String errKey)
Get the MaxMessage object for the specified error group and errorkey.
|
java.lang.Object |
getMboCtx(java.lang.String propName) |
MboData |
getMboData(java.lang.String[] attributes)
Return a MboData object for the specified list of attributes.
|
java.util.Vector |
getMboDataSet(java.lang.String relationship)
Returns a set of Mbos using the dot notation relationships.
|
MboRemote |
getMboForAttribute(java.lang.String attributeName)
Take a attribute name (which may have a .
|
MboRemote |
getMboForAttributeStatic(java.lang.String attributeName)
Take a attribute name (which may have a .
|
MaxType |
getMboInitialValue(java.lang.String name)
Returns the MaxType (initial value) object given the column name.
|
java.util.List |
getMboList(java.lang.String mrp) |
MXLogger |
getMboLogger()
Returns a logger to log messages related to this business object.
|
psdi.mbo.MboRecordData |
getMboRecordData()
Returns the mbo record data as obtained from the database
|
MboServerInterface |
getMboServer()
Helper function to return the MboServer of the owning collection
|
MboSetRemote |
getMboSet(java.lang.String name)
Get a related MboSet for the object using the named relationship.
|
MboSetRemote |
getMboSet(java.lang.String name,
java.lang.String objectName)
Create or retrieve an MboSet.
|
MboSetRemote |
getMboSet(java.lang.String name,
java.lang.String objectName,
java.lang.String relationship)
Retrieve the named(1st parameter) Mboset if it has been instanciated
or create a new MboSet using the name(1st parameter) if it has not
been instanciated.
|
protected MboSetInfo |
getMboSetInfo()
Return information about the object
|
MboSetInfo |
getMboSetInfo(java.lang.String mboName)
Return information about the passed object
|
MboValue |
getMboValue(java.lang.String nameInput)
Return a MboValue object given the name.
|
MboValueData |
getMboValueData(java.lang.String attribute)
Returns the MboValueData for the specified attribute.
|
MboValueData[] |
getMboValueData(java.lang.String[] attribute)
Returns an array of MboValue objects for the specified attributes.
|
MboValueData |
getMboValueData(java.lang.String attribute,
boolean ignoreFieldFlags)
Overloaded method of getMboValueData() to take a flag indicating if the logic
of attribute readonlyness can be ignored.
|
MboValueData[] |
getMboValueDataForDownload(java.lang.String[] attribute) |
MboValueInfoStatic |
getMboValueInfoStatic(java.lang.String attribute)
Get MboValueInfoStatic object of the attribute.
|
MboValueInfoStatic[] |
getMboValueInfoStatic(java.lang.String[] attribute)
Get a list of MboValueInfoStatic for an array of attributes.
|
java.lang.String |
getMessage(MXException ex)
Get the message of the exception in the language specified by this Mbo's userInfo.
|
java.lang.String |
getMessage(java.lang.String errGrp,
java.lang.String errKey)
Get the message in the language specified by this MboSet's userInfo for the
error group and error key.
|
java.lang.String |
getMessage(java.lang.String errGrp,
java.lang.String errKey,
java.lang.Object param)
Get the message for the error group, error key and the parameter in the language of
this Mbo's userInfo.
|
java.lang.String |
getMessage(java.lang.String errGrp,
java.lang.String errKey,
java.lang.Object[] params)
Get the message for the error group, error key and the parameter in the language of
this Mbo's userInfo.
|
MXTransaction |
getMXTransaction()
Return the MXTransaction that this Mbo participates in.
|
java.lang.String |
getName()
Return the name
|
java.lang.String |
getOrgForGL(java.lang.String lookupAttr)
returns OrgId to be used for GL
|
java.lang.String |
getOrgSiteForMaxvar(java.lang.String maxvarName)
Returns org or site for getting maxvar
|
MboRemote |
getOwner()
Return the owner of mbo
|
ProfileRemote |
getProfile()
Return the profile object for this UserInfo.
|
boolean |
getPropagateKeyFlag()
method for getting the propagate key flag
|
java.rmi.Remote |
getProxy() |
java.lang.String |
getRecordIdentifer()
Generate a string text composed of object name, key names and values to identify the
MBO object.
|
java.lang.String |
getRecordMboName()
Returns the name of the Mbo if this record was in memory as the type is actually is.
|
protected java.lang.String |
getRecordType() |
protected java.util.Hashtable |
getRelatedSets()
Returns the list of related MboSets in a hashtable.
|
java.lang.String |
getRelatedWhere()
Get the where clause for all the related objects that have had a Qbe set on them.
|
java.lang.String |
getRelatedWhere(java.lang.String alias)
Get the where clause for all the related objects that have had a Qbe set on them.
|
java.lang.String |
getRelationshipNameToLangTable(java.lang.String attributeName) |
java.lang.String |
getResourceName() |
BitFlag |
getRowRestrictionFlag()
Get the bit flag set by the attribute restriction.
|
java.lang.String |
getRowStamp()
Returns the string representation of the rowstamp.
|
java.lang.Object |
getRowStampObject() |
MXLogger |
getSecurityLogger()
Returns a logger to log security messages related to this business object.
|
java.lang.String[] |
getSiteOrg()
Find the org and site ids of current record.
|
MXLogger |
getSqlLogger()
Returns a logger to log SQL messages related to this business object.
|
java.lang.String |
getString(java.lang.String attributeName)
Retrieves the string value of the attribute identified by name
within the current object.
|
java.lang.String |
getString(java.lang.String attributeName,
java.lang.String langCode)
Get the string of the attribute in the specified language.
|
java.lang.String |
getStringInBaseLanguage(java.lang.String attributeName)
Get the base language of a certain attribute
|
java.lang.String |
getStringInSpecificLocale(java.lang.String attribute,
java.util.Locale l,
java.util.TimeZone tz)
Get the string of the value in a specific locale and timezone.
|
java.lang.String |
getStringTransparent(java.lang.String attributeName,
java.lang.String langCode)
Returns the string in the specified language code if exists.
|
static java.lang.String |
getSynonymValueWhere(java.lang.String filterKeyword)
Get a list of synonym values that can be used in the sql by the keyword.
|
int |
getTenantId(java.lang.String tableName) |
int |
getTenantIdForNoMboRecordData() |
MboSetRemote |
getThisMboSet()
Return the set that owns this Mbo
|
Translate |
getTranslator()
Return the translator object which can be used to convert
locale sensitive strings
|
java.lang.String |
getUniqueIdentifer()
Returns the UniqueIdName and UniqueIdVlaue concaenated as a string and delimited by a space.
|
java.lang.String |
getUniqueIDName()
returns the unique ID name
|
long |
getUniqueIDValue()
Gets the unique ID value
|
long[] |
getUniqueLanguageIDRecord()
Get the array of the unique language table ID values.
|
UserInfo |
getUserInfo()
Return the user info for the mbo
|
java.lang.String |
getUserName()
Return user name logged into server
|
java.lang.String[] |
getValidateOrder()
Returns a String[] of field names.
|
boolean |
hasFieldAccess(long accessModifier)
Check field access for the entire object.
|
boolean |
hasHierarchyLink()
method for getting if mbo has any hierarchy link or not
|
boolean |
hasLockSaveRights(java.lang.String app) |
boolean |
hasRelatedQbe()
Do t he related MboSets have a Qbe ?
|
boolean |
hasUniqueID()
If this MBO has a UniqueID column or not.
|
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly and required field flags to the mbo.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
boolean |
isApiBatchError() |
protected boolean |
isAppLockEnabled(java.lang.String app) |
boolean |
isAutoKeyed(java.lang.String attributeName)
Returns whether the given attribute name is autokeyed or not
whenever a new mbo is created.
|
boolean |
isBasedOn(java.lang.String objectName)
Returns true, if this business object is based on the given
business object name.
|
boolean |
isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
java.lang.String attributeName)
Indicate whether the changeed by user flag should be set to the attribute when it is set along with other key field
when the lookup attribute is being set on this Mbo.
|
protected boolean |
isDuringInit()
Check whether the mbo is being initialized and added so the data restriction will not take effect.
|
boolean |
isEAuditFieldModified()
Indicates whether any of the fields enabled for electronic audit
are modified by the user.
|
boolean |
isESigFieldModified()
Indicates whether any of the fields enabled for electronic signature
are modified by the user.
|
boolean |
isFlagSet(long flag)
Return the state of the specified mbo flag
|
boolean |
isForDM() |
boolean |
isLocked() |
boolean |
isLocked(boolean cache) |
boolean |
isLockedByMe() |
boolean |
isMasterTenant(java.lang.String tableName) |
boolean |
isMboLockedByMe()
Checks if the current MBO is locked by this Session.
|
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 |
isModified(java.lang.String attribute)
Has the data in the attribute changed?
An attribute is modified if data is changed through one of the setValue methods.
|
boolean |
isNew()
Returns whether the mbo is new or not.
|
boolean |
isNoSql() |
boolean |
isNull(java.lang.String attributeName)
Determines whether the attribute value identified by name within the
current object is null.
|
boolean |
isOptionGranted(java.lang.String app,
java.lang.String option)
Is the given option granted for the app
|
boolean |
isSelected()
Returns whether the mbo is marked for selection.
|
boolean |
isSkipCopyField(MboValueInfo mvi) |
boolean |
isValid()
Is this a valid object ?
|
boolean |
isZombie()
Returns whether the Mbo is a Zombie mbo or not.
|
void |
lock(boolean lockNow) |
void |
modify()
This called whenever a change is made to the attributes of a MBO.
|
void |
moveFieldFlagsToMboValue(MboValue mv)
Internal method to move the flags set for the field on the Mbo to the mbovalue.
|
boolean |
needCallInitFieldFlag(java.lang.String attrName)
This method will be called everytime when a field flag is requested for this
attribute after the initial calling to method initFieldFalg(String) on the
MBO.
|
boolean |
orEvaluateConditions(DataRestrictionCache.RestrictionBundle restrictions)
Evaluate the restrictions according to a OR logic.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Method for propagating key value.
|
java.lang.Object |
removeCtx(java.lang.String propName) |
boolean |
removeRelatedSet(MboSetRemote relatedSet) |
boolean |
resolveNoSqlWhere() |
void |
rollbackToCheckpoint()
Reverts to the saved value.
|
protected void |
save()
Save the object and other linked objects.
|
void |
select()
Marks the mbo selected.
|
void |
setAppDefaultValue()
method for setting the default app value for a mbo(appfielddefault table)
|
void |
setApplicationError(java.lang.String attribute,
ApplicationError appError)
This method will set the passed in ApplicationError on the MboValue associated
this the passed in attribute.
|
void |
setApplicationRequired(java.lang.String attribute,
boolean required)
This method will set the application required boolen flag on the MboValue associated
this the passed in attribute.
|
void |
setAutokeyFields()
Methods to set the autokey to the autokey fields.
|
void |
setCopyDefaults()
Programmer should override this method a initialize any fields that are not copied correctly by the
copy() method.
|
protected void |
setDatabaseDefaultValues()
Called by the framework to set field defaults that have been set by the user
in the data dictionary.
|
protected void |
setDatabaseDefaultValues(boolean setAutoKey)
Called by the framework to set field defaults that have been set by the user
in the data dictionary.
|
void |
setDefaultValue()
method for setting the default value for a mbo(screen default)
|
void |
setDefaultValues()
method for setting the jsp field default values for a mbo
|
void |
setDeleted(boolean deleted)
Marks the Mbo as Deleted.
|
protected void |
setDuringInit(boolean value)
Set the object's duringint flag.
|
void |
setEAuditFieldModified(boolean eAuditFieldModified)
Sets whether any of the fields enabled for electronic audit
are modified by the user.
|
void |
setESId(java.lang.String esId) |
void |
setESigFieldModified(boolean eSigFieldModified)
Sets whether any of the fields enabled for electronic signature
are modified by the user.
|
void |
setFetchIndex(int index)
Sets the fetch index.
|
void |
setFieldFlag(java.lang.String[] names,
boolean inclusive,
long flag,
boolean state)
For the specified fields, set the flag to a state if inclusive
Else set all other fields in this Mbo to a state if exclusive
This does not instanciate a MboValue so should be used whenever possible.
|
void |
setFieldFlag(java.lang.String[] names,
boolean inclusive,
long flag,
boolean state,
MXException mxe)
For the specified fields, set the flag to a state if inclusive
Else set all other fields in this Mbo to a state if exclusive
This does not instanciate a MboValue so should be used whenever possible.
|
void |
setFieldFlag(java.lang.String[] names,
long flag,
boolean state)
For the specified fields, set the flag to a state.
|
void |
setFieldFlag(java.lang.String[] names,
long flag,
boolean state,
MXException mxe)
For the specified fields, set the flag to a state.
|
void |
setFieldFlag(java.lang.String name,
long flag,
boolean state)
For the specified field, set the flag to a state.
|
void |
setFieldFlag(java.lang.String name,
long flag,
boolean state,
MXException mxe)
For the specified field, set the flag to a state.
|
void |
setFieldFlags(java.lang.String name,
long flags)
Deprecated.
Replaced by setFieldFlag(name, flag, state)
|
void |
setFlag(long flag,
boolean state)
Set the Mbo flags to the specified values.
|
void |
setFlag(long flag,
boolean state,
MXException mxe)
Set the Mbo flags to the specified values.
|
void |
setFlags(long flags)
Deprecated.
Replaced by setFlag(flag, state)
|
void |
setForDM(boolean forDM) |
void |
setHierarchyLink(boolean flag)
method for setting the Hierarchy link
|
void |
setIgnoreRecordLockCheck(boolean ignoreRecordLock)
Set to ignore record lock check
|
void |
setLangCodeDefault() |
void |
setMboCtx(java.lang.String propName,
java.lang.Object o) |
void |
setMLValue(java.lang.String attributeName,
java.lang.String langCode,
java.lang.String value,
long accessModifier)
Set the values by the specific lang code.
|
void |
setModified(boolean modified)
Marks the Mbo as Modified.
|
void |
setModifiedForIntegrationOnly(boolean modified)
Marks the Mbo as modified for integration purposes.
|
void |
setNewMbo(boolean flag)
Turns on a flag to indicate that this is a new Mbo.
|
void |
setNoSql(boolean noSql) |
void |
setPropagateKeyFlag(boolean flag)
method for setting the propagate key flag
|
void |
setPropagateKeyFlag(java.lang.String[] objectName,
boolean flag)
methos to set objectnames to exclude from propagation
|
void |
setProxy(java.rmi.Remote proxy) |
void |
setReadonlyWhenParentIsReadonly(java.lang.String relationshipName,
MboSetRemote mboSet,
boolean flag)
This method should be called in initRelationship() if the passed mbo set is not going to
set to readonly if the parent Mbo is readonly.
|
protected void |
setRecordType() |
void |
setReferencedMbo(java.lang.String token,
Mbo refMbo) |
void |
setReferencedMbo(java.lang.String token,
MboRemote refMbo)
We need this methods to keep track of the Process like WorkflowInstance
|
void |
setResolveNoSqlWhere(boolean resolveNoSqlWhere) |
void |
setResourceName(java.lang.String resourceName) |
void |
setTenantIdForNoMboRecordData(int tenantId) |
void |
setUniqueIDValue()
Sets the unique column Value
|
void |
setValue(java.lang.String attributeName,
boolean val)
Sets a boolean value to an attribute identified by name within the current
object and access to the value is controlled by the access modifier.
|
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)
Sets a byte value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
byte[] val)
Sets an array of byte values to an attribute identified by name within
the current object.
|
void |
setValue(java.lang.String attributeName,
byte[] val,
long accessModifier)
Sets an array of byte values to an attribute identified by name within the
current object and access to the value is controlled by the access
modifier.
|
void |
setValue(java.lang.String attributeName,
byte val,
long accessModifier)
Sets a byte value to an attribute identified by name within the current
object and access to the value is controlled by the access modifier.
|
void |
setValue(java.lang.String attributeName,
java.util.Date val)
Sets a date 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 java.util.Date value to an attribute identified by name within the
current object and access to the value is controlled by the access modifier.
|
void |
setValue(java.lang.String attributeName,
double val)
Sets a double 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 and access to the value is controlled by the access modifier.
|
void |
setValue(java.lang.String attributeName,
float val)
Sets a float 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 and access to the value is controlled by the access modifier.
|
void |
setValue(java.lang.String attributeName,
int val)
Sets an integer value to an attribute identified by name within the current
object.
|
void |
setValue(java.lang.String attributeName,
int val,
long accessModifier)
Sets an integer value to an attribute identified by name within the
current object and access to the value is controlled by the access modifier.
|
void |
setValue(java.lang.String attributeName,
long val)
Sets a long 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 and access to the value is controlled by the access modifier.
|
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 targetAttrName,
MboRemote sourceMbo)
This method set the related fields of the current record to the values of
the corresponding key field of the sourceMbo.
|
void |
setValue(java.lang.String targetAttrName,
MboSetRemote sourceMboSet)
This method set the related fields of the current record to the values of
the corresponding key field of the current Mbo of sourceMboSet.
|
void |
setValue(java.lang.String attributeName,
short val)
Sets a short value to an attribute identified by name within the
current object.
|
void |
setValue(java.lang.String attributeName,
short val,
long accessModifier)
Sets a short value to an attribute identified by name within the
current object and access to the value is controlled by the access
modifier.
|
void |
setValue(java.lang.String attributeName,
java.lang.String val)
Sets a string 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 and access to the value is controlled by the access modifier.
|
void |
setValueFromSequence(java.lang.String attributeName)
Sets the attribute value from maxsequence or native sequence (depending on platform).
|
void |
setValueNull(java.lang.String attributeName)
Sets an attribute value identified by name null with no access modifiers.
|
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.
|
java.util.HashMap |
sigopGranted(java.util.Set optionnames)
Identify whether sigoptions have been granted,
based on this app, this Mbo's siteid/orgid, and
any conditions that may have been attached to the
applicationauth record.
|
boolean |
sigopGranted(java.lang.String optionname)
Identify whether this sigoption has been granted,
based on this app, this Mbo's siteid/orgid, and
any conditions that may have been attached to the
applicationauth record.
|
boolean |
sigopGranted(java.lang.String app,
java.lang.String optionname)
Identify whether this sigoption has been granted,
based on this app, this Mbo's siteid/orgid, and
any conditions that may have been attached to the
applicationauth record.
|
protected boolean |
sigopGranted(java.lang.String app,
java.lang.String optionname,
java.lang.String mboSite,
java.lang.String mboOrg) |
void |
sigOptionAccessAuthorized(java.lang.String optionname)
Calls
sigopGranted to check for security permission
for the specified optionname. |
protected boolean |
skipCopyField(MboValueInfo mvi) |
MboSetRemote |
smartFill(java.lang.String attribute,
java.lang.String value,
boolean exact)
Similar to getList().
|
MboSetRemote |
smartFind(java.lang.String attribute,
java.lang.String value,
boolean exact)
Similar to getList().
|
MboSetRemote |
smartFind(java.lang.String attribute,
java.lang.String value,
boolean exact,
boolean isRecordHover)
Similar to getList().
|
MboSetRemote |
smartFind(java.lang.String appName,
java.lang.String attribute,
java.lang.String value,
boolean exact)
Find a set of records of the object of the specified the application
by the specifyed attribute and value of the current record.
|
MboSetRemote |
smartFindByObjectName(java.lang.String sourceObj,
java.lang.String targetAttrName,
java.lang.String value,
boolean exact)
Find a set of records of the object of the specified the application
by the specifyed attribute and values of the current record.
|
MboSetRemote |
smartFindByObjectName(java.lang.String sourceObj,
java.lang.String targetAttrName,
java.lang.String value,
boolean exact,
java.lang.String[][] cachedKeyMap)
Find a set of records of the object of the specified the application
by the specifyed attribute and values of the current record.
|
MboSetRemote |
smartFindByObjectNameDirect(java.lang.String sourceObj,
java.lang.String targetAttrName,
java.lang.String value,
boolean exact)
Find a set of records of the object of the specified the application
by the specifyed attribute and values of the current record.
|
void |
startCheckpoint()
Save the current value for later rollback.
|
boolean |
thisToBeUpdated()
Is the Mbo to be updated in storage ?
|
protected void |
throwRequiredException(MXException mxe,
MboValueInfo mvi,
MboValue mv)
Called from
validate when a required field has null value. |
boolean |
toBeAdded()
Is the Mbo to added to storage ?
|
boolean |
toBeDeleted()
Is the Mbo to be deleted from storage ?
|
boolean |
toBeSaved()
Does the object need to be saved to persistent storage ?
This will also check linked objects.
|
boolean |
toBeUpdated()
Is the Mbo to be updated in storage ?
|
boolean |
toBeValidated()
Does the object need validating ?
This will also check linked objects.
|
void |
undelete()
Unmark the Mbo for deletion.
|
protected void |
undeleteDoclinks() |
void |
unlock(boolean unlockNow)
Unlocks the current MBO if recordlocking is enabled by the system property
|
void |
unselect()
Marks the mbo unselected
|
boolean |
useDataSecurity(java.lang.String group) |
void |
validate()
Validate the object.
|
java.util.Hashtable |
validateAttributes()
Go through the attributes of this Mbo in the order specified by
getValidateOrder().
|
void |
validateKeyUniqueness()
Check whether the combination of primary keys are unique.
|
void |
valueChanged()
A field value has changed.
|
public static final java.lang.String MULTILANGCOPY
public static java.util.Set phantomList
public static java.lang.ref.ReferenceQueue phantomQueue
public Mbo(MboSet ms) throws java.rmi.RemoteException
java.rmi.RemoteExceptionprotected boolean isDuringInit()
protected void setDuringInit(boolean value)
value - public void setProxy(java.rmi.Remote proxy)
setProxy in interface MaxRemoteProxypublic java.rmi.Remote getProxy()
getProxy in interface MaxRemoteProxypublic psdi.mbo.MboRecordData getMboRecordData()
public void setNewMbo(boolean flag)
throws java.rmi.RemoteException
public java.lang.String getStringInBaseLanguage(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getStringInBaseLanguage in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getStringInBaseLanguage(java.lang.String)public java.lang.String getString(java.lang.String attributeName,
java.lang.String langCode)
throws MXException,
java.rmi.RemoteException
getString in interface MboRemoteattributeName - langCode - MXExceptionjava.rmi.RemoteExceptionMbo.getString(String attributeName, String langCode)public java.lang.String getStringTransparent(java.lang.String attributeName,
java.lang.String langCode)
throws MXException,
java.rmi.RemoteException
getStringTransparent in interface MboRemoteattributeName - langCode - MXExceptionjava.rmi.RemoteExceptionMbo.getStringTransparent(String attributeName, String langCode)public void setMLValue(java.lang.String attributeName,
java.lang.String langCode,
java.lang.String value,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setMLValue in interface MboRemoteattributeName - langCode - MXExceptionjava.rmi.RemoteExceptionMbo.setMLValue(String attributeName, String langCode, String value, long accessModifier)public java.lang.String getRelationshipNameToLangTable(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.Object getDatabaseValue(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getDatabaseValue in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setFetchIndex(int index)
public int getFetchIndex()
public void setModified(boolean modified)
setModified in interface MboRemotepublic void setModifiedForIntegrationOnly(boolean modified)
public void setDeleted(boolean deleted)
setDeleted in interface MboRemotepublic java.lang.String getName()
public java.lang.String getRecordMboName()
throws java.rmi.RemoteException,
MXException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getOwner()
public MboSetRemote getThisMboSet()
getThisMboSet in interface MboRemotepublic UserInfo getUserInfo() throws java.rmi.RemoteException
getUserInfo in interface MboRemotejava.rmi.RemoteExceptionpublic void init()
throws MXException
MXExceptionpublic boolean hasUniqueID()
protected void checkRecordLock()
throws MXException
MXExceptionpublic java.lang.String getUniqueIdentifer()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic java.lang.String getLockedByDisplayName()
throws java.rmi.RemoteException,
MXException
getLockedByDisplayName in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpublic java.lang.String getLockedByUserID()
public void initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setReadonlyWhenParentIsReadonly(java.lang.String relationshipName,
MboSetRemote mboSet,
boolean flag)
relationshipName - mboSet - flag - true if the child set needs to be set to readonly when parent is, false otherwise.public java.util.Locale getClientLocale()
public java.util.TimeZone getClientTimeZone()
public MboValue getMboValue(java.lang.String nameInput) throws MXException
MXExceptionMbo.getMboValue(String)public void moveFieldFlagsToMboValue(MboValue mv)
public MboValue getInstanciatedMboValue(java.lang.String name)
public MaxType getMboInitialValue(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboInitialValue in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getInstanciatedMboSet(java.lang.String relationshipName)
protected java.util.Hashtable getRelatedSets()
protected void clearRelatedSets(java.util.HashSet namesToClear)
namesToClear - The names of the child sets that should be cleared.protected void clearRelatedSets()
@TracePrimary public MboValueData getMboValueData(java.lang.String attribute) throws MXException, java.rmi.RemoteException
getMboValueData in interface MboRemoteattributeName - The attribute name within the current object.MXException - "Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getMboValueData(String)@TracePrimary public MboValueData getMboValueData(java.lang.String attribute, boolean ignoreFieldFlags) throws MXException, java.rmi.RemoteException
getMboValueData in interface MboRemoteattribute - ignoreFieldFlags - MXExceptionjava.rmi.RemoteException@TracePrimary public MboValueData[] getMboValueData(java.lang.String[] attribute) throws MXException, java.rmi.RemoteException
getMboValueData in interface MboRemoteattributeName - The array of attribute names within the
current object.MXExceptionjava.rmi.RemoteExceptionMbo.getMboValueData(String[])@TracePrimary public MboValueData[] getMboValueDataForDownload(java.lang.String[] attribute) throws MXException, java.rmi.RemoteException
getMboValueDataForDownload in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getMboValueDataForDownload(String[])public MboData getMboData(java.lang.String[] attributes)
getMboData in interface MboRemote@TracePrimary public MboValueInfoStatic getMboValueInfoStatic(java.lang.String attribute) throws MXException, java.rmi.RemoteException
getMboValueInfoStatic in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getMboValueInfoStatic(String)@TracePrimary public MboValueInfoStatic[] getMboValueInfoStatic(java.lang.String[] attribute) throws MXException, java.rmi.RemoteException
getMboValueInfoStatic in interface MboRemoteattribute - arrayMXExceptionjava.rmi.RemoteExceptionMbo.getMboValueInfoStatic(String[])public MboRemote getMboForAttribute(java.lang.String attributeName) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getMboForAttributeStatic(java.lang.String attributeName) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getList(java.lang.String attribute) throws MXException, java.rmi.RemoteException
getList in interface MboRemoteattributeName - The attribute name within the current object.MXException - "Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getList(String)@TracePrimary public MboSetRemote smartFill(java.lang.String attribute, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFill in interface MboRemoteattribute - value - The QBE value to narrow down the lookup.MXExceptionjava.rmi.RemoteExceptionMbo.getList(java.lang.String)@TracePrimary public MboSetRemote smartFind(java.lang.String attribute, java.lang.String value, boolean exact, boolean isRecordHover) throws MXException, java.rmi.RemoteException
smartFind in interface MboRemoteattribute - value - The QBE value to narrow down the lookup.exact - QBE will use exact match.isRecordHover - smart find is for record hover displayMXExceptionjava.rmi.RemoteExceptionMbo.getList(java.lang.String)public MboSetRemote smartFind(java.lang.String attribute, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind in interface MboRemoteattribute - value - The QBE value to narrow down the lookup.MXExceptionjava.rmi.RemoteExceptionMbo.getList(java.lang.String)@TracePrimary public MboSetRemote smartFind(java.lang.String appName, java.lang.String attribute, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.smartFind(String, String, String, boolean)public MboSetRemote smartFindByObjectName(java.lang.String sourceObj, java.lang.String targetAttrName, java.lang.String value, boolean exact, java.lang.String[][] cachedKeyMap) throws MXException, java.rmi.RemoteException
smartFindByObjectName in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote smartFindByObjectNameDirect(java.lang.String sourceObj, java.lang.String targetAttrName, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFindByObjectNameDirect in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote smartFindByObjectName(java.lang.String sourceObj, java.lang.String targetAttrName, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFindByObjectName in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getString(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getString in interface MboRemoteattributeName - The attribute name within the current object.
Valid data types for the attribute include
UPPPER,LOWER,GL,ALN,LONGALN,DURATION,
DATE,DATETIME,TIME,YORN,INTEGER,SMALLINT,BIGINT,
AMOUNT,DECIMAL,and FLOAT.MXException - "Invalid Data Type" exception will be thrown if
the attribute is of datatype other than
UPPPER,LOWER,GL,ALN,LONGALN,DURATION,
DATE,DATETIME,TIME,YORN,INTEGER,SMALLINT,BIGINT,
AMOUNT,DECIMAL,or FLOAT.
"Attribute {0}" does not exist exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getString(String)public boolean getBoolean(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getBoolean in interface MboRemoteattributeName - The attribute name within the current object.
Valid data types for the attribute should be
YORN.MXException - "Invalid Data Type" exception will be thrown if
the attribute is of datatype other than YORN.
"Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getBoolean(String)public byte getByte(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getByte in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic int getInt(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getInt in interface MboRemoteattributeName - The attribute name within the current object.
Valid data types for the attribute include
INTEGER,SMALLINT,BIGINT,DECIMAL,FLOAT,DURATION,and
AMOUNT.MXException - "Invalid Data Type" exception will be thrown if
the attribute is of data type other than
INTEGER,SMALLINT,BIGINT,DECIMAL,FLOAT,DURATION,or
AMOUNT.
"Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getInt(String)public long getLong(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getLong in interface MboRemoteattributeName - The attribute name within the current object.
Valid data types for the attribute include
INTEGER,SMALLINT,BIGINT,DECIMAL,FLOAT,DURATION,and
AMOUNT.MXException - "Invalid Data Type" exception will be thrown if
the attribute is of datatype other than
INTEGER,SMALLINT,BIGINT,DECIMAL,FLOAT,DURATION,or
AMOUNT.
"Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getLong(String)public float getFloat(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getFloat in interface MboRemoteattributeName - The attribute name within the current object.
Valid data types for the attribute include
DECIMAL,FLOAT,DURATION,AMOUNT,INTEGER,BIGINT,and
SMALLINT.MXException - Invalid Data Type exception will be thrown if
the attribute is of datatype other than
DECIMAL,FLOAT,DURATION,AMOUNT,INTEGER,BIGINT,or
SMALLINT.
Attribute {0} does not exist exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getFloat(String)public double getDouble(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getDouble in interface MboRemoteattributeName - The attribute name within the current object.
Valid data types for the attribute include
DECIMAL,FLOAT,DURATION,AMOUNT,INTEGER,BIGINT,and
SMALLINT.MXException - "Invalid Data Type" exception will be thrown if
the attribute is of datatype other than
DECIMAL,FLOAT,DURATION,AMOUNT,INTEGER,BIGINT,and
SMALLINT.
"Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getDouble(String)public java.util.Date getDate(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getDate in interface MboRemoteattributeName - The attribute name within the current object.
Valid data types for the attribute should be
DATETIME,DATE,TIME.MXException - "Invalid Data Type" exception will be thrown if
the attribute is of datatype other than
DATETIME,DATE,TIME.
"Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.getDate(String)public byte[] getBytes(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
getBytes in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setValue(java.lang.String attributeName,
java.lang.String val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - 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.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a string value of characters to an
attribute which has datatype of YORN.java.rmi.RemoteExceptionMbo.setValue(String,String,long)public void setValue(java.lang.String attributeName,
MaxType mboValue,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - mboValue - accessModifier - MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,MaxType,long)public void setValue(java.lang.String attributeName,
java.lang.String val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The string value to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,String,long)public void setValue(java.lang.String attributeName,
boolean val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The boolean value to set to the attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a boolean value to an
attribute which has datatype of FLOAT.java.rmi.RemoteExceptionMbo.setValue(String,boolean)public void setValue(java.lang.String attributeName,
boolean val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The boolean value to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,boolean,long)public void setValue(java.lang.String attributeName,
byte val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The byte value to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,byte,long)public void setValue(java.lang.String attributeName,
byte val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The byte value to set to the attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a byte value to an attribute
which has datatype of DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,byte,long)public void setValue(java.lang.String attributeName,
int val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The integer value to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,int,long)public void setValue(java.lang.String attributeName,
int val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The integer value to set to the attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting an integer value to an
attribute which has datatype of YORN or
DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,int,long)public void setValue(java.lang.String attributeName,
float val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The float value to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,float,long)@TracePrimary public void setValue(java.lang.String attributeName, float val, long accessModifier) throws MXException, java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The float value to set to the attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a float value to an
attribute which has data type of YORN or
DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,float,long)public void setValue(java.lang.String attributeName,
byte[] val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The array of byte values to set to the
attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,byte[],long)public void setValue(java.lang.String attributeName,
byte[] val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The array of byte values to set to the
attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a byte value to an attribute
which has datatype of DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,byte[],long)public void setValue(java.lang.String attributeName,
java.util.Date val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The date value to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,java.util.Date,long)public void setValue(java.lang.String attributeName,
java.util.Date val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The java.util.Date value to set to the
attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a Date value to an
attribute which has datatype of YORN.java.rmi.RemoteExceptionMbo.setValue(String,java.util.Date,long)public void setValue(java.lang.String attributeName,
short val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The short values to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,short,long)public void setValue(java.lang.String attributeName,
short val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The short value to set to the
attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a short value to an attribute
which has datatype of DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,short,long)public void setValue(java.lang.String attributeName,
long val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The long values to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,long,long)public void setValue(java.lang.String attributeName,
long val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The long value to set to the attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a long value to an
attribute which has data type of YORN or
DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,long,long)public void setValue(java.lang.String attributeName,
double val)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The double values to set to the attribute.MXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,double,long)public void setValue(java.lang.String attributeName,
double val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemoteattributeName - The attribute name within the current object.val - The double value to set to the attribute.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.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a double value to an
attribute which has data type of YORN or
DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,double,long)public boolean isNull(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
isNull in interface MboRemoteattributeName - The attribute name within the current object.MXException - "Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteExceptionMbo.isNull(String)public void setValueNull(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
setValueNull in interface MboRemoteattributeName - The attribute name within the current object.MXExceptionjava.rmi.RemoteExceptionMbo.setValueNull(String,long)public void setValueNull(java.lang.String attributeName,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValueNull in interface MboRemoteattributeName - 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 KeyValue getKeyValue() throws MXException, java.rmi.RemoteException
getKeyValue in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getRecordIdentifer()
throws MXException,
java.rmi.RemoteException
getRecordIdentifer in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.mbo.Mbo#getRecordIdentifier(String attributeName, String langCode, String value, long accessModifier)public boolean isAutoKeyed(java.lang.String attributeName)
throws MXException,
java.rmi.RemoteException
isAutoKeyed in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getMboSet(java.lang.String name, java.lang.String objectName) throws MXException, java.rmi.RemoteException
getMboSet in interface MboRemotename - The name caller would like to associate with
the MboSet about to be retrieved/created.objectName - The database object which should be queried
using any provided where clause.MXException - "Unknown Object" exception will be thrown
if the passed object does not exist.java.rmi.RemoteExceptionMbo.getMboSet(String,String)@TracePrimary public MboSetRemote getMboSet(java.lang.String name, java.lang.String objectName, java.lang.String relationship) throws MXException, java.rmi.RemoteException
getMboSet in interface MboRemotename - The name caller would like to associate with
the MboSet about to be retrieved/created.objectName - The database object which should be queried
using any provided where clause.relationship - The where clause to be applied to reset the
mboSet of interest.MXException - "Unknown Object" exception will be thrown
if the passed object does not exist.java.rmi.RemoteExceptionMbo.getMboSet(String,String,String)public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboSet in interface MboRemotename - The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException - "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteExceptionMbo.getMboSet(String)public java.util.Vector getMboDataSet(java.lang.String relationship)
throws java.rmi.RemoteException,
MXException
getMboDataSet in interface MboRemotembo - The mbo to fetch the related MboSet from.relationship - The dot notation relationships.java.rmi.RemoteExceptionMXExceptionpsdi.mbo.Mbo#getMboDataSet(MboRemote, String)@TracePrimary protected void save() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void commit()
public boolean isValid()
public boolean isZombie()
public void setForDM(boolean forDM)
throws java.rmi.RemoteException
public boolean isForDM()
throws java.rmi.RemoteException
public void setTenantIdForNoMboRecordData(int tenantId)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic int getTenantIdForNoMboRecordData()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemoteaccessModifier - 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 delete()
throws MXException,
java.rmi.RemoteException
Please note that if you need to apply application specific rules when an object is being deleted, please overwrite method delete(long) instead of this one in the derived class.
delete in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void canDelete()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic boolean toBeDeleted()
toBeDeleted in interface MboRemotepublic boolean toBeAdded()
public boolean isNew()
throws java.rmi.RemoteException
public boolean toBeUpdated()
throws java.rmi.RemoteException
toBeUpdated in interface MboRemotejava.rmi.RemoteExceptionpublic boolean thisToBeUpdated()
throws java.rmi.RemoteException
thisToBeUpdated in interface MboRemotejava.rmi.RemoteExceptionpublic boolean isModified()
isModified in interface MboRemoteMbo.isModified()public boolean isModified(java.lang.String attribute)
throws MXException,
java.rmi.RemoteException
isModified in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setESigFieldModified(boolean eSigFieldModified)
throws java.rmi.RemoteException
setESigFieldModified in interface MboRemotejava.rmi.RemoteExceptionpublic boolean isESigFieldModified()
public void setEAuditFieldModified(boolean eAuditFieldModified)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic boolean isEAuditFieldModified()
public boolean toBeValidated()
throws java.rmi.RemoteException
toBeValidated in interface MboRemotejava.rmi.RemoteExceptionpublic boolean toBeSaved()
throws java.rmi.RemoteException
public void appValidate()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean isApiBatchError()
public final void validate()
throws MXException,
java.rmi.RemoteException
validate in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.validateAttributes(),
Mbo.getValidateOrder(),
Mbo.throwRequiredException(psdi.util.MXException, psdi.mbo.MboValueInfo, psdi.mbo.MboValue),
Mbo.appValidate()public void checkQualifiedRestriction()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean orEvaluateConditions(DataRestrictionCache.RestrictionBundle restrictions) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean useDataSecurity(java.lang.String group)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean andEvaluateConditions(DataRestrictionCache.RestrictionBundle restrictions) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected final void throwRequiredException(MXException mxe, MboValueInfo mvi, MboValue mv) throws MXException, java.rmi.RemoteException
validate when a required field has null value.mex - MXExceptionmvi - MboValueInfomv - MboValueMXExceptionjava.rmi.RemoteExceptionpublic java.util.Hashtable validateAttributes()
throws java.rmi.RemoteException
validateAttributes in interface MboRemotejava.rmi.RemoteExceptionpublic java.lang.String[] getValidateOrder()
protected final void setDatabaseDefaultValues()
throws MXException
MXExceptionprotected final void setDatabaseDefaultValues(boolean setAutoKey)
throws MXException
MXExceptionpublic java.lang.String getInsertItemSetId()
throws MXException,
java.rmi.RemoteException
getInsertItemSetId in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInsertCompanySetId()
throws MXException,
java.rmi.RemoteException
getInsertCompanySetId in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInsertSite()
throws MXException,
java.rmi.RemoteException
getInsertSite in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInsertOrgForSite(java.lang.String site)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInsertOrganization()
throws MXException,
java.rmi.RemoteException
getInsertOrganization in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getOrgSiteForMaxvar(java.lang.String maxvarName)
throws MXException,
java.rmi.RemoteException
getOrgSiteForMaxvar in interface MboRemotemaxvarName - MXExceptionjava.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void modify()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void valueChanged()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboServerInterface getMboServer()
protected MboSetInfo getMboSetInfo()
public MboSetInfo getMboSetInfo(java.lang.String mboName)
public Translate getTranslator()
public void setFlags(long flags)
setFlags in interface MboRemoteMbo.setFlag(long, boolean)public long getFlags()
getFlags in interface MboRemoteMbo.isFlagSet(long)public void setFlag(long flag,
boolean state)
public void setFlag(long flag,
boolean state,
MXException mxe)
public boolean isFlagSet(long flag)
public boolean evaluateRestriction(DataRestriction restriction) throws MXException, java.rmi.RemoteException
restrictionID - MXExceptionjava.rmi.RemoteExceptionpublic BitFlag getAttrRestrictionFlag(java.lang.String attr)
public BitFlag getRowRestrictionFlag()
public java.util.Hashtable getFieldExceptions()
public void setFieldFlags(java.lang.String name,
long flags)
setFieldFlags in interface MboRemoteMbo.setFieldFlag(String, long, boolean)public void setFieldFlag(java.lang.String name,
long flag,
boolean state)
setFieldFlag in interface MboRemotepublic void setFieldFlag(java.lang.String name,
long flag,
boolean state,
MXException mxe)
setFieldFlag in interface MboRemotepublic void setFieldFlag(java.lang.String[] names,
long flag,
boolean state)
setFieldFlag in interface MboRemotepublic void setFieldFlag(java.lang.String[] names,
long flag,
boolean state,
MXException mxe)
setFieldFlag in interface MboRemotepublic void setFieldFlag(java.lang.String[] names,
boolean inclusive,
long flag,
boolean state)
setFieldFlag in interface MboRemotepublic void setFieldFlag(java.lang.String[] names,
boolean inclusive,
long flag,
boolean state,
MXException mxe)
setFieldFlag in interface MboRemotepublic void checkFieldAccess(long accessModifier)
throws MXException
MXExceptionpublic boolean hasFieldAccess(long accessModifier)
throws MXException
MXExceptionpublic void enableMethod(java.lang.String methodName,
boolean state)
public void checkMethodAccess(java.lang.String methodName,
long accessModifier)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionProfile.getUserStatus(),
Mbo.sigopGranted(String)public final void checkMethodAccess(java.lang.String methodName)
throws MXException,
java.rmi.RemoteException
checkMethodAccess in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getUserName()
throws MXException,
java.rmi.RemoteException
getUserName in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void fireEvent(java.lang.String type)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void setRecordType()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionprotected java.lang.String getRecordType()
public ProfileRemote getProfile() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionMboSet.getProfile()public MboRemote copy() throws MXException, java.rmi.RemoteException
copy in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.copy(MboSetRemote)public MboRemote copy(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
copy in interface MboRemotemboset - The set into which the new mbo will be added.MXExceptionjava.rmi.RemoteExceptionMbo.copy(MboSetRemote, long)public MboRemote copy(MboSetRemote mboset, long mboAddFlags) throws MXException, java.rmi.RemoteException
copy in interface MboRemotemboset - The set into which the new mbo will be added.mboAddFlags - Flags to use when adding the new Mbo.
Values on the attribute are always set with NOACCESSCHECK|NOVALIDATION_AND_NOACTION.MXExceptionjava.rmi.RemoteExceptionpublic MboRemote copyFake(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
copyFake in interface MboRemotemboset - The set into which the new mbo will be added.MXExceptionjava.rmi.RemoteExceptionpublic void setAutokeyFields()
throws MXException,
java.rmi.RemoteException
setAutokeyFields in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote blindCopy(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
blindCopy in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.blindCopy( MboSetRemote)protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic boolean isSkipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic void setCopyDefaults()
throws MXException,
java.rmi.RemoteException
setCopyDefaults in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic MXTransaction getMXTransaction() throws java.rmi.RemoteException
getMXTransaction in interface MboRemotejava.rmi.RemoteExceptionpublic java.lang.String getRelatedWhere()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getRelatedWhere(java.lang.String alias)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean hasRelatedQbe()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic ServiceRemote getIntegrationService() throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic void generateAutoKey()
throws java.rmi.RemoteException,
MXException
For example, an override often takes the following form
(with the appropriate conditions and exception handling):
or in other cases (no entry in autokey table), it could take the following:
generateAutoKey in interface MboRemotejava.rmi.RemoteExceptionMXExceptionMboValue.autoKey(),
MboValue.generateUniqueID()public boolean getCheckpoint()
public void startCheckpoint()
throws MXException,
java.rmi.RemoteException
startCheckpoint in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.rollbackToCheckpoint()public void rollbackToCheckpoint()
throws MXException,
java.rmi.RemoteException
rollbackToCheckpoint in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.startCheckpoint()public void select()
throws MXException,
java.rmi.RemoteException
select in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.select()public void unselect()
throws MXException,
java.rmi.RemoteException
unselect in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic boolean isSelected()
throws MXException,
java.rmi.RemoteException
isSelected in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void copyValue(MboRemote sourceMbo, java.lang.String attrSource, java.lang.String attrTarget, long flags) throws MXException, java.rmi.RemoteException
copyValue in interface MboRemotesourceMbo - the Mbo to copy the values from. This Mbo maybe a member
of another package.attrSource - the name of the attribute to copyattrTarget - the name of the attribute in this Mbo to copy the value to.flags - NOACCESSCHECK, NONE, NOVALIDATION_AND_NOACTION, etc..MXExceptionjava.rmi.RemoteExceptionpublic void copyValue(MboRemote sourceMbo, java.lang.String[] attrSource, java.lang.String[] attrTarget, long flags) throws MXException, java.rmi.RemoteException
copyValue in interface MboRemotesourceMbo - the Mbo to copy the values from. This Mbo maybe a member
of another package.attrSource - the name of the attribute to copyattrTarget - the name of the attribute in this Mbo to copy the value to.flags - NOACCESSCHECK, NONE, NOVALIDATION_AND_NOACTION, etc..MXExceptionjava.rmi.RemoteExceptionMbo.copyValue(MboRemote sourceMbo, String attrSource, String attrTarget, long flags)public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setPropagateKeyFlag(boolean flag)
throws MXException,
java.rmi.RemoteException
setPropagateKeyFlag in interface MboRemoteboolean - flagMXExceptionjava.rmi.RemoteExceptionpublic void setPropagateKeyFlag(java.lang.String[] objectName,
boolean flag)
throws MXException,
java.rmi.RemoteException
setPropagateKeyFlag in interface MboRemoteobjectname - arrayflag - for true and falseMXExceptionjava.rmi.RemoteExceptionpublic boolean excludeObjectForPropagate(java.lang.String name)
throws MXException,
java.rmi.RemoteException
excludeObjectForPropagate in interface MboRemoteobject - nameMXExceptionjava.rmi.RemoteExceptionpublic boolean getPropagateKeyFlag()
throws MXException,
java.rmi.RemoteException
getPropagateKeyFlag in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
throws MXException,
java.rmi.RemoteException
propagateKeyValue in interface MboRemoteKey - nameKey - ValueMXExceptionjava.rmi.RemoteExceptionpublic void setHierarchyLink(boolean flag)
boolean - flagpublic boolean hasHierarchyLink()
throws MXException,
java.rmi.RemoteException
hasHierarchyLink in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setDefaultValue()
public void setDefaultValues()
public void setAppDefaultValue()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean isBasedOn(java.lang.String objectName)
throws java.rmi.RemoteException
public void clear()
throws MXException,
java.rmi.RemoteException
clear in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic MXLogger getMboLogger()
public MXLogger getSecurityLogger()
public MXLogger getSqlLogger()
public java.lang.String getOrgForGL(java.lang.String lookupAttr)
throws MXException,
java.rmi.RemoteException
getOrgForGL in interface MboRemoteattributeName - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String[] getSiteOrg()
throws MXException,
java.rmi.RemoteException
getSiteOrg in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getOrgSite()public void setValue(java.lang.String targetAttrName,
MboRemote sourceMbo)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesourceMbo - The Mbo whose key values will be crossed over to the current
MboMXExceptionjava.rmi.RemoteExceptionMbo.setValue(String, MboRemote)public void setValue(java.lang.String targetAttrName,
MboSetRemote sourceMboSet)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesourceMboSet - The Mbo Set whose current Mbo's key values will be crossed over to the current
MboMXExceptionjava.rmi.RemoteExceptionMbo.setValue(String, MboSetRemote)public final void setLangCodeDefault()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getUniqueIDName()
throws java.rmi.RemoteException,
MXException
getUniqueIDName in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpsdi.mbo.getUniqueIDNamepublic long getUniqueIDValue()
throws java.rmi.RemoteException,
MXException
getUniqueIDValue in interface MboRemotetableName - java.rmi.RemoteExceptionMXExceptionpsdi.mbo.getUniqueIDValuepublic void setUniqueIDValue()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionMbo.setValueFromSequence(java.lang.String)public void setValueFromSequence(java.lang.String attributeName)
throws MXException
attributeName - The name of the attribute to get the next sequence value.MXExceptionpsdi.mbo.MaxSequence#generateUniqueIDpublic int getDocLinksCount()
throws MXException,
java.rmi.RemoteException
getDocLinksCount in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getDocLinksCount()public java.lang.String getLinesRelationship()
throws MXException,
java.rmi.RemoteException
getLinesRelationship in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getLinesRelationship()public java.lang.String getMessage(java.lang.String errGrp,
java.lang.String errKey)
throws java.rmi.RemoteException
getMessage in interface MboRemoteerrGrp - errKey - java.rmi.RemoteExceptionpublic java.lang.String getMessage(java.lang.String errGrp,
java.lang.String errKey,
java.lang.Object[] params)
throws java.rmi.RemoteException
getMessage in interface MboRemotejava.rmi.RemoteExceptionMbo.getMessage(String errGrp, String errKey, Object[] params)public java.lang.String getMessage(java.lang.String errGrp,
java.lang.String errKey,
java.lang.Object param)
throws java.rmi.RemoteException
getMessage in interface MboRemotejava.rmi.RemoteExceptionMbo.getMessage(String errGrp, String errKey, Object param)public java.lang.String getMessage(MXException ex) throws java.rmi.RemoteException
getMessage in interface MboRemoteerrGrp - errKey - java.rmi.RemoteExceptionpublic MaxMessage getMaxMessage(java.lang.String errGrp, java.lang.String errKey) throws MXException, java.rmi.RemoteException
getMaxMessage in interface MboRemoteerrGrp - errKey - MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createComm() throws MXException, java.rmi.RemoteException
createComm in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.createComm()public java.lang.String getMatchingAttr(java.lang.String attribute)
throws MXException,
java.rmi.RemoteException
getMatchingAttr in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getMatchingAttr(String)public java.lang.String getMatchingAttr(java.lang.String sourceObjectName,
java.lang.String attribute)
throws MXException,
java.rmi.RemoteException
getMatchingAttr in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getMatchingAttr(String,String)public java.lang.String getStringInSpecificLocale(java.lang.String attribute,
java.util.Locale l,
java.util.TimeZone tz)
throws MXException,
java.rmi.RemoteException
getStringInSpecificLocale in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.Object[] getMatchingAttrs(java.lang.String sourceName,
java.lang.String targetAttr)
throws MXException,
java.rmi.RemoteException
getMatchingAttrs in interface MboRemotesourceMbo - the Mbo which is selected by the lookup.targetAttrName - the attribute is being looked up or examined.MXExceptionjava.rmi.RemoteExceptionMbo.getMatchingAttrs(String, String)public void sigOptionAccessAuthorized(java.lang.String optionname)
throws MXException,
java.rmi.RemoteException
sigopGranted to check for security permission
for the specified optionname. Throws an error if option is not granted.sigOptionAccessAuthorized in interface MboRemoteoptionname - Sigoption optionnameMXExceptionjava.rmi.RemoteExceptionMbo.sigopGranted(String)public void initFieldFlagsOnMbo(java.lang.String attrName)
throws MXException
MXExceptionpublic boolean needCallInitFieldFlag(java.lang.String attrName)
attrName - public void checkSiteOrgAccessForSave()
throws MXException,
java.rmi.RemoteException
saveTransaction.MXExceptionjava.rmi.RemoteExceptionMboSet.getApp(),
Mbo.sigopGranted(String, String)public boolean sigopGranted(java.lang.String optionname)
throws MXException,
java.rmi.RemoteException
A method for evaluating a set of optionnames is provided
in sigopGranted.
sigopGranted in interface MboRemoteoptionname - Option nameMXExceptionjava.rmi.RemoteExceptionMboSet.getParentApp(),
Mbo.sigopGranted(String, String)public boolean sigopGranted(java.lang.String app,
java.lang.String optionname)
throws MXException,
java.rmi.RemoteException
sigopGranted in interface MboRemoteapp - Application nameoptionname - Option nameMXExceptionjava.rmi.RemoteExceptionProfile.getAppLevel(java.lang.String),
MboSetInfo.getSiteOrgType(),
Profile.getAppOptionAuth(java.lang.String, java.lang.String, java.lang.String),
Profile.getNonStandardAppOptionAuth(java.lang.String, java.lang.String, java.lang.String, java.lang.String),
Profile.getConditions(java.lang.String, java.lang.String, java.lang.String),
Mbo.evaluateCondition(String)protected boolean sigopGranted(java.lang.String app,
java.lang.String optionname,
java.lang.String mboSite,
java.lang.String mboOrg)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.HashMap sigopGranted(java.util.Set optionnames)
throws MXException,
java.rmi.RemoteException
A method for evaluating a single optionnames is provided
in sigopGranted.
sigopGranted in interface MboRemoteoptionnames - MXExceptionjava.rmi.RemoteExceptionMboSet.getParentApp(),
Mbo.sigopGranted(String, String)public java.util.HashMap evaluateCtrlConditions(java.util.HashSet options)
throws MXException,
java.rmi.RemoteException
evaluateCtrlConditions in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.evaluateCtrlConditions(HashSet, String)public java.util.HashMap evaluateCtrlConditions(java.util.HashSet options,
java.lang.String app)
throws MXException,
java.rmi.RemoteException
CtrlCondPropCache.
Return a HashMap structured as follows.
| Key | Value | |||
|---|---|---|---|---|
| OptionName | TreeMap | |||
| Key | Value | |||
| Integer (to iterate in sequence) | String array [0] = CtrlConditionID, [1] = "1" (true) or "0" (false) | |||
evaluateCtrlConditions in interface MboRemoteoptions - Set of sigoption.optionname. The app has
been set on this MboSet or one of its parents by setApp.MXExceptionjava.rmi.RemoteExceptionMboSet.getParentApp(),
CtrlCondPropCache.getCtrlConditions(java.lang.String, java.lang.String, java.util.HashSet),
Mbo.evaluateCondition(java.lang.String, boolean)public MaxCondition getCondition(java.lang.String conditionNum) throws java.rmi.RemoteException
conditionNum - java.rmi.RemoteExceptionpublic boolean evaluateCondition(java.lang.String conditionNum,
boolean logErrorOnly)
throws MXException,
java.rmi.RemoteException
condition - numberlogErrorOnly - when it is true, the error will be only logged without throwing exceptionMXExceptionjava.rmi.RemoteExceptionpublic boolean evaluateCondition(java.lang.String conditionNum)
throws MXException,
java.rmi.RemoteException
evaluateCondition in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.evaluateCondition(String)public BitFlag getAlwaysFlags(java.lang.String attr)
public DataRestrictionCache.RestrictionBundle getAttrRestrictions(int levelRequested, java.lang.String attr) throws MXException, java.rmi.RemoteException
levelRequested - attr - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String[] getDomainIDs(java.lang.String attr)
throws MXException,
java.rmi.RemoteException
getDomainIDs in interface MboRemoteattr - MXExceptionjava.rmi.RemoteExceptionpsdi.mbo.Mbo#getDomainIDs()public void addToDeleteForInsertList(java.lang.String mboName)
throws java.rmi.RemoteException
addToDeleteForInsertList in interface MboRemotemboName - java.rmi.RemoteExceptionpublic java.util.Vector getDeleteForInsertList()
throws java.rmi.RemoteException
getDeleteForInsertList in interface MboRemotejava.rmi.RemoteExceptionpublic MaxType getInitialValue(java.lang.String attributeName) throws MXException, java.rmi.RemoteException
getInitialValue in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getInitialValue(String)public java.lang.Object[] getCommLogOwnerNameAndUniqueId()
throws MXException,
java.rmi.RemoteException
getCommLogOwnerNameAndUniqueId in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.getCommLogOwnerNameAndUniqueId()public boolean isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
java.lang.String attributeName)
attributeName - the attribute that is not the lookup attribute.lookupAttrName - the attribute whose lookup is being called.public void validateKeyUniqueness()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void generateContentUID()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getDomainFilterWhere(java.lang.String filterKeyword)
throws MXException,
java.rmi.RemoteException
filterKeyword - MXExceptionjava.rmi.RemoteExceptionpublic boolean removeRelatedSet(MboSetRemote relatedSet) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.List determineRequiredFieldsFromERM(java.util.Collection attributes,
int mboVectorIndex)
throws MXException,
java.rmi.RemoteException
MXException - Throws the possible MXException that can be thrown when trying to get MboValue for attributesjava.rmi.RemoteException - Throws the possible MXException that can be thrown when trying to get MboValue for attributespublic java.util.List findAllNullRequiredFields(java.util.Collection attributes,
int mboIndex)
throws MXException,
java.rmi.RemoteException
attributes - The list of required attributes to perform the null check onmboIndex - The index of this mbo in the MboSet's mbo vectorMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getExistingMboSet(java.lang.String relationship) throws java.rmi.RemoteException
getExistingMboSet in interface MboRemotename - The relationship provided to retrieve a
related mboSet.java.rmi.RemoteExceptionpublic void addMboSetForRequiredCheck(MboSetRemote mboSet) throws java.rmi.RemoteException
addMboSetForRequiredCheck in interface MboRemotejava.rmi.RemoteExceptionpublic java.util.List getMboList(java.lang.String mrp)
throws MXException,
java.rmi.RemoteException
getMboList in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setApplicationError(java.lang.String attribute,
ApplicationError appError)
throws MXException,
java.rmi.RemoteException
setApplicationError in interface MboRemoteattribute - The attribute whos MboValue will receive the ApplicationErrorappError - The ApplicationError to be set on the attribute's MboValueMXException, - RemoteExceptionMXExceptionjava.rmi.RemoteExceptionpublic void setApplicationRequired(java.lang.String attribute,
boolean required)
throws MXException,
java.rmi.RemoteException
setApplicationRequired in interface MboRemoteattribute - The attribute whos MboValue will receive the ApplicationErrorrequired - whether the field is required or notjava.rmi.RemoteExceptionMXExceptionpublic static java.lang.String getSynonymValueWhere(java.lang.String filterKeyword)
throws MXException,
java.rmi.RemoteException
mbo - filterKeyword - MXExceptionjava.rmi.RemoteExceptionpublic final java.lang.String getRowStamp()
throws MXApplicationException
MXApplicationExceptionpublic final java.lang.Object getRowStampObject()
throws MXApplicationException
MXApplicationExceptionpublic final int getTenantId(java.lang.String tableName)
throws MXApplicationException
MXApplicationExceptionpublic boolean isMasterTenant(java.lang.String tableName)
throws MXException,
java.rmi.RemoteException
isMasterTenant in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionMbo.isMasterTenant(String tableName)public void setReferencedMbo(java.lang.String token,
MboRemote refMbo)
throws MXException,
java.rmi.RemoteException
setReferencedMbo in interface MboRemoterefMbo - MXExceptionjava.rmi.RemoteExceptionpublic void setReferencedMbo(java.lang.String token,
Mbo refMbo)
throws MXException,
java.rmi.RemoteException
setReferencedMbo in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic long[] getLanguageRecordRowStamp()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic long[] getUniqueLanguageIDRecord()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean isLocked()
throws java.rmi.RemoteException,
MXException
isLocked in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpublic boolean isLocked(boolean cache)
throws java.rmi.RemoteException,
MXException
isLocked in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpublic boolean isLockedByMe()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic boolean isMboLockedByMe()
throws java.rmi.RemoteException,
MXException
isMboLockedByMe in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpublic void lock(boolean lockNow)
throws MXException,
java.rmi.RemoteException
lock in interface MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void unlock(boolean unlockNow)
throws java.rmi.RemoteException,
MXException
unlock in interface MboRemotejava.rmi.RemoteExceptionMXExceptionprotected boolean isAppLockEnabled(java.lang.String app)
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic void setIgnoreRecordLockCheck(boolean ignoreRecordLock)
throws java.rmi.RemoteException,
MXException
setIgnoreRecordLockCheck in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpublic boolean getIgnoreLockCheck()
throws java.rmi.RemoteException,
MXException
getIgnoreLockCheck in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpublic boolean isOptionGranted(java.lang.String app,
java.lang.String option)
throws java.rmi.RemoteException,
MXException
isOptionGranted in interface MboRemotejava.rmi.RemoteExceptionMXExceptionpublic boolean hasLockSaveRights(java.lang.String app)
throws java.rmi.RemoteException,
MXException
hasLockSaveRights in interface MboRemotejava.rmi.RemoteExceptionMXExceptionprotected void deleteDoclinks()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionprotected void undeleteDoclinks()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic boolean isNoSql()
public void setNoSql(boolean noSql)
public boolean resolveNoSqlWhere()
public void setResolveNoSqlWhere(boolean resolveNoSqlWhere)
public java.lang.String getResourceName()
public void setResourceName(java.lang.String resourceName)
public java.lang.String getESId()
public void setESId(java.lang.String esId)
public void setMboCtx(java.lang.String propName,
java.lang.Object o)
public java.lang.Object getMboCtx(java.lang.String propName)
public java.lang.Object removeCtx(java.lang.String propName)