psdi.mbo

Class FauxMboSet

  • java.lang.Object
    • java.rmi.server.RemoteObject
      • java.rmi.server.RemoteServer
        • java.rmi.server.UnicastRemoteObject
          • psdi.mbo.FauxMboSet
    • Constructor Summary

      Constructors 
      Constructor and Description
      FauxMboSet(MboRemote owner)
      Constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      void abortSql()
      Abort the sql query currently in process.
      MboRemote add()
      Defined to call the alternate form of the method with the default flag of NONE and position of 0.
      MboRemote add(long accessModifier)
      Defined to call the alternate form of the method with the position of 0.
      MboRemote addAtEnd()
      Defined to call the alternate form of the method with the default flag of NONE and position of -1.
      MboRemote addAtEnd(long accessModifier)
      Defined to call the alternate form of the method with the position of -1.
      MboRemote addAtIndex(int index)
      Defined to call the alternate form of the method with the default flag of NONE.
      MboRemote addAtIndex(long accessModifier, int index)
      Probably this method should be overridden in the sub-class, unless canAdd always throws an exception.
      MboRemote addFakeAtEnd() 
      protected Mbo addForFauxSet(MboSet realSet, long accessModifier, int index)
      For FauxMboSets that support additions, this method will pass the FauxSet's defaults to the set that will actually get the new Mbo.
      void addListener(MboSetListener l)
      Add a listener to this MboSet.
      void addSubQbe(java.lang.String name, java.lang.String[] attrs, java.lang.String operator) 
      void addSubQbe(java.lang.String name, java.lang.String[] attrs, java.lang.String operator, boolean exactMatch) 
      void addSubQbe(java.lang.String parentQbe, java.lang.String name, java.lang.String[] attrs, java.lang.String operator) 
      void addSubQbe(java.lang.String parentQbe, java.lang.String name, java.lang.String[] attrs, java.lang.String operator, boolean exactMatch) 
      void addWarning(MXException e)
      Add a warning to the warning list
      void addWarnings(MXException[] es)
      Add all the exceptions from an array to the warning vector
      void checkMethodAccess(java.lang.String methodName)
      Undefined in the faux set.
      void cleanup()
      Undefined in the faux set.
      void clear()
      Removes all Mbos from the faux MboSet.
      void clearLongOpPipe()
      Clear the long op message pipe.
      void clearWarnings()
      Clears the warning list.
      void close()
      Prematurely closes the MboSet.
      void commit()
      Undefined in the faux set.
      void commitTransaction(MXTransaction txn)
      Commit the object.
      void copy(MboSetRemote mboset)
      Mbo's are copied into the mboset passed as a parameter.
      void copy(MboSetRemote sourceSet, java.lang.String[] srcAttributes, java.lang.String[] destAttributes)
      New Mbos are created in this set from the sourceSet and appropriate attribute values are copied to the mbos.
      void copyForDM(MboSetRemote mboset, int begin, int size) 
      int count()
      Counts the number of Mbos in the MboSet using the default option.
      int count(int countConstant)
      Counts the number of Mbos in the MboSet.
      void deleteAll()
      Calls the real method with the NONE flag.
      void deleteAll(long accessModifier)
      Marks all mbos in this set for deletion.
      void deleteAndRemove()
      Deletes and Removes the current mbo from the collection, if the mbo is newly created .
      void deleteAndRemove(int pos)
      Deletes and remove an object from the collection at the given position, if the mbo at the position is a newly created.
      void deleteAndRemove(int pos, long accessModifier)
      Deletes and remove an object from the collection at the given position, if the mbo at the position is a newly created.
      void deleteAndRemove(MboRemote mbo)
      Delets and removes a mbo object from the collection, if the mbo is newly created .
      void deleteAndRemove(MboRemote mbo, long accessModifier)
      Delets and removes a mbo object from the collection, if the mbo is newly created .
      void deleteAndRemoveAll()
      Deletes and removes all the newly created Mbos from the collection.
      void deleteAndRemoveAll(long accessModifier)
      Deletes and removes all the newly created Mbos from the collection.
      java.util.List determineRequiredFieldsFromERM()
      Using the ERMEntity associated with this MboSet, this method will obtain a complete list of required fields that need a value.
      java.util.Date earliestDate(java.lang.String attributeName)
      Undefined in the faux set.
      abstract void fetchMbos(int toPostion)
      This method needs to be overridden to produce the Mbos which are members of this "MboSet".
      MboRemote fetchNext()
      Undefined in the faux set.
      java.util.List findAllNullRequiredFields()
      Returns a list of ERMAttributeError for each required attribute with a null value.
      MboRemote findByIntegrationKey(java.lang.String[] integrationKeys, java.lang.String[] integrationKeyValues)
      This method is used by the integration logic to find out the mbos that are present based on an integration key.
      MboRemote findKey(java.lang.Object keyObject)
      Undefined in the faux set.
      void fireEventsAfterDB(MXTransaction txn)
      fire events for all mbos in the transaction after db operation.
      void fireEventsAfterDBCommit(MXTransaction txn)
      fire events for all mbos in the transaction after db commit.
      void fireEventsBeforeDB(MXTransaction txn)
      fire events for all mbos in the transaction before db operation.
      protected java.util.HashMap getAllAppAlwaysFieldFlags()
      Return all the always field flags set to all the attribute on this mboset.
      java.lang.String getApp()
      Returns the application for this set
      BitFlag getAppAlwaysFieldFlags(java.lang.String attr)
      Get the bitFlag stored for the UI always flag for the attribute, null if nothing.
      java.lang.String getAppWhere()
      Gets the application where clause.
      boolean getBoolean(java.lang.String attributeName) 
      byte getByte(java.lang.String attributeName) 
      byte[] getBytes(java.lang.String attributeName) 
      java.util.Locale getClientLocale()
      Return the locale of the object.
      java.util.TimeZone getClientTimeZone()
      Return the time zone being used by the server
      java.lang.String getCompleteWhere()
      Returns the where clause that this set would use, if it wasn't a FauxMboSet.
      int getCurrentPosition()
      Return the current index position in the set.
      java.util.Date getDate(java.lang.String attributeName) 
      int getDBFetchMaxRows()
      Returns the fetch limit that has been set on this MboSet.
      java.lang.String getDefaultValue(java.lang.String attribute)
      method for getting the default value for an attribute
      java.util.HashMap getDefaultValueHash()
      method for getting defaultValue hash table
      double getDouble(java.lang.String attributeName) 
      ERMEntity getERMEntity()
      Finds and returns the ERMEntity assiciated with the MbSet.
      java.lang.String getESigTransactionId()
      Undefined in the faux set.
      boolean getExcludeMeFromPropagation()
      Gets the flag to excude a mboset from propagation
      java.lang.String[] getFetchAttributes()
      The faux set doesn't support FetchAttributes.
      java.lang.String[] getFetchAttributes(java.lang.String rel)
      The faux set doesn't support FetchAttributes.
      protected QbeFilter getFilter() 
      long getFlags()
      Deprecated. 
      Replaced by isFlagSet(flag)
      float getFloat(java.lang.String attributeName) 
      int getInt(java.lang.String attributeName) 
      java.util.HashMap getJspDefaultValueHash()
      method for getting jsp field defaultValue hash table
      java.lang.String[] getKeyAttributes()
      Returns a list of key attributes.
      MboSetRemote getList(int row, java.lang.String attributeName)
      Get the list of valid values for an attribute for the given row
      MboSetRemote getList(java.lang.String attributeName)
      Gets the MboSet containing valid values for a specified attribute of the current Mbo in this set.
      long getLong(java.lang.String attributeName) 
      MaxMessage getMaxMessage(java.lang.String errGrp, java.lang.String errKey)
      Get the MaxMessage object for the specified error group and errorkey.
      MboRemote getMbo()
      Returns the current Mbo from the collection.
      MboRemote getMbo(int pos)
      Get the Mbo at the position.
      MboRemote getMboForUniqueId(long id)
      Get the mbo for the unique id.
      MboSetData getMboSetData(int row, int count, java.lang.String[] attributes)
      Return information about the MboSet and the specified attributes for the specified rows.
      MboSetData getMboSetData(java.lang.String[] attributes)
      Return information about the MboSet for the specified attributes.
      MboSetInfo getMboSetInfo()
      Return Information about the Mbo Set.
      MboSetRetainMboPositionData getMboSetRetainMboPositionData()
      Returns the retain mbo position data available.
      MboSetRetainMboPositionInfo getMboSetRetainMboPositionInfo()
      Returns the retain mbo position info available.
      MboValueData getMboSetValueData(java.lang.String attribute)
      Return the MboValueData for the specified attribute.
      MboValueData[] getMboSetValueData(java.lang.String[] attribute)
      Returns an array of MboValueData objects for the specified array of attributes.
      MboValueData[][] getMboValueData(int rowStart, int rowCount, java.lang.String[] attribute)
      Get MboValueData for the specified rows and attributes.
      MboValueData getMboValueData(java.lang.String attribute)
      Return MboValueData for the current instance of a Mbo.
      MboValueData[] getMboValueData(java.lang.String[] attribute)
      Get the MboValueData for the specified array of attributes.
      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 MboSet'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 MboSet'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 MboSet's userInfo.
      java.lang.StringBuffer getMLFromClause(boolean useSchemaOwner)
      This method shouldn't be needing this method.
      MXTransaction getMXTransaction()
      Undefined in the faux set.
      abstract java.lang.String getName()
      Define to give the MboSet a name.
      java.lang.String getOrderBy()
      Undefined in the faux set.
      MboRemote getOwner() 
      java.lang.String getParentApp() 
      ProfileRemote getProfile()
      Undefined in the faux set.
      java.lang.String[][] getQbe()
      Undefined in the faux set.
      java.lang.String getQbe(java.lang.String attribute)
      Looks up the Qbe defined for the attribute given.
      java.lang.String[] getQbe(java.lang.String[] attribute)
      Looks of the Qbe defined for each attribute named in an array.
      java.lang.String getQbeWhere() 
      int getQueryTimeout() 
      java.lang.String getRelationName()
      Returns the relationship name used to obtain this set.
      java.lang.String getRelationship()
      Return the Where clause of the relationship.
      java.util.Vector getSelection()
      Returns a Vector of selected mbos.
      java.lang.String getSelectionWhere()
      Returns the where clause for the selected Mbos - NOT implemented in the faux set.
      java.lang.String getSetOrderByForUI() 
      int getSize()
      Return the current size of the collection
      java.lang.String getSQLOptions()
      Undefined in the faux set.
      java.lang.String getString(java.lang.String attributeName) 
      java.util.Map getTxnPropertyMap()
      Gets the property map for the transaction
      java.lang.String getUserAndQbeWhere()
      Undefined in the faux set, but fails silently.
      UserInfo getUserInfo()
      Undefined in the faux set.
      java.lang.String getUserName()
      Undefined in the faux set.
      java.lang.String getUserWhere()
      Undefined in the faux set, but fails silently.
      java.lang.String getUserWhere(java.lang.String alias)
      Undefined in the faux set, but fails silently.
      MXException[] getWarnings()
      Returns a list of warnings from the last method call.
      java.lang.String getWhere()
      Undefined in the faux set.
      MboRemote getZombie()
      This method should be overridden so that in returns a Zombie Mbo of the type of Mbo that makes up this set.
      boolean hasFetchAttributes()
      The faux set doesn't support FetchAttributes.
      boolean hasMLQbe()
      It is safe to just return false.
      boolean hasQbe()
      Are there QBE filters defined on this MboSet? Whether or not the filter is actually used depends on the sub-class.
      boolean hasWarnings()
      Are there any warnings.
      void ignoreQbeExactMatchSet(boolean flag)
      Ignores the QBE exact match set by setQbeExactMatch
      void incrementDeletedCount(boolean inc)
      Undefined in the faux set.
      void init(UserInfo ui)
      Undefined in the faux set.
      boolean isBasedOn(java.lang.String objectName)
      Returns true, if this business object is based on the given business object name.
      boolean isClosed()
      Returns whether the set has been closed or not.
      boolean isDMDeploySet()
      Returns the if mboset is created during Deploy action of Deployement Manager set or not
      boolean isDMSkipFieldValidation()
      Returns the flag if set is created during deploy action of Deployment Manager.
      boolean isDownloadSet() 
      boolean isEmpty()
      Returns true if this set is empty.
      boolean isESigNeeded(java.lang.String optionName)
      Undefined in the faux set.
      boolean isFlagSet(long flag)
      Return the state of the specified mboset flag
      boolean isFromGetList()
      Set the flag to indicate the mboset is from getlist
      boolean isIgnoreQbeExactMatchSet()
      method to find if ignore QBE exact match set or not
      boolean isNull(java.lang.String attributeName) 
      boolean isQbeCaseSensitive()
      Undefined in the faux set.
      boolean isQbeExactMatch() 
      boolean isRetainMboPosition()
      Is the current MboSet's mbo position to be retained?
      java.util.Date latestDate(java.lang.String attributeName)
      Undefined in the faux set.
      MboRemote locateMbo(java.lang.String[] keys, java.lang.String[] values, int option) 
      void logESigVerification(java.lang.String username, java.lang.String reason, boolean authenticatedSuccessfully)
      Logs a esig record aboout the user indicating the reason for the verification and whether the user authentication is successful or not.
      double max(java.lang.String attribute)
      Undefined in the faux set.
      double min(java.lang.String attribute)
      Undefined in the faux set.
      MboRemote moveFirst()
      Positions to the first object within the collection.
      MboRemote moveLast()
      Does anyone use this?
      MboRemote moveNext()
      Positions to the next Object found within the collection.
      MboRemote movePrev()
      Positions to the previous Object found within the collection.
      MboRemote moveTo(int pos)
      Positions to and make current the object located at the index position within the collection.
      int newMboIndex() 
      boolean notExist()
      Check if this mboset has any record.
      void positionState()
      Positions the current mbo based on the position data cached, if the data exists.
      boolean processML()
      Whether multi-language needs to be considered
      void remove()
      Remove the current object from the collection.
      void remove(int pos)
      Remove an object from the collection at the given position.
      void remove(MboRemote mbo)
      Remove this mbo from the faux mbo set.
      protected void removeFromVector(MboRemote outMbo)
      This helper method is made available to properly remove a Mbo from the MboVec list.
      void removeListener(MboSetListener l)
      Remove a listener
      void reportModifiedMbo(MboRemote modifiedMbo)
      Assumes that the modified Mbo is a member of the set.
      void reset()
      This method only resets this MboSet.
      void resetQbe()
      Reset the QBE for this object, i.e.
      void resetWithSelection()
      Undefined in the faux set.
      void rollback()
      Undefined in the faux set.
      void rollbackToCheckpoint()
      Undefined in the faux set.
      void rollbackToCheckpoint(int i)
      Undefined in the faux set.
      void rollbackTransaction(MXTransaction txn)
      Rollback the object.
      void save()
      Redirected in to the flag taking method with the default flag of NONE.
      void save(long flag)
      Does nothing, since the real MboSets will do whatever is needed if they are modified.
      void saveTransaction(MXTransaction txn)
      Save the object on the specified transaction.
      void select(int index)
      Select
      void select(int startIndex, int count)
      Marks the a set of Mbos starting from startIndex Selected.
      void select(java.util.Vector mboIndices)
      Select
      void selectAll()
      Marks all the Mbos in the set selected.
      void setAllowQualifiedRestriction(boolean value) 
      void setApp(java.lang.String appName)
      Sets the application for this set.
      void setAppAlwaysFieldFlag(java.lang.String attr, long flag, boolean state)
      Informs the mbo set that any mbo of this set will have the field flags set to the specified attribute.
      void setAppWhere(java.lang.String appWhere)
      Sets the application where clause.
      boolean setAutoKeyFlag(boolean flag)
      This method will switch on and off the flag of setting the autokey to the newly added() method when different forms of add() is called if autokey is set as the object default value.
      void setDBFetchMaxRows(int fetchLimit)
      Set the fetch limit for this MboSet.
      void setDefaultOrderBy()
      Undefined in the faux set.
      void setDefaultValue(java.lang.String attribute, MboRemote mbo)
      Set default value for this attribute to the value derived from mbo passed in.
      void setDefaultValue(java.lang.String attribute, java.lang.String value)
      method for setting default values for a mboset(screen/table default)
      void setDefaultValues(java.lang.String[] attributes, java.lang.String[] values)
      method for setting JSP field default values for a mboset
      void setDefaultValues(java.lang.String attribute, java.lang.String value)
      method for setting JSP field default values for a mboset
      void setDMDeploySet(boolean flag)
      Mark the set as created during deploy action of Deployment Manager
      void setDMSkipFieldValidation(boolean flag)
      Mark the set as created during deploy action of Deployment Manager.
      void setDownloadSet(boolean isDownloadSet) 
      void setERMEntity(ERMEntity ermEntity)
      Sets the ERMEntity of on the MboSet and sets the alwaysUIFieldFlags for each required attribute in the ERMEntity
      void setESigFieldModified(boolean esigFieldModified)
      Undefined in the faux set.
      void setExcludeMeFromPropagation(boolean flag)
      Sets the flag to excude a mboset from propagation
      void setFetchAttributes(java.lang.String[] attributes)
      The faux set doesn't support FetchAttributes.
      void setFlag(long flag, boolean state)
      Set the mboset flags to the specified values.
      void setFlag(long flag, boolean state, MXException mxe)
      Set the mboset flags to the specified values.
      void setFlags(long flags)
      Deprecated. 
      Use setFlag(long, boolean)
      void setFromGetList(boolean value)
      Flag to indicate if the mboset is from getlist
      void setInsertCompanySet(java.lang.String compSet)
      Sets the insert company set for the mboset.
      void setInsertItemSet(java.lang.String itemSet)
      Sets the insert item set for the mboset.
      void setInsertOrg(java.lang.String org)
      Sets the insert org for the mboset.
      void setInsertSite(java.lang.String site)
      Sets the insert site for the mboset.
      void setLastESigTransId(java.lang.String id)
      Undefined in the faux set.
      boolean setLogLargFetchResultDisabled(boolean disable)
      Pass true to disable loging of large fetch result set over a limit.
      void setMboSetInfo(MboSetInfo ms)
      Set the MboInfo object that describes this collection.
      void setMXTransaction(MXTransaction txn)
      Undefined in the faux set.
      void setNoNeedtoFetchFromDB(boolean flag)
      Dummy method.
      void setOrderBy(java.lang.String orderByClause)
      Undefined in the faux set.
      void setOverrideOptimisticLock(boolean val)
      Undefined in the faux set.
      void setOwner(MboRemote mbo)
      Given the owner of this MboSet.
      void setQbe(java.lang.String[] attribute, java.lang.String expression)
      Undefined in the faux set.
      void setQbe(java.lang.String[] attribute, java.lang.String[] expression)
      Undefined in the faux set.
      void setQbe(java.lang.String attribute, MboSetRemote lookup)
      Set QBE for this attribute to the values derived from the multiple selection of the lookup mbo set passed in.
      void setQbe(java.lang.String attribute, java.lang.String expression)
      Sets the QBE (Query by example) for a single attribute.
      void setQbe(java.lang.String attribute, java.lang.String[] expression)
      Qbe to take array of values for an attribute.
      void setQbeCaseSensitive(boolean state)
      Set the QBE to be case sensitive or not.
      void setQbeCaseSensitive(java.lang.String state)
      Set the QBE to be case sensitive or not.
      void setQbeExactMatch(boolean state)
      Set if QBE should use exact match.
      void setQbeExactMatch(java.lang.String state)
      Set if QBE should use exact match.
      void setQbeOperatorOr()
      Set the qbe operator OR
      void setQueryBySiteQbe() 
      void setQueryTimeout(int queryTimeout) 
      void setRelationName(java.lang.String relationName)
      This method sets the relationship name used to created this set when this set is obtained from a mbo.
      void setRelationship(java.lang.String relationClause)
      Set the SQL WHERE clause that will be used to define a relationship between this object and it's parent.
      void setRequiedFlagsFromERM()
      Get the ERMEntity associated with the MboSet (if there is one) and determines if the ERMEntity has any required fields and sets the required UI always Field Flag on the MboSet for each required one.
      void setRetainMboPosition(boolean retainMboPosition)
      Sets the current MboSet's mbo position to be retained after save.
      void setSetOrderByForUI(java.lang.String orderBy) 
      void setSQLOptions(java.lang.String sqlOptions)
      Undefined in the faux set.
      void setTableDomainLookup(boolean flag)
      Sets the tableDomainLookup flag to indicate that the this set is associated with a table domain lookup.
      void setTxnPropertyMap(java.util.Map map)
      Sets the property map for transaction
      java.io.InputStream setupLongOpPipe()
      Setup pipe for long op messages.
      void setUserWhere(java.lang.String userWhere)
      Undefined in the faux set, but fails silently.
      void setUserWhereAfterParse(java.lang.String where) 
      void setValue(java.lang.String attributeName, boolean val) 
      void setValue(java.lang.String attributeName, boolean val, long accessModifier) 
      void setValue(java.lang.String attributeName, byte val) 
      void setValue(java.lang.String attributeName, byte[] val) 
      void setValue(java.lang.String attributeName, byte[] val, long accessModifier) 
      void setValue(java.lang.String attributeName, byte val, long accessModifier) 
      void setValue(java.lang.String attributeName, java.util.Date val) 
      void setValue(java.lang.String attributeName, java.util.Date val, long accessModifier) 
      void setValue(java.lang.String attributeName, double val) 
      void setValue(java.lang.String attributeName, double val, long accessModifier) 
      void setValue(java.lang.String attributeName, float val) 
      void setValue(java.lang.String attributeName, float val, long accessModifier) 
      void setValue(java.lang.String attributeName, int val) 
      void setValue(java.lang.String attributeName, int val, long accessModifier) 
      void setValue(java.lang.String attributeName, long val) 
      void setValue(java.lang.String attributeName, long val, long accessModifier) 
      void setValue(java.lang.String attributeName, short val) 
      void setValue(java.lang.String attributeName, short val, long accessModifier) 
      void setValue(java.lang.String attributeName, java.lang.String val) 
      void setValue(java.lang.String attributeName, java.lang.String val, long accessModifier) 
      void setValueNull(java.lang.String attributeName) 
      void setValueNull(java.lang.String attributeName, long accessModifier) 
      void setWhere(java.lang.String whereClause)
      Not used by the faux set, unless a sub-class does something with it.
      void setWhereQbe(java.lang.String attribute, java.lang.String value, java.lang.String where)
      Undefined in the faux set.
      MboSetRemote smartFill(int row, java.lang.String attributeName, java.lang.String value, boolean exact)
      Get a list of valid values of the attribute on the MBO specified by the row based on the QBE set by the value.
      MboSetRemote smartFill(java.lang.String attributeName, java.lang.String value, boolean exact)
      Get a list of valid values of the attribute based on the QBE set by the value.
      MboSetRemote smartFind(int row, java.lang.String attributeName, java.lang.String value, boolean exact)
      Get a list of valid values of the attribute on the MBO specified by the row based on the QBE set by the value.
      MboSetRemote smartFind(int row, java.lang.String objectName, java.lang.String attributeName, java.lang.String value, boolean exact)
      Get a list of valid values of the specified object based on the attribute value specified of this mbo.
      MboSetRemote smartFind(java.lang.String attributeName, java.lang.String value, boolean exact)
      Get a list of valid values of the attribute based on the QBE set by the value.
      MboSetRemote smartFind(java.lang.String objectName, java.lang.String attributeName, java.lang.String value, boolean exact)
      Get a list of valid values of the specified object based on the attribute value specified of this mbo.
      void startCheckpoint()
      Undefined in the faux set.
      void startCheckpoint(int i)
      Undefined in the faux set.
      double sum(java.lang.String attribute)
      Undefined in the faux set.
      boolean toBeSaved()
      Has the collection be modified in any way so that it needs to be put in storage ?
      void undeleteAll()
      Undelete all the members of the set.
      void undoTransaction(MXTransaction txn)
      If an object is committed, and another object in the transaction fails to commit, the undoTransaction() method is called so that the object can attemp to undo the committed transaction.
      void unselect(int index)
      Marks the Mbo at the specified index Unselected.
      void unselect(int startIndex, int count)
      Marks the a set of Mbos starting from startIndex Unselected.
      void unselect(java.util.Vector mboIndices)
      Marks a set of mbos unselected by using the mbo indices.
      void unselectAll()
      Marks all the Mbos in the set unselected.
      void useStoredQuery(java.lang.String queryName)
      Undefined in the faux set.
      void validate()
      Undefined in the faux set.
      boolean validateTransaction(MXTransaction txn)
      validate the object.
      boolean verifyESig(java.lang.String username, java.lang.String password, java.lang.String reason)
      Undefined in the faux set.
      • Methods inherited from class java.rmi.server.UnicastRemoteObject

        clone, exportObject, exportObject, exportObject, unexportObject
      • Methods inherited from class java.rmi.server.RemoteServer

        getClientHost, getLog, setLog
      • Methods inherited from class java.rmi.server.RemoteObject

        equals, getRef, hashCode, toString, toStub
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ownerMbo

        protected MboRemote ownerMbo
        Reference to the owning Mbo
      • whereClause

        protected java.lang.String whereClause
        The User defined Where clause
      • relationshipWhere

        protected java.lang.String relationshipWhere
        Where clause used for traversing a relationship to THIS object. Not necessarily actually used in FauxMboSets.
      • relationName

        protected java.lang.String relationName
        Name of the relationship used to get this set.
      • currMbo

        protected MboRemote currMbo
        Reference to the Current Mbo
      • currIndex

        protected int currIndex
        Index of the current Mbo -1 when there is no current Mbo Protected so that sub-classes can manipulate the list.
      • mboVec

        protected java.util.Vector mboVec
        List of instaciated Mbos for the set. Protected so that sub-classes can manipulate the list.
      • closed

        protected boolean closed
        Have all the Mbo for this Faux set been read into memory?
      • user

        protected UserInfo user
        Describes the user of this set
      • appName

        protected java.lang.String appName
        Stores the application for this set.
      • dmDeploySet

        protected boolean dmDeploySet
      • dmDeploySkipFieldValidation

        protected boolean dmDeploySkipFieldValidation
        boolean to indicate that set is created during Deploy action of Deployment Manager If set to true , both field validations and appvalidate will be skipped
    • Constructor Detail

      • FauxMboSet

        public FauxMboSet(MboRemote owner)
                   throws java.rmi.RemoteException
        Constructor.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • setApp

        public void setApp(java.lang.String appName)
                    throws java.rmi.RemoteException
        Sets the application for this set.
        Specified by:
        setApp in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
        See Also:
        MboSet.setApp(String appName)
      • getApp

        public java.lang.String getApp()
                                throws java.rmi.RemoteException
        Returns the application for this set
        Specified by:
        getApp in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • setWhere

        public void setWhere(java.lang.String whereClause)
                      throws java.rmi.RemoteException
        Not used by the faux set, unless a sub-class does something with it.
        Specified by:
        setWhere in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
        See Also:
        MboSet.setWhere(String whereClause)
      • getWhere

        public java.lang.String getWhere()
                                  throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        getWhere in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getUserWhere

        public final java.lang.String getUserWhere()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Undefined in the faux set, but fails silently.
        Specified by:
        getUserWhere in interface MboSetRemote
        Returns:
        Always returns the empty string.
        Throws:
        MXException
        java.rmi.RemoteException
      • getUserWhere

        public java.lang.String getUserWhere(java.lang.String alias)
                                      throws MXException,
                                             java.rmi.RemoteException
        Undefined in the faux set, but fails silently.
        Parameters:
        alias -
        Returns:
        Always returns the empty string.
        Throws:
        MXException
        java.rmi.RemoteException
      • getUserAndQbeWhere

        public java.lang.String getUserAndQbeWhere()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Undefined in the faux set, but fails silently.
        Specified by:
        getUserAndQbeWhere in interface MboSetRemote
        Returns:
        Always returns the empty string.
        Throws:
        MXException
        java.rmi.RemoteException
      • getOrderBy

        public java.lang.String getOrderBy()
                                    throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        getOrderBy in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getSQLOptions

        public java.lang.String getSQLOptions()
                                       throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        getSQLOptions in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • setFetchAttributes

        public void setFetchAttributes(java.lang.String[] attributes)
                                throws MXException,
                                       java.rmi.RemoteException
        The faux set doesn't support FetchAttributes.
        Throws:
        MXException
        java.rmi.RemoteException
      • getFetchAttributes

        public java.lang.String[] getFetchAttributes()
                                              throws MXException,
                                                     java.rmi.RemoteException
        The faux set doesn't support FetchAttributes.
        Throws:
        MXException
        java.rmi.RemoteException
      • getFetchAttributes

        public java.lang.String[] getFetchAttributes(java.lang.String rel)
                                              throws MXException,
                                                     java.rmi.RemoteException
        The faux set doesn't support FetchAttributes.
        Throws:
        MXException
        java.rmi.RemoteException
      • hasFetchAttributes

        public boolean hasFetchAttributes()
                                   throws MXException,
                                          java.rmi.RemoteException
        The faux set doesn't support FetchAttributes.
        Throws:
        MXException
        java.rmi.RemoteException
      • moveNext

        public MboRemote moveNext()
                           throws MXException,
                                  java.rmi.RemoteException
        Positions to the next Object found within the collection. Returns the next Mbo. If already at the end of the set, or if the set is empty, then null is returned.
        Specified by:
        moveNext in interface MboSetRemote
        Returns:
        The next MboRemote in this set.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.moveNext()
      • movePrev

        public MboRemote movePrev()
                           throws MXException,
                                  java.rmi.RemoteException
        Positions to the previous Object found within the collection. Returns the previous Mbo. If already at the beginning of the set, or if the set is empty, then null is returned.
        Specified by:
        movePrev in interface MboSetRemote
        Returns:
        The previous MboRemote in this set.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.movePrev()
      • moveFirst

        public MboRemote moveFirst()
                            throws MXException,
                                   java.rmi.RemoteException
        Positions to the first object within the collection. If the collection is empty, null is returned.
        Specified by:
        moveFirst in interface MboSetRemote
        Returns:
        The first MboRemote in this set.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.moveFirst()
      • moveTo

        public MboRemote moveTo(int pos)
                         throws MXException,
                                java.rmi.RemoteException
        Positions to and make current the object located at the index position within the collection. Will return null if there is no record at that position.
        Specified by:
        moveTo in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • addAtIndex

        public MboRemote addAtIndex(long accessModifier,
                                    int index)
                             throws MXException,
                                    java.rmi.RemoteException
        Probably this method should be overridden in the sub-class, unless canAdd always throws an exception.
        Specified by:
        addAtIndex in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mbo.MboSet#addAtIndex(int, long)
      • addForFauxSet

        protected Mbo addForFauxSet(MboSet realSet,
                                    long accessModifier,
                                    int index)
                             throws java.rmi.RemoteException,
                                    MXException
        For FauxMboSets that support additions, this method will pass the FauxSet's defaults to the set that will actually get the new Mbo. The real set's defaults are saved and reset after the Mbo is added. This method added for issue 08-25708.
        Parameters:
        realSet - Where to really add the Mbo.
        Returns:
        The newly added Mbo.
        Throws:
        java.rmi.RemoteException
        MXException
      • count

        public int count(int countConstant)
                  throws MXException,
                         java.rmi.RemoteException
        Counts the number of Mbos in the MboSet. Since this MboSets may have Mbos from multiple MboSets, this method usually throws an exception. However, to support the basic case, COUNT_EXISTING, this method will try to read in every Mbo it will contain. For large MboSets this is a very bad idea and this method must be overridden.
        Specified by:
        count in interface MboSetRemote
        Parameters:
        countConstant - What to include in the count.
        Returns:
        The number of Mbos counted.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.count(int countConstant)
      • latestDate

        public java.util.Date latestDate(java.lang.String attributeName)
                                  throws MXException,
                                         java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        latestDate in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • earliestDate

        public java.util.Date earliestDate(java.lang.String attributeName)
                                    throws MXException,
                                           java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        earliestDate in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • notExist

        public final boolean notExist()
                               throws MXException,
                                      java.rmi.RemoteException
        Check if this mboset has any record. If the set has not been fetched, it executes an exists query on the object. Different from isEmpty() call, which attempt to fetch one record from the set. If you know the set potentially can be large, the query can take a long time, or the chance of it not having any record is big, then use noExist() call, which would be more efficient. The method will always return false if the set is never fetched and then already closed when this method is called.
        Specified by:
        notExist in interface MboSetRemote
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.notExist()
      • save

        public void save(long flag)
                  throws MXException,
                         java.rmi.RemoteException
        Does nothing, since the real MboSets will do whatever is needed if they are modified. It's assumed that a faux MboSet is always owned by a real MboSet.
        Specified by:
        save in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • close

        public void close()
                   throws MXException,
                          java.rmi.RemoteException
        Prematurely closes the MboSet.
        Specified by:
        close in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • reset

        public void reset()
                   throws MXException,
                          java.rmi.RemoteException
        This method only resets this MboSet. The real MboSets this set is made up will be reset by the framework. It's assumed that a faux MboSet is always owned by a real MboSet.
        Specified by:
        reset in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.reset()
      • getCurrentPosition

        public int getCurrentPosition()
        Return the current index position in the set.
        Specified by:
        getCurrentPosition in interface MboSetRemote
      • toBeSaved

        public boolean toBeSaved()
                          throws java.rmi.RemoteException
        Has the collection be modified in any way so that it needs to be put in storage ?
        Specified by:
        toBeSaved in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getMbo

        public MboRemote getMbo()
        Returns the current Mbo from the collection. If the set has just been assembled, this will be the first member of the set. If the set is empty, then null is returned.
        Specified by:
        getMbo in interface MboSetRemote
        Returns:
        The current MboRemote.
        See Also:
        FauxMboSet.reset()
      • getMbo

        public MboRemote getMbo(int pos)
                         throws MXException,
                                java.rmi.RemoteException
        Get the Mbo at the position.
        Specified by:
        getMbo in interface MboSetRemote
        Parameters:
        pos - Position of the Mbo in the MboSet
        Returns:
        The Mbo at the position.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboValueData

        public MboValueData getMboValueData(java.lang.String attribute)
                                     throws MXException,
                                            java.rmi.RemoteException
        Return MboValueData for the current instance of a Mbo. If there is no current Mbo then the MboValueData is returned for a Zombie Mbo.
        Specified by:
        getMboValueData in interface MboSetRemote
        Parameters:
        attribute - The attribute whose characteristics are requested.
        Returns:
        MboValueData for the requested attribute.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.getMboValueData(String)
      • getMboValueData

        public MboValueData[] getMboValueData(java.lang.String[] attribute)
                                       throws MXException,
                                              java.rmi.RemoteException
        Get the MboValueData for the specified array of attributes.
        Specified by:
        getMboValueData in interface MboSetRemote
        Parameters:
        attribute - Array of attributes whose characteristics are requested.
        Returns:
        Array of MboValueData for the requested attributes.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.getMboValueData(String[])
      • getMboValueData

        public MboValueData[][] getMboValueData(int rowStart,
                                                int rowCount,
                                                java.lang.String[] attribute)
                                         throws MXException,
                                                java.rmi.RemoteException
        Get MboValueData for the specified rows and attributes. If there are not enough rows, the array returned will be shorter than rowCount.
        Specified by:
        getMboValueData in interface MboSetRemote
        Parameters:
        rowStart - The position within this MboSet of the first Mbo whose MboValueData is being requested. The row number of the first Mbo in a MboSet is 0.
        rowCount - The number of rows whose MboValueData is being requested.
        attribute - Array of attributes whose characteristics are requested.
        Returns:
        Array of MboValueData for the requested rows and attributes. First level represents the rows, second level represents the attributes within each row.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.getMboValueData(int, int, String[])
      • getMboSetData

        public MboSetData getMboSetData(java.lang.String[] attributes)
                                 throws java.rmi.RemoteException
        Return information about the MboSet for the specified attributes. This will also return information about the current Row.
        Specified by:
        getMboSetData in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
        See Also:
        MboSet.getMboSetData(String[])
      • getMboSetData

        public MboSetData getMboSetData(int row,
                                        int count,
                                        java.lang.String[] attributes)
                                 throws MXException,
                                        java.rmi.RemoteException
        Return information about the MboSet and the specified attributes for the specified rows.
        Specified by:
        getMboSetData in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getFilter

        protected QbeFilter getFilter()
                               throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • setQbe

        public void setQbe(java.lang.String attribute,
                           java.lang.String expression)
                    throws MXException,
                           java.rmi.RemoteException
        Sets the QBE (Query by example) for a single attribute.
        Specified by:
        setQbe in interface MboSetRemote
        Parameters:
        attribute - The name of the attribute.
        expression - The QBE expression.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.setQbe(String, String)
      • setQbe

        public void setQbe(java.lang.String attribute,
                           java.lang.String[] expression)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from interface: MboSetRemote
        Qbe to take array of values for an attribute.
        Specified by:
        setQbe in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setQbe

        public void setQbe(java.lang.String[] attribute,
                           java.lang.String expression)
                    throws MXException,
                           java.rmi.RemoteException
        Undefined in the faux set. Would set the QBE for a group of attributes all to the same expression.
        Specified by:
        setQbe in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.setQbe(String[], String)
      • setQbe

        public void setQbe(java.lang.String[] attribute,
                           java.lang.String[] expression)
                    throws MXException,
                           java.rmi.RemoteException
        Undefined in the faux set. Would set the QBE for a group of attributes all to the array of expression.
        Specified by:
        setQbe in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.setQbe(String[], String)
      • getQbe

        public java.lang.String[][] getQbe()
                                    throws MXException,
                                           java.rmi.RemoteException
        Undefined in the faux set. Would set the QBE for a group of attributes all to the array of expression.
        Specified by:
        getQbe in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getQbe

        public java.lang.String getQbe(java.lang.String attribute)
                                throws MXException,
                                       java.rmi.RemoteException
        Looks up the Qbe defined for the attribute given.
        Specified by:
        getQbe in interface MboSetRemote
        Parameters:
        attribute - The name of the attribute.
        Returns:
        The Qbe expression entered for this attribute.
        Throws:
        MXException
        java.rmi.RemoteException
      • getQbe

        public java.lang.String[] getQbe(java.lang.String[] attribute)
                                  throws java.rmi.RemoteException
        Looks of the Qbe defined for each attribute named in an array.
        Specified by:
        getQbe in interface MboSetRemote
        Parameters:
        attribute - The names of the attributes.
        Returns:
        An array the same size as the array passed in, with the Qbe expression for each attribute. If no expression is defined or the attribute name isn't found, the empty string is returned in the corrosponding spot in the array.
        Throws:
        java.rmi.RemoteException
        See Also:
        The single attribute name version.
      • hasQbe

        public boolean hasQbe()
                       throws java.rmi.RemoteException
        Are there QBE filters defined on this MboSet? Whether or not the filter is actually used depends on the sub-class.
        Specified by:
        hasQbe in interface MboSetRemote
        Returns:
        true if Qbe is defined on at least one attribute.
        Throws:
        java.rmi.RemoteException
      • setQbeExactMatch

        public void setQbeExactMatch(boolean state)
                              throws java.rmi.RemoteException
        Set if QBE should use exact match.
        Specified by:
        setQbeExactMatch in interface MboSetRemote
        Parameters:
        state - true forces exact match, so that "TEST" <> "TESTING".
        Throws:
        java.rmi.RemoteException
        See Also:
        MboSet.setQbeExactMatch(boolean)
      • setQbeExactMatch

        public void setQbeExactMatch(java.lang.String state)
                              throws java.rmi.RemoteException
        Set if QBE should use exact match.
        Specified by:
        setQbeExactMatch in interface MboSetRemote
        Parameters:
        state - true forces exact match, so that "TEST" <> "TESTING". Valid parameters are "true" or "false".
        Throws:
        java.rmi.RemoteException
      • isQbeExactMatch

        public boolean isQbeExactMatch()
                                throws java.rmi.RemoteException
        Specified by:
        isQbeExactMatch in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • ignoreQbeExactMatchSet

        public void ignoreQbeExactMatchSet(boolean flag)
                                    throws MXException,
                                           java.rmi.RemoteException
        Ignores the QBE exact match set by setQbeExactMatch
        Specified by:
        ignoreQbeExactMatchSet in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
        MXException
      • isQbeCaseSensitive

        public boolean isQbeCaseSensitive()
                                   throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        isQbeCaseSensitive in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • setQbeCaseSensitive

        public void setQbeCaseSensitive(boolean state)
                                 throws java.rmi.RemoteException
        Set the QBE to be case sensitive or not.
        Specified by:
        setQbeCaseSensitive in interface MboSetRemote
        Parameters:
        state - true forces case sensitivity, so that "TEST" <> "test".
        Throws:
        java.rmi.RemoteException
        See Also:
        MboSet.setQbeCaseSensitive(boolean)
      • setQbeCaseSensitive

        public void setQbeCaseSensitive(java.lang.String state)
                                 throws java.rmi.RemoteException
        Set the QBE to be case sensitive or not.
        Specified by:
        setQbeCaseSensitive in interface MboSetRemote
        Parameters:
        state - true forces case sensitivity, so that "TEST" <> "test". Valid parameters are "true" or "false".
        Throws:
        java.rmi.RemoteException
      • getList

        public MboSetRemote getList(java.lang.String attributeName)
                             throws MXException,
                                    java.rmi.RemoteException
        Gets the MboSet containing valid values for a specified attribute of the current Mbo in this set. For example, if tableX.assetnum must be valid on the Asset table (Asset.assetnum), then tableX.getList(String attributeName) will return a set of Asset. To obtain the actual values of each assetnum in that set, you must call Mbo.getString("assetnum") or a similar method for each member of the set. getList(String attributeName) will return null if no valid values can be identified. Calling MboSet.getList(String attributeName) is the same as calling Mbo.getList(String attribute) for the current Mbo. Typically, the way you define a list of valid values is via a field validation class for a given MboSet and attribute. The field validation classes are registered on the database in maxsyscolumns2.customclassname.
        Specified by:
        getList in interface MboSetRemote
        Parameters:
        attributeName - The attribute for which you want the list of valid values.
        Returns:
        The MboSet containing the domain of valid values for the requested attribute.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.getString(java.lang.String, java.lang.String), Mbo.getList(String)
      • getList

        public MboSetRemote getList(int row,
                                    java.lang.String attributeName)
                             throws MXException,
                                    java.rmi.RemoteException
        Get the list of valid values for an attribute for the given row
        Specified by:
        getList in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getName

        public abstract java.lang.String getName()
                                          throws java.rmi.RemoteException
        Define to give the MboSet a name. You may want to spoof a real name or define a unique name for the set.
        Specified by:
        getName in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • checkMethodAccess

        public void checkMethodAccess(java.lang.String methodName)
                               throws MXException,
                                      java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        checkMethodAccess in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
        MXException
      • getClientLocale

        public java.util.Locale getClientLocale()
        Return the locale of the object.
      • getClientTimeZone

        public java.util.TimeZone getClientTimeZone()
        Return the time zone being used by the server
      • setRelationship

        public void setRelationship(java.lang.String relationClause)
        Set the SQL WHERE clause that will be used to define a relationship between this object and it's parent. For example, the work order for assetnum 11430 would call this method on the asset object passing assetnum = 11430. This should not be called directly as it is called by the framework.
        Specified by:
        setRelationship in interface MboSetRemote
      • getRelationship

        public java.lang.String getRelationship()
                                         throws java.rmi.RemoteException
        Return the Where clause of the relationship. In FauxMboSets this relationship is not used directly, or may not be used at all.
        Specified by:
        getRelationship in interface MboSetRemote
        Returns:
        The relationship defined for the FauxMboSet, even if it is not used.
        Throws:
        java.rmi.RemoteException
      • setMboSetInfo

        public void setMboSetInfo(MboSetInfo ms)
                           throws java.rmi.RemoteException
        Set the MboInfo object that describes this collection.
        Specified by:
        setMboSetInfo in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • isFlagSet

        public boolean isFlagSet(long flag)
                          throws MXException,
                                 java.rmi.RemoteException
        Return the state of the specified mboset flag
        Specified by:
        isFlagSet in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setFlag

        public void setFlag(long flag,
                            boolean state)
        Set the mboset flags to the specified values. Flags used are usually NOUPDATE, NOADD, NODELETE. All three can be specified by using the READONLY flag.
        Specified by:
        setFlag in interface MboSetRemote
      • setFlag

        public void setFlag(long flag,
                            boolean state,
                            MXException mxe)
        Set the mboset flags to the specified values. Flags used are usually NOUPDATE, NOADD, NODELETE. All three can be specified by using the READONLY flag. This also specifies the MXException at the MBOSet Level.
        Specified by:
        setFlag in interface MboSetRemote
      • copy

        public final void copy(MboSetRemote sourceSet,
                               java.lang.String[] srcAttributes,
                               java.lang.String[] destAttributes)
                        throws MXException,
                               java.rmi.RemoteException
        New Mbos are created in this set from the sourceSet and appropriate attribute values are copied to the mbos.
        Specified by:
        copy in interface MboSetRemote
        Parameters:
        sourceSet - set from which to copy the mbo values.
        srcAttributes - attributes to be copied from the source set mbos.
        destAttributes - attributes in the current set mbos that need to be set.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSetInfo

        public MboSetInfo getMboSetInfo()
        Return Information about the Mbo Set.
        Specified by:
        getMboSetInfo in interface MboSetRemote
        See Also:
        Must have been set using this method eariler.
      • setMXTransaction

        public void setMXTransaction(MXTransaction txn)
                              throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        setMXTransaction in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getMXTransaction

        public MXTransaction getMXTransaction()
                                       throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        getMXTransaction in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getMboSetValueData

        public MboValueData[] getMboSetValueData(java.lang.String[] attribute)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Returns an array of MboValueData objects for the specified array of attributes.
        Specified by:
        getMboSetValueData in interface MboSetRemote
        Parameters:
        attribute - The array of attributes whose characteristics are being requested.
        Returns:
        Array of MboValueData corresponding to the requested attributes.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.getMboSetValueData(String[])
      • getMboSetValueData

        public MboValueData getMboSetValueData(java.lang.String attribute)
                                        throws MXException,
                                               java.rmi.RemoteException
        Return the MboValueData for the specified attribute. This information can be used to get a description of the elements that make up a Mbo. Note that this does not return information that is specific to a particular instance of a Mbo, use getMboValueData if that is required.
        Parameters:
        attribute - The attribute whose characteristics are requested.
        Returns:
        MboValueData for the requested attribute. Returns null if the attribute does not exist in this Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • remove

        public void remove()
                    throws MXException,
                           java.rmi.RemoteException
        Remove the current object from the collection. This does not remove the object from the database, in order to remove the object from the database, use delete method.
        Specified by:
        remove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • remove

        public void remove(int pos)
                    throws MXException,
                           java.rmi.RemoteException
        Remove an object from the collection at the given position. This does not remove the object from the database, in order to remove the object from the database, use delete method.
        Specified by:
        remove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • remove

        public void remove(MboRemote mbo)
                    throws MXException,
                           java.rmi.RemoteException
        Remove this mbo from the faux mbo set. Default behavior is to remove the Mbo from it's MboSet and let any listeners handle the details.
        Specified by:
        remove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAndRemove

        public void deleteAndRemove()
                             throws MXException,
                                    java.rmi.RemoteException
        Deletes and Removes the current mbo from the collection, if the mbo is newly created .
        Specified by:
        deleteAndRemove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAndRemove

        public void deleteAndRemove(int pos)
                             throws MXException,
                                    java.rmi.RemoteException
        Deletes and remove an object from the collection at the given position, if the mbo at the position is a newly created.
        Specified by:
        deleteAndRemove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAndRemove

        public void deleteAndRemove(int pos,
                                    long accessModifier)
                             throws MXException,
                                    java.rmi.RemoteException
        Deletes and remove an object from the collection at the given position, if the mbo at the position is a newly created.
        Specified by:
        deleteAndRemove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAndRemove

        public void deleteAndRemove(MboRemote mbo)
                             throws MXException,
                                    java.rmi.RemoteException
        Delets and removes a mbo object from the collection, if the mbo is newly created .
        Specified by:
        deleteAndRemove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAndRemove

        public void deleteAndRemove(MboRemote mbo,
                                    long accessModifier)
                             throws MXException,
                                    java.rmi.RemoteException
        Delets and removes a mbo object from the collection, if the mbo is newly created .
        Specified by:
        deleteAndRemove in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAndRemoveAll

        public void deleteAndRemoveAll()
                                throws MXException,
                                       java.rmi.RemoteException
        Deletes and removes all the newly created Mbos from the collection. This method is designed to be called to make the newly added mbos removed from the collection, thus won't be displayed on the GUI at all, but the deleting logic of these mbos are still being executed. This method is intended to be called only when there are no saved mbos in the mboset. However, if there are saved mbos, the state of those mbos are not affected. If a user wants to have those saved mbos further deleted or removed, deleteAll() or clear() can be called after this method is called on this Mbo set.
        Specified by:
        deleteAndRemoveAll in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAndRemoveAll

        public void deleteAndRemoveAll(long accessModifier)
                                throws MXException,
                                       java.rmi.RemoteException
        Description copied from interface: MboSetRemote
        Deletes and removes all the newly created Mbos from the collection. This method is designed to be called to make the newly added mbos removed from the collection, thus won't be displayed on the GUI at all, but the deleting logic of these mbos are still being executed. This method is intended to be called only when there are no saved mbos in the mboset. However, if there are saved mbos, the state of those mbos are not affected. If a user wants to have those saved mbos further deleted or removed, deleteAll() or clear() can be called after this method is called on this Mbo set.
        Specified by:
        deleteAndRemoveAll in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • removeFromVector

        protected void removeFromVector(MboRemote outMbo)
                                 throws MXException,
                                        java.rmi.RemoteException
        This helper method is made available to properly remove a Mbo from the MboVec list. It properly updates currIndex and currMbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • clear

        public void clear()
                   throws MXException,
                          java.rmi.RemoteException
        Removes all Mbos from the faux MboSet.
        Specified by:
        clear in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • incrementDeletedCount

        public void incrementDeletedCount(boolean inc)
                                   throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        incrementDeletedCount in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getUserInfo

        public UserInfo getUserInfo()
                             throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        getUserInfo in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getZombie

        public MboRemote getZombie()
                            throws java.rmi.RemoteException
        This method should be overridden so that in returns a Zombie Mbo of the type of Mbo that makes up this set.
        Specified by:
        getZombie in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • setOverrideOptimisticLock

        public void setOverrideOptimisticLock(boolean val)
                                       throws java.rmi.RemoteException
        Undefined in the faux set.
        Throws:
        java.rmi.RemoteException
      • unselect

        public void unselect(int startIndex,
                             int count)
                      throws MXException,
                             java.rmi.RemoteException
        Marks the a set of Mbos starting from startIndex Unselected.
        Specified by:
        unselect in interface MboSetRemote
        Parameters:
        startIndex - starting index position (must be >= 0)
        count - number of Mbos after the start index to be marked unselected (must be > 0).
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.unselect(int, int)
      • selectAll

        public void selectAll()
                       throws MXException,
                              java.rmi.RemoteException
        Marks all the Mbos in the set selected. Note that this method will fetch all Mbos if they are not already fetched. Because of this reason, care must be taken when using this function. Does not restore the previous state, if there is any exception.
        Specified by:
        selectAll in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.selectAll()
      • unselectAll

        public void unselectAll()
                         throws MXException,
                                java.rmi.RemoteException
        Marks all the Mbos in the set unselected. Note that this method will fetch all mbo if they are not already fetched. Because of this reason, care must be taken when using this function. Does not restore the previous state, if there is any exception.
        Specified by:
        unselectAll in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.selectAll()
      • setWhereQbe

        public void setWhereQbe(java.lang.String attribute,
                                java.lang.String value,
                                java.lang.String where)
                         throws MXException,
                                java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        setWhereQbe in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setDefaultValue

        public void setDefaultValue(java.lang.String attribute,
                                    java.lang.String value)
                             throws MXException,
                                    java.rmi.RemoteException
        method for setting default values for a mboset(screen/table default)
        Specified by:
        setDefaultValue in interface MboSetRemote
        Parameters:
        attribute - Name
        Value - for the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • getDefaultValue

        public java.lang.String getDefaultValue(java.lang.String attribute)
                                         throws MXException,
                                                java.rmi.RemoteException
        method for getting the default value for an attribute
        Specified by:
        getDefaultValue in interface MboSetRemote
        Parameters:
        attribute - Name
        Returns:
        value
        Throws:
        MXException
        java.rmi.RemoteException
      • getDefaultValueHash

        public java.util.HashMap getDefaultValueHash()
        method for getting defaultValue hash table
      • setDefaultValues

        public void setDefaultValues(java.lang.String[] attributes,
                                     java.lang.String[] values)
                              throws MXException,
                                     java.rmi.RemoteException
        method for setting JSP field default values for a mboset
        Specified by:
        setDefaultValues in interface MboSetRemote
        Parameters:
        attributes - array
        array - of Values for the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setDefaultValues

        public void setDefaultValues(java.lang.String attribute,
                                     java.lang.String value)
        method for setting JSP field default values for a mboset
        Parameters:
        attribute -
        Value -
      • getJspDefaultValueHash

        public java.util.HashMap getJspDefaultValueHash()
        method for getting jsp field defaultValue hash table
      • isESigNeeded

        public boolean isESigNeeded(java.lang.String optionName)
                             throws MXException,
                                    java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        isESigNeeded in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • verifyESig

        public boolean verifyESig(java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String reason)
                           throws MXException,
                                  java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        verifyESig in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • logESigVerification

        public void logESigVerification(java.lang.String username,
                                        java.lang.String reason,
                                        boolean authenticatedSuccessfully)
                                 throws MXException,
                                        java.rmi.RemoteException
        Logs a esig record aboout the user indicating the reason for the verification and whether the user authentication is successful or not.
        Specified by:
        logESigVerification in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setESigFieldModified

        public void setESigFieldModified(boolean esigFieldModified)
                                  throws java.rmi.RemoteException
        Undefined in the faux set.
        Specified by:
        setESigFieldModified in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • saveTransaction

        public void saveTransaction(MXTransaction txn)
                             throws java.rmi.RemoteException
        Save the object on the specified transaction. This is the routine that actually writes the object to storage.
        Specified by:
        saveTransaction in interface Transactable
        Parameters:
        txn - Transaction that cuased the save
        Throws:
        java.rmi.RemoteException - Network error
      • commitTransaction

        public void commitTransaction(MXTransaction txn)
                               throws java.rmi.RemoteException
        Description copied from interface: Transactable
        Commit the object.
        Specified by:
        commitTransaction in interface Transactable
        Parameters:
        txn - Transaction that caused the commit
        Throws:
        java.rmi.RemoteException - Network error
      • rollbackTransaction

        public void rollbackTransaction(MXTransaction txn)
                                 throws java.rmi.RemoteException
        Description copied from interface: Transactable
        Rollback the object.
        Specified by:
        rollbackTransaction in interface Transactable
        Parameters:
        txn - Transaction that caused the rollback
        Throws:
        java.rmi.RemoteException - Network error
      • undoTransaction

        public void undoTransaction(MXTransaction txn)
                             throws java.rmi.RemoteException
        Description copied from interface: Transactable
        If an object is committed, and another object in the transaction fails to commit, the undoTransaction() method is called so that the object can attemp to undo the committed transaction.
        Specified by:
        undoTransaction in interface Transactable
        Parameters:
        txn - Transaction that caused the undo
        Throws:
        java.rmi.RemoteException - Network error
      • validateTransaction

        public boolean validateTransaction(MXTransaction txn)
                                    throws java.rmi.RemoteException
        Description copied from interface: Transactable
        validate the object.
        Specified by:
        validateTransaction in interface Transactable
        Parameters:
        txn - Transaction that caused the save
        Throws:
        java.rmi.RemoteException - Network error
      • fireEventsBeforeDB

        public void fireEventsBeforeDB(MXTransaction txn)
                                throws MXException,
                                       java.rmi.RemoteException
        Description copied from interface: Transactable
        fire events for all mbos in the transaction before db operation.
        Specified by:
        fireEventsBeforeDB in interface Transactable
        Parameters:
        txn - Transaction
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • fireEventsAfterDB

        public void fireEventsAfterDB(MXTransaction txn)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from interface: Transactable
        fire events for all mbos in the transaction after db operation.
        Specified by:
        fireEventsAfterDB in interface Transactable
        Parameters:
        txn - Transaction
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • fireEventsAfterDBCommit

        public void fireEventsAfterDBCommit(MXTransaction txn)
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from interface: Transactable
        fire events for all mbos in the transaction after db commit.
        Specified by:
        fireEventsAfterDBCommit in interface Transactable
        Parameters:
        txn - Transaction
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.lang.String val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             boolean val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             byte val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             short val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             int val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             long val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             float val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             double val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             byte[] val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.util.Date val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Specified by:
        setValue in interface MboAccessInterface
        Throws:
        MXException
        java.rmi.RemoteException
      • fetchMbos

        public abstract void fetchMbos(int toPostion)
                                throws MXException,
                                       java.rmi.RemoteException
        This method needs to be overridden to produce the Mbos which are members of this "MboSet". This class will use this method to supply the Mbo related methods. This method should fill the mboVec member variable. If it doesn't fill the vector to the position give, it's assumed the set is closed.
        Parameters:
        toPosition - To which position needs to be filled.
        Throws:
        MXException
        java.rmi.RemoteException
      • isClosed

        public boolean isClosed()
        Returns whether the set has been closed or not.
      • getSelectionWhere

        public java.lang.String getSelectionWhere()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Returns the where clause for the selected Mbos - NOT implemented in the faux set.
        Specified by:
        getSelectionWhere in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • addListener

        public void addListener(MboSetListener l)
        Add a listener to this MboSet.
        Parameters:
        l - The listener to add.
      • removeListener

        public void removeListener(MboSetListener l)
        Remove a listener
        Parameters:
        l - The listener to remove.
      • setTableDomainLookup

        public void setTableDomainLookup(boolean flag)
        Sets the tableDomainLookup flag to indicate that the this set is associated with a table domain lookup. The flag is used to enforce group / site restriction.
        Specified by:
        setTableDomainLookup in interface MboSetRemote
      • isBasedOn

        public boolean isBasedOn(java.lang.String objectName)
                          throws java.rmi.RemoteException
        Returns true, if this business object is based on the given business object name.
        Specified by:
        isBasedOn in interface MboSetRemote
        Returns:
        true, if this business object is based on the given object name, otherwise false.
        Throws:
        java.rmi.RemoteException
      • getKeyAttributes

        public java.lang.String[] getKeyAttributes()
                                            throws java.rmi.RemoteException
        Returns a list of key attributes.
        Specified by:
        getKeyAttributes in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • setAutoKeyFlag

        public boolean setAutoKeyFlag(boolean flag)
                               throws java.rmi.RemoteException
        This method will switch on and off the flag of setting the autokey to the newly added() method when different forms of add() is called if autokey is set as the object default value. It returns the current flag. If the flag is true, the autokey will be set during add if it is the database default value. If the flag is flase, the autokey will not be set even if it is the database default value.
        Specified by:
        setAutoKeyFlag in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
        See Also:
        MboSet.setAutoKeyFlag(boolean)
      • getWarnings

        public MXException[] getWarnings()
        Returns a list of warnings from the last method call. Warnings are MXExceptions that do not cause a method to fail. They can be used as information about assumptions or defaults that were used when a method was executing. Note that it is possible that warnings may be available for a method that generated warnings, even if it was NOT the last method called. For example, method A generates warnings, but method B does not, If B was the last method called, and a call to getWarnings() is then made, the warnings from method A will be returned. It should be docuemented in the JAVADOC comments for a method if warnings are generated. A call to this method clears the warning list.
        Specified by:
        getWarnings in interface MboSetRemote
        See Also:
        FauxMboSet.hasWarnings(), FauxMboSet.clearWarnings(), FauxMboSet.addWarning(psdi.util.MXException)
      • clearWarnings

        public void clearWarnings()
        Clears the warning list. This is usually called as the first step of a method that can generate warning messages.
      • hasWarnings

        public boolean hasWarnings()
        Are there any warnings.
        Specified by:
        hasWarnings in interface MboSetRemote
      • addWarnings

        public void addWarnings(MXException[] es)
        Add all the exceptions from an array to the warning vector
        Specified by:
        addWarnings in interface MboSetRemote
        Parameters:
        es - An array of MXExceptions. It is normally obtained from getWarnings().
      • findByIntegrationKey

        public MboRemote findByIntegrationKey(java.lang.String[] integrationKeys,
                                              java.lang.String[] integrationKeyValues)
                                       throws MXException,
                                              java.rmi.RemoteException
        This method is used by the integration logic to find out the mbos that are present based on an integration key. This method will load all the existing records of this set into memory once when this method is called first time (this is needed to avoid multiple database calls to find each record). Also, the data that this method is going to operate is based on what's fetched from the database. Note: This method is going to fetch all the records from the database and should be used only where appropriate. The code assumes that the key values are passed in the same order as the default integration key order based on the getDefaultIntegrationKeyAttributes() method in the MboSetInfo.
        Specified by:
        findByIntegrationKey in interface MboSetRemote
        Parameters:
        integrationKeys - list of key attributes
        integrationKeyValues - list of key values
        Returns:
        MboRemote a reference to the mbo, if found, otherwise null.
        Throws:
        MXException
        java.rmi.RemoteException
      • setRelationName

        public void setRelationName(java.lang.String relationName)
                             throws MXException,
                                    java.rmi.RemoteException
        This method sets the relationship name used to created this set when this set is obtained from a mbo. Please note that this is an internal method and should not be called by any other code.
        Specified by:
        setRelationName in interface MboSetRemote
        Parameters:
        relationName - relationship name
        Throws:
        MXException
        java.rmi.RemoteException
      • getRelationName

        public java.lang.String getRelationName()
                                         throws MXException,
                                                java.rmi.RemoteException
        Returns the relationship name used to obtain this set. If this set is not obtained through a relationship, returns null.
        Specified by:
        getRelationName in interface MboSetRemote
        Returns:
        String the relation name, if this set is obtained through a relationship, otherwise null.
        Throws:
        MXException
        java.rmi.RemoteException
      • smartFill

        public MboSetRemote smartFill(java.lang.String attributeName,
                                      java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        Get a list of valid values of the attribute based on the QBE set by the value. If there is only one valid value, the values will be set to the record.
        Specified by:
        smartFill in interface MboSetRemote
        Parameters:
        attributeName -
        value -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.smartFill(String, String, boolean);
      • smartFind

        public MboSetRemote smartFind(int row,
                                      java.lang.String objectName,
                                      java.lang.String attributeName,
                                      java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        Get a list of valid values of the specified object based on the attribute value specified of this mbo.
        Parameters:
        attributeName -
        value -
        objectName -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • smartFind

        public MboSetRemote smartFind(java.lang.String attributeName,
                                      java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        Get a list of valid values of the attribute based on the QBE set by the value. If there is only one valid value, the values will be set to the record.
        Specified by:
        smartFind in interface MboSetRemote
        Parameters:
        attributeName -
        value -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.smartFind(String, String, boolean);
      • smartFill

        public MboSetRemote smartFill(int row,
                                      java.lang.String attributeName,
                                      java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        Get a list of valid values of the attribute on the MBO specified by the row based on the QBE set by the value. If there is only one valid value, the values will not be set to the record.
        Specified by:
        smartFill in interface MboSetRemote
        Parameters:
        attributeName -
        value -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.smartFill(int, String, String, boolean);
      • smartFind

        public MboSetRemote smartFind(int row,
                                      java.lang.String attributeName,
                                      java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        Get a list of valid values of the attribute on the MBO specified by the row based on the QBE set by the value. If there is only one valid value, the values will not be set to the record.
        Parameters:
        attributeName -
        value -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getMLFromClause

        public java.lang.StringBuffer getMLFromClause(boolean useSchemaOwner)
                                               throws MXException,
                                                      java.rmi.RemoteException
        This method shouldn't be needing this method.
        Specified by:
        getMLFromClause in interface MboSetRemote
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • hasMLQbe

        public boolean hasMLQbe()
                         throws MXException,
                                java.rmi.RemoteException
        It is safe to just return false.
        Specified by:
        hasMLQbe in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • isFromGetList

        public boolean isFromGetList()
                              throws MXException,
                                     java.rmi.RemoteException
        Set the flag to indicate the mboset is from getlist
        Throws:
        MXException
        java.rmi.RemoteException
      • setFromGetList

        public void setFromGetList(boolean value)
                            throws MXException,
                                   java.rmi.RemoteException
        Flag to indicate if the mboset is from getlist
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboForUniqueId

        public MboRemote getMboForUniqueId(long id)
                                    throws MXException,
                                           java.rmi.RemoteException
        Get the mbo for the unique id. FauxMboSet will only search inside the MboSet.
        Specified by:
        getMboForUniqueId in interface MboSetRemote
        Returns:
        MboRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getMessage

        public java.lang.String getMessage(java.lang.String errGrp,
                                           java.lang.String errKey)
                                    throws java.rmi.RemoteException
        Get the message in the language specified by this MboSet's userInfo for the error group and error key. If no such message is found, errGrp#errKey will be returned.
        Specified by:
        getMessage in interface MboSetRemote
        Parameters:
        errGrp -
        errKey -
        Returns:
        Throws:
        java.rmi.RemoteException
      • getMessage

        public java.lang.String getMessage(java.lang.String errGrp,
                                           java.lang.String errKey,
                                           java.lang.Object[] params)
                                    throws java.rmi.RemoteException
        Get the message for the error group, error key and the parameter in the language of this MboSet's userInfo.
        Specified by:
        getMessage in interface MboSetRemote
        Returns:
        Throws:
        java.rmi.RemoteException
        See Also:
        Mbo.getMessage(String errGrp, String errKey, Object[] params)
      • getMessage

        public java.lang.String getMessage(java.lang.String errGrp,
                                           java.lang.String errKey,
                                           java.lang.Object param)
                                    throws java.rmi.RemoteException
        Get the message for the error group, error key and the parameter in the language of this MboSet's userInfo.
        Specified by:
        getMessage in interface MboSetRemote
        Returns:
        Throws:
        java.rmi.RemoteException
        See Also:
        Mbo.getMessage(String errGrp, String errKey, Object param)
      • getMessage

        public java.lang.String getMessage(MXException ex)
                                    throws java.rmi.RemoteException
        Get the message of the exception in the language specified by this MboSet's userInfo. returned.
        Specified by:
        getMessage in interface MboSetRemote
        Parameters:
        errGrp -
        errKey -
        Returns:
        Throws:
        java.rmi.RemoteException
      • getMaxMessage

        public MaxMessage getMaxMessage(java.lang.String errGrp,
                                        java.lang.String errKey)
                                 throws MXException,
                                        java.rmi.RemoteException
        Get the MaxMessage object for the specified error group and errorkey.
        Specified by:
        getMaxMessage in interface MboSetRemote
        Parameters:
        errGrp -
        errKey -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setLogLargFetchResultDisabled

        public boolean setLogLargFetchResultDisabled(boolean disable)
                                              throws java.rmi.RemoteException
        Pass true to disable loging of large fetch result set over a limit. The method returns the existing value of the flag.
        Specified by:
        setLogLargFetchResultDisabled in interface MboSetRemote
        Parameters:
        disable -
        Returns:
        Throws:
        java.rmi.RemoteException
      • setInsertSite

        public void setInsertSite(java.lang.String site)
                           throws MXException,
                                  java.rmi.RemoteException
        Sets the insert site for the mboset. This method shouldn't be used for UI. It should only be used for MEA. If this is set mbo takes insertSiteForSet instead of profile
        Specified by:
        setInsertSite in interface MboSetRemote
        Parameters:
        site -
        Throws:
        MXException
        java.rmi.RemoteException
      • setInsertOrg

        public void setInsertOrg(java.lang.String org)
                          throws MXException,
                                 java.rmi.RemoteException
        Sets the insert org for the mboset. This method shouldn't be used for UI. It should only be used for MEA. If this is set mbo takes insertOrgForSet instead of profile
        Specified by:
        setInsertOrg in interface MboSetRemote
        Parameters:
        org -
        Throws:
        MXException
        java.rmi.RemoteException
      • setInsertCompanySet

        public void setInsertCompanySet(java.lang.String compSet)
                                 throws MXException,
                                        java.rmi.RemoteException
        Sets the insert company set for the mboset. This method shouldn't be used for UI. It should only be used for MEA. If this is set mbo takes insertCompanysetForSet instead of profile
        Specified by:
        setInsertCompanySet in interface MboSetRemote
        Parameters:
        companyset -
        Throws:
        MXException
        java.rmi.RemoteException
      • setInsertItemSet

        public void setInsertItemSet(java.lang.String itemSet)
                              throws MXException,
                                     java.rmi.RemoteException
        Sets the insert item set for the mboset. This method shouldn't be used for UI. It should only be used for MEA. If this is set mbo takes insertItemsetForSet instead of profile
        Specified by:
        setInsertItemSet in interface MboSetRemote
        Parameters:
        itemset -
        Throws:
        MXException
        java.rmi.RemoteException
      • setExcludeMeFromPropagation

        public void setExcludeMeFromPropagation(boolean flag)
                                         throws MXException,
                                                java.rmi.RemoteException
        Sets the flag to excude a mboset from propagation
        Specified by:
        setExcludeMeFromPropagation in interface MboSetRemote
        Parameters:
        flag -
        Throws:
        MXException
        java.rmi.RemoteException
      • getExcludeMeFromPropagation

        public boolean getExcludeMeFromPropagation()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Gets the flag to excude a mboset from propagation
        Specified by:
        getExcludeMeFromPropagation in interface MboSetRemote
        Parameters:
        flag -
        Throws:
        MXException
        java.rmi.RemoteException
      • processML

        public boolean processML()
                          throws MXException,
                                 java.rmi.RemoteException
        Whether multi-language needs to be considered
        Specified by:
        processML in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • isIgnoreQbeExactMatchSet

        public boolean isIgnoreQbeExactMatchSet()
                                         throws java.rmi.RemoteException
        method to find if ignore QBE exact match set or not
        Throws:
        java.rmi.RemoteException
      • locateMbo

        public MboRemote locateMbo(java.lang.String[] keys,
                                   java.lang.String[] values,
                                   int option)
                            throws MXException,
                                   java.rmi.RemoteException
        Specified by:
        locateMbo in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mbo.MboSet#locateMbo()
      • setDMDeploySet

        public void setDMDeploySet(boolean flag)
                            throws MXException,
                                   java.rmi.RemoteException
        Mark the set as created during deploy action of Deployment Manager
        Specified by:
        setDMDeploySet in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • isDMDeploySet

        public boolean isDMDeploySet()
                              throws MXException,
                                     java.rmi.RemoteException
        Returns the if mboset is created during Deploy action of Deployement Manager set or not
        Specified by:
        isDMDeploySet in interface MboSetRemote
        Returns:
        true if mboset is created during Deploy action of Deployement Manager set else false
        Throws:
        MXException
        java.rmi.RemoteException
      • setupLongOpPipe

        public java.io.InputStream setupLongOpPipe()
                                            throws java.rmi.RemoteException
        Description copied from interface: MboSetRemote
        Setup pipe for long op messages.
        Specified by:
        setupLongOpPipe in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • clearLongOpPipe

        public void clearLongOpPipe()
                             throws java.rmi.RemoteException
        Description copied from interface: MboSetRemote
        Clear the long op message pipe.
        Specified by:
        clearLongOpPipe in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • abortSql

        public void abortSql()
                      throws java.rmi.RemoteException
        Description copied from interface: MboSetRemote
        Abort the sql query currently in process.
        Specified by:
        abortSql in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • setTxnPropertyMap

        public void setTxnPropertyMap(java.util.Map map)
                               throws MXException,
                                      java.rmi.RemoteException
        Sets the property map for transaction
        Specified by:
        setTxnPropertyMap in interface MboSetRemote
        Parameters:
        map -
        Throws:
        MXException
        java.rmi.RemoteException
      • getTxnPropertyMap

        public java.util.Map getTxnPropertyMap()
                                        throws MXException,
                                               java.rmi.RemoteException
        Gets the property map for the transaction
        Specified by:
        getTxnPropertyMap in interface MboSetRemote
        Returns:
        map
        Throws:
        MXException
        java.rmi.RemoteException
      • isDMSkipFieldValidation

        public boolean isDMSkipFieldValidation()
                                        throws MXException,
                                               java.rmi.RemoteException
        Returns the flag if set is created during deploy action of Deployment Manager. If the flag is set to true,it will skip all field validations but do appvalidate.
        Specified by:
        isDMSkipFieldValidation in interface MboSetRemote
        Parameters:
        true - or false
        Throws:
        MXException
        java.rmi.RemoteException
      • setDMSkipFieldValidation

        public void setDMSkipFieldValidation(boolean flag)
                                      throws MXException,
                                             java.rmi.RemoteException
        Mark the set as created during deploy action of Deployment Manager. If the flag is set to true,it will skip all field validations but do appvalidate.
        Specified by:
        setDMSkipFieldValidation in interface MboSetRemote
        Parameters:
        true - or false
        Throws:
        MXException
        java.rmi.RemoteException
      • setAppAlwaysFieldFlag

        public void setAppAlwaysFieldFlag(java.lang.String attr,
                                          long flag,
                                          boolean state)
        Description copied from interface: MboSetRemote
        Informs the mbo set that any mbo of this set will have the field flags set to the specified attribute. These field flags will always be set when the mbo is created or duplicated. The field flag can be set to a different value as this method specified after the mbo is created or duplicated when the flag is set directly on Mbo or MboValue for the attribute. However, this method is intended to be called only on the attributes that the specified field flag remain the same unconditionally. For the dynamic type of field flags, you should use setFieldFlag(String name, long flag, boolean state) call on the Mbo object.
        Specified by:
        setAppAlwaysFieldFlag in interface MboSetRemote
        See Also:
        psdi.mbo.MboSetRemote#setAlwaysFieldFlag(String attr, long flag, boolean state)
      • getAppAlwaysFieldFlags

        public BitFlag getAppAlwaysFieldFlags(java.lang.String attr)
                                       throws java.rmi.RemoteException
        Get the bitFlag stored for the UI always flag for the attribute, null if nothing.
        Specified by:
        getAppAlwaysFieldFlags in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • getAllAppAlwaysFieldFlags

        protected java.util.HashMap getAllAppAlwaysFieldFlags()
        Return all the always field flags set to all the attribute on this mboset. The HashMap returned has the key as attribute name and BitFlag as the value. You can use iterator to get all the values.
      • findAllNullRequiredFields

        public java.util.List findAllNullRequiredFields()
                                                 throws MXException,
                                                        java.rmi.RemoteException
        Returns a list of ERMAttributeError for each required attribute with a null value. This method will traverse all Mbos in memory and all related MboSets as defined by the ERMEntity. The process only checks the already in memory mbos and only if they are new or modified. The process checks the flags on the MboValue if MboValue is instantiated, and checks the always flag as well as the flag set on Mbo is the MboValue is not instantiated or its flag is not asked for yet. This may not return the most accrate information about the required flag because it is intended not to do the expensive evaluation. if it is required
        Specified by:
        findAllNullRequiredFields in interface MboSetRemote
        Parameters:
        attributes -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • determineRequiredFieldsFromERM

        public java.util.List determineRequiredFieldsFromERM()
                                                      throws MXException,
                                                             java.rmi.RemoteException
        Using the ERMEntity associated with this MboSet, this method will obtain a complete list of required fields that need a value. It checks all mbos in memory that need to be saved (by calling toBeSaved). It also checks the releated MboSets for each mbo that needs to be saved. This call will load all MboValue's and check the isRequired for every attribute epecified within the ERMEntity and it's related ERMEntities. For each required field without a value, a new ERMAttributeError will ba added to the passed in list.
        Specified by:
        determineRequiredFieldsFromERM in interface MboSetRemote
        Throws:
        MXException - Throws the possible MXException that can be thrown when trying to get MboValue for attributes
        java.rmi.RemoteException - Throws the possible MXException that can be thrown when trying to get MboValue for attributes
      • setRequiedFlagsFromERM

        public void setRequiedFlagsFromERM()
                                    throws MXException,
                                           java.rmi.RemoteException
        Get the ERMEntity associated with the MboSet (if there is one) and determines if the ERMEntity has any required fields and sets the required UI always Field Flag on the MboSet for each required one.
        Specified by:
        setRequiedFlagsFromERM in interface MboSetRemote
        Throws:
        MXException - Throws the possible MXException thrown from getERMEntity
        java.rmi.RemoteException - Throws the possible RemoteException thrown from getERMEntity
      • setERMEntity

        public void setERMEntity(ERMEntity ermEntity)
                          throws MXException,
                                 java.rmi.RemoteException
        Sets the ERMEntity of on the MboSet and sets the alwaysUIFieldFlags for each required attribute in the ERMEntity
        Specified by:
        setERMEntity in interface MboSetRemote
        Throws:
        MXException - Throws the possible MXException thrown from setRequiedFlagsFromERM
        java.rmi.RemoteException - Throws the possible RemoteException thrown from setRequiedFlagsFromERM
      • getERMEntity

        public ERMEntity getERMEntity()
                               throws MXException,
                                      java.rmi.RemoteException
        Finds and returns the ERMEntity assiciated with the MbSet. If the MboSet doesn't have a reference to an ERMEntity and the MboSet is not the top most MbSet, this method will bubble up owners until it finds a MboSet with an ERMEntity and asks the ERMEntity for the related entity.
        Specified by:
        getERMEntity in interface MboSetRemote
        Returns:
        Returns the ERMEntity for the MboSet or null if there isn't one.
        Throws:
        MXException - Throws the possible MXException thrown from the call to getting the owner Mbo
        java.rmi.RemoteException - Throws the possible RemoteException thrown from the call to getting owner's MboSet
      • isRetainMboPosition

        public boolean isRetainMboPosition()
                                    throws MXException,
                                           java.rmi.RemoteException
        Is the current MboSet's mbo position to be retained?
        Specified by:
        isRetainMboPosition in interface MboSetRemote
        Returns:
        true, if the position needs to be retained.
        Throws:
        MXException
        java.rmi.RemoteException
      • setRetainMboPosition

        public void setRetainMboPosition(boolean retainMboPosition)
                                  throws MXException,
                                         java.rmi.RemoteException
        Sets the current MboSet's mbo position to be retained after save. Note that the position is not automatically retained after save. The positionState method must be called to position the mbo as the current mbo.
        Specified by:
        setRetainMboPosition in interface MboSetRemote
        Parameters:
        retainMboPosition - true to retain position, false otherwise.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSetRetainMboPositionData

        public MboSetRetainMboPositionData getMboSetRetainMboPositionData()
                                                                   throws MXException,
                                                                          java.rmi.RemoteException
        Returns the retain mbo position data available. Note that this information would only be available for the top level MBOSet in a Business Object graph. If this is called for any MboSet in the graph hierarchy it returns null. This method is not implemented because it is not applicable.
        Specified by:
        getMboSetRetainMboPositionData in interface MboSetRemote
        Returns:
        MboSetRetainMboPositionData returns null.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSetRetainMboPositionInfo

        public MboSetRetainMboPositionInfo getMboSetRetainMboPositionInfo()
                                                                   throws MXException,
                                                                          java.rmi.RemoteException
        Returns the retain mbo position info available. Note that this information would only be available for the top level MBOSet in a Business Object graph. If this is called for any MboSet in the graph hierarchy it returns null. This method is not implemented because it is not applicable.
        Specified by:
        getMboSetRetainMboPositionInfo in interface MboSetRemote
        Returns:
        MboSetRetainMboPositionInfo returns null.
        Throws:
        MXException
        java.rmi.RemoteException
      • positionState

        public void positionState()
                           throws MXException,
                                  java.rmi.RemoteException
        Positions the current mbo based on the position data cached, if the data exists.
        Specified by:
        positionState in interface MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setDBFetchMaxRows

        public void setDBFetchMaxRows(int fetchLimit)
                               throws java.rmi.RemoteException
        Description copied from interface: MboSetRemote
        Set the fetch limit for this MboSet. When the fetch limit is set to a >0 number, the database query issued for this MboSet will only fetch this many records. If an order by is used on this MboSet, the order by will only take effect within the fetch limit of the set. For example, if you set fetch limit to 500, and you have a order by of record number desc, the lagest desc may not appear in the returned 500 records. You should only set the fetch limit for the MboSet for display purpose only, not involved in business logic that needs to process all the records in the set.
        Specified by:
        setDBFetchMaxRows in interface MboSetRemote
        Parameters:
        fetchLimit - a possitive number. If -1 or 0, the fetch limit will be turned off.
        Throws:
        java.rmi.RemoteException
        See Also:
        psdi.mbo.MboSetRemote#setFetchLimit(int)
      • getDBFetchMaxRows

        public int getDBFetchMaxRows()
                              throws java.rmi.RemoteException
        Description copied from interface: MboSetRemote
        Returns the fetch limit that has been set on this MboSet. It will return -1 if fetch limit hasn't been set.
        Specified by:
        getDBFetchMaxRows in interface MboSetRemote
        Returns:
        Throws:
        java.rmi.RemoteException
        See Also:
        psdi.mbo.MboSetRemote#getFetchLimit()
      • getSetOrderByForUI

        public java.lang.String getSetOrderByForUI()
                                            throws java.rmi.RemoteException
        Specified by:
        getSetOrderByForUI in interface MboSetRemote
        Throws:
        java.rmi.RemoteException
      • setSetOrderByForUI

        public void setSetOrderByForUI(java.lang.String orderBy)
                                throws java.rmi.RemoteException
        Specified by:
        setSetOrderByForUI in interface MboSetRemote
        Throws:
        java.rmi.RemoteException