psdi.common.parse

Class Exists

  • All Implemented Interfaces:
    TreeNode


    public class Exists
    extends BooleanTreeNodeAdapter
    This Boolean function returns true when a related Mbo found that satisfies the expression. For example, the expression: exists (select 1 from poline where ponum = :ponum and siteid = :siteid and fincntrlid is not null) could be written as: custom('psdi.common.parse.Exists','POLINE', 'fincntrl is not null') Later, when this function is rolled into the expression parser. Exists(POLINE, fincntrl is not null)
    • Constructor Detail

      • Exists

        public Exists()
    • Method Detail

      • childrenInfoString

        protected java.lang.String childrenInfoString()
        Description copied from class: TreeNodeAdapter
        Sub-classes should override this method to return the result of toString on each child, separated by new lines. If the node has no children, this method should return null or the empty string. If the node has 3 children the output should look like:

        \n
        \n

        Note there is no new line character after the last child.

        Specified by:
        childrenInfoString in class TreeNodeAdapter
      • parentInfoString

        protected java.lang.String parentInfoString()
        Description copied from class: TreeNodeAdapter
        Sub-classes should override this method to create a string which provides information for the parent node only. The string created should be a single line.
        Specified by:
        parentInfoString in class TreeNodeAdapter
      • getBoolean

        public boolean getBoolean(MboRemote mbo)
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from interface: TreeNode
        Evaluates the node and returns it's value as a boolean.
        Throws:
        MXException
        java.rmi.RemoteException