psdi.mbo

Class QbeFilter.AttributeExpressions

  • java.lang.Object
    • psdi.mbo.QbeFilter.AttributeExpressions
  • Enclosing class:
    QbeFilter


    public class QbeFilter.AttributeExpressions
    extends java.lang.Object
    Note that this class is very similar to the inner class with the same name in MboQbe
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DB2DB 
      static int ORACLEDB 
      static int SQLSERVERDB 
    • Constructor Summary

      Constructors 
      Constructor and Description
      AttributeExpressions(java.lang.String attrStrg)
      Constructor.
    • Constructor Detail

      • AttributeExpressions

        public AttributeExpressions(java.lang.String attrStrg)
                             throws MXException
        Constructor. The attrStrg parameter has the format of:
        [ + "/" + [ + "/" + ] [ + ";" + ]
        The GUI field name, prepend operator, and language code are all optional.
        A prepend operator may not be specified without a GUI field name.
        If given, the prepend operator is one of: "<=", "<", ">=", ">", "!=", "="
        Parameters:
        attrStrg - The attribute/field specifier. See format above.
        Throws:
        MXException - If the attribute isn't found or the value isn't valid for the attribute's data type.
    • Method Detail

      • setValue

        public void setValue(java.lang.String val)
                      throws MXException
        Sets the value for this attribute expression.
        Throws:
        MXException
      • isWildCardPresentAtFirst

        public boolean isWildCardPresentAtFirst(java.lang.String expr)
      • isWildCardPresentAtLast

        public boolean isWildCardPresentAtLast(java.lang.String expr)
      • isWildCardPresent

        public boolean isWildCardPresent(java.lang.String expr)
      • getGuiFieldName

        public java.lang.String getGuiFieldName()
        returns the Bongo Field name if the field is of type BoundMXTextField.
      • getMboName

        public java.lang.String getMboName()
        Deprecated. 
        returns the name of the Mbo if the field is of type BoundMXTextField
      • getAttribute

        public java.lang.String getAttribute()
        Returns the name of the attribute.
      • getPrepend

        public java.lang.String getPrepend()
        Returns the value of the prepend. The prepend can be overridden if there's an operator given in the value expression.
      • getQbeKey

        public java.lang.String getQbeKey()
        Returns the key for this expression. The key is the optional guiname / attribute name plus the language code, if not base.
      • getValue

        public java.lang.String getValue()
        Returns the raw value that was typed in. This will be used in getQbe call.
      • setUnparsedValue

        public void setUnparsedValue(java.lang.String val)
        Needed for setWhereQbe
        Parameters:
        val -
      • setWhereQbe

        public void setWhereQbe(boolean isWhereWbe)
        sets the flag for where Qbe
      • getWhereSnippet

        public java.lang.String getWhereSnippet(java.lang.String alias)
                                         throws MXException
        Returns a where clause for the attribute using the operators & values
        Parameters:
        alias - The table alias prefix.
        Returns:
        The where clause
        Throws:
        MXException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object