Class TransientQuery
- java.lang.Object
-
- org.neotropic.kuwaiba.northbound.ws.todeserialize.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 Summary
Fields Modifier and Type Field Description static int
BETWEEN
Between comparison (used for numbers and dates)static int
CONNECTOR_AND
AND logical connectorstatic int
CONNECTOR_OR
OR logical connectorstatic int
EQUAL
Equal comparisonstatic int
EQUAL_OR_GREATER_THAN
Less than or equal to comparisonstatic int
EQUAL_OR_LESS_THAN
Less than or equal to comparisonstatic int
GREATER_THAN
Greater than comparisonstatic int
LESS_THAN
Less than comparisonstatic int
LIKE
Like comparison (used for strings)
-
Constructor Summary
Constructors Constructor Description TransientQuery()
TransientQuery(String className, int logicalConnector, ArrayList<String> attributeNames, ArrayList<String> visibleAttributeNames, ArrayList<String> attributeValues, ArrayList<Integer> conditions, ArrayList<TransientQuery> joins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<String>
getAttributeNames()
ArrayList<String>
getAttributeValues()
String
getClassName()
ArrayList<Integer>
getConditions()
ArrayList<TransientQuery>
getJoins()
int
getLimit()
int
getLogicalConnector()
int
getPage()
TransientQuery
getParent()
ArrayList<String>
getVisibleAttributeNames()
boolean
isJoin()
void
setAttributeNames(ArrayList<String> attributeNames)
void
setAttributeValues(ArrayList<String> attributeValues)
void
setClassName(String className)
void
setConditions(ArrayList<Integer> conditions)
void
setJoin(boolean join)
void
setJoins(ArrayList<TransientQuery> joins)
void
setLimit(int limit)
void
setLogicalConnector(int logicalConnector)
void
setPage(int page)
void
setParent(TransientQuery parent)
void
setVisibleAttributeNames(ArrayList<String> visibleAttributeNames)
-
-
-
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
public static final int EQUAL
Equal comparison- See Also:
- Constant Field Values
-
LESS_THAN
public static final int LESS_THAN
Less than comparison- 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
-
LIKE
public static final int LIKE
Like comparison (used for strings)- See Also:
- Constant Field Values
-
-
Method Detail
-
isJoin
public boolean isJoin()
-
getJoins
public ArrayList<TransientQuery> getJoins()
-
getLogicalConnector
public int getLogicalConnector()
-
getClassName
public String getClassName()
-
getLimit
public int getLimit()
-
getPage
public int getPage()
-
setClassName
public void setClassName(String className)
-
setJoin
public void setJoin(boolean join)
-
setJoins
public void setJoins(ArrayList<TransientQuery> joins)
-
getParent
public TransientQuery getParent()
-
setParent
public void setParent(TransientQuery parent)
-
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)
-
-