Class ExtendedQuery
- java.lang.Object
-
- org.neotropic.kuwaiba.core.apis.persistence.application.ExtendedQuery
-
- All Implemented Interfaces:
Serializable
public class ExtendedQuery extends Object implements Serializable
Represents a complex query to be executed. This is the code friendly version of the query. The store-friendly can is @CompactQuery.- 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 ExtendedQuery()
ExtendedQuery(String className, int logicalConnector, List<String> attributeNames, List<String> visibleAttributeNames, List<String> attributeValues, List<Integer> conditions, List<ExtendedQuery> joins, int page, int limit)
-
Method Summary
-
-
-
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 List<ExtendedQuery> getJoins()
-
getLogicalConnector
public int getLogicalConnector()
-
getClassName
public String getClassName()
-
getLimit
public int getLimit()
-
getPage
public int getPage()
-
setClassName
public void setClassName(String className)
-
setLogicalConnector
public void setLogicalConnector(int logicalConnector)
-
addAttributeName
public void addAttributeName(String attributeName)
-
addVisibleAttributeName
public void addVisibleAttributeName(String visibleAttributeName)
-
addAttributeValue
public void addAttributeValue(String attributeValue)
-
addConditions
public void addConditions(Integer condition)
-
addJoin
public void addJoin(ExtendedQuery join)
-
setJoins
public void setJoins(List<ExtendedQuery> joins)
-
setJoin
public void setJoin(boolean join)
-
setLimit
public void setLimit(int limit)
-
setPage
public void setPage(int page)
-
getQueryJoin
public ExtendedQuery getQueryJoin()
-
setQueryJoin
public void setQueryJoin(ExtendedQuery queryJoin)
-
removeAttribute
public void removeAttribute(String name)
-
-