psdi.app.relation

Class RelationRules

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, RelationRulesRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class RelationRules
    extends Mbo
    implements RelationRulesRemote
    MBO object to represent RelationRules.

    This is a system level object.

    The key attributes for this object are: RELATIONNUM, SOURCECLASS AND TARGETCLASS.

    The attributes in this object are as follows:

    Attribute NameDescription
    RELATIONNUMidentifier of the realtion
    SOURCECLASSidentifier of the source classification
    TARGETCLASSidentifier of the target classification
    DESCRIPTIONDescription of the relation
    PROPOGATECHANGEindicate whether a change should be propagated
    CONTAINMENTindicate whether the relation is a containment relation or not
    CARDINALITYCardinality of the relationship rule.
    • Constructor Detail

      • RelationRules

        public RelationRules(MboSet ms)
                      throws MXException,
                             java.rmi.RemoteException
        Constructs the RelationRules object.

        Parameters:
        ms - MboSet
        Throws:
        MXException, - RemoteException
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new RelationRules object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Parameters:
        none -
        Throws:
        MXException, - RemoteException
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        RELATION RULE cannot be deleted for many reasons. RELATION RULE should not be under change control.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException, - RemoteException
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        override delete to delete a relation rule
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException, - RemoteException
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. If this field does not need to be copied return true.
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied return true, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Relation.duplicate(), Relation.loadSkipFieldCopyHashSet()
      • clearSourceClassification

        public void clearSourceClassification()
                                       throws java.rmi.RemoteException,
                                              MXException
        This method clears the source classtructure of the Relation rules.
        Specified by:
        clearSourceClassification in interface RelationRulesRemote
        Throws:
        MXException, - RemoteException
        java.rmi.RemoteException
        MXException
        See Also:
        psdi.app.relation.Relation#clearSourceClassification()
      • clearTargetClassification

        public void clearTargetClassification()
                                       throws java.rmi.RemoteException,
                                              MXException
        This method clears the target classtructure of the Relation rules.
        Specified by:
        clearTargetClassification in interface RelationRulesRemote
        Throws:
        MXException, - RemoteException
        java.rmi.RemoteException
        MXException
        See Also:
        psdi.app.relation.Relation#clearTargetClassification()
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Actions that occur when a relationrules object is saved.
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException