psdi.app.signature

Class Query

  • All Implemented Interfaces:
    java.rmi.Remote, QueryRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class Query
    extends Mbo
    implements QueryRemote
    Mbo object to represent Query.

    This mbo contains non-persistent attributes.

    See Signature Package description.

    This is a site level object.

    The key attributes for this object are SiteID, App and ClauseName.

    The attributes in this object are as follows:

    Attribute NameDescription
    AppThe application to which this clause applies. Foreign key to MaxApps.
    ClauseSQL (where clause) which implicitly applies to the table identified by maxapps.maintbname.
    ClauseNameThe name of this clause. Unique within App.
    DefaultNon-persistent attribute. Given a set of Query that are executable for a particular user and application, the "default" attribute indicates which Query (if any) the user has chosen as his/her default for this application. In order to manipulate this attribute, the Query set should have been retrieved using getQueriesForUser. See also Query appValidate.
    DescriptionFreeform description.
    IsPublicA Query is either Public or Private. IsPublic = True indicates that this is a Public query. Anybody can use a Public query. Only the Owner can use a Private query. Only the Owner can modify or delete a Query, whether Public or Private.
    OrgIDThe organization for this site, stored on this table for ease of access. This equals the value for OrgID specified on the Site table.
    OwnerThe user who created this query. Foreign key to MaxUser.
    SiteIDThe site to which this record pertains. Foreign key to Site.
    See Also:
    DefaultQuery
    • Constructor Detail

      • Query

        public Query(MboSet ms)
              throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        AppCurrent application
        DefaultFalse
        IsPublicFalse
        OwnerCurrent user
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Must be the query owner to delete.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Also delete DefaultQuery.
        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
        java.rmi.RemoteException
        See Also:
        Query.getDefaultQuerySet()
      • isUnique

        public boolean isUnique()
                         throws MXException,
                                java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException