Class TransientQuery

  • All Implemented Interfaces:
    Serializable

    public class TransientQuery
    extends Object
    implements Serializable
    This is a representation in a code friendly flavor of a complex query. Pay attention that the JOIN will be treated as small queries, ie.:

    SELECT * FROM building b. vendor v WHERE b.name LIKE '%my_building%' INNER JOIN vendor ON v.vendor_id=b.id and v.name ='Nokia'
    There will be two queries: One (the master) having the condition "name LIKE '%my_building%'" and a "subquery" with the join information.

    Don't confuse with the representation of entitity.queries.Query (RemoteQuery). That one is used to store the queries and eventually to send them to the client to be reconstructed, This one is used only for query execution purposes
    Author:
    Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
    See Also:
    Serialized Form
    • Field Detail

      • CONNECTOR_OR

        public static final int CONNECTOR_OR
        OR logical connector
        See Also:
        Constant Field Values
      • CONNECTOR_AND

        public static final int CONNECTOR_AND
        AND logical connector
        See Also:
        Constant Field Values
      • EQUAL_OR_LESS_THAN

        public static final int EQUAL_OR_LESS_THAN
        Less than or equal to comparison
        See Also:
        Constant Field Values
      • GREATER_THAN

        public static final int GREATER_THAN
        Greater than comparison
        See Also:
        Constant Field Values
      • EQUAL_OR_GREATER_THAN

        public static final int EQUAL_OR_GREATER_THAN
        Less than or equal to comparison
        See Also:
        Constant Field Values
      • BETWEEN

        public static final int BETWEEN
        Between comparison (used for numbers and dates)
        See Also:
        Constant Field Values
    • Method Detail

      • isJoin

        public boolean isJoin()
      • getLogicalConnector

        public int getLogicalConnector()
      • getVisibleAttributeNames

        public ArrayList<String> getVisibleAttributeNames()
      • getClassName

        public String getClassName()
      • getLimit

        public int getLimit()
      • getPage

        public int getPage()
      • setAttributeNames

        public void setAttributeNames​(ArrayList<String> attributeNames)
      • setClassName

        public void setClassName​(String className)
      • setJoin

        public void setJoin​(boolean join)
      • setLimit

        public void setLimit​(int limit)
      • setLogicalConnector

        public void setLogicalConnector​(int logicalConnector)
      • setPage

        public void setPage​(int page)
      • setVisibleAttributeNames

        public void setVisibleAttributeNames​(ArrayList<String> visibleAttributeNames)
      • setAttributeValues

        public void setAttributeValues​(ArrayList<String> attributeValues)