Class QueryItem
java.lang.Object
org.nervousync.database.query.core.QueryItem
- Direct Known Subclasses:
QueryItem.QueryColumn,QueryItem.QueryConstant,QueryItem.QueryFunction
The type Query item.
- Version:
- $Revision : 1.0 $ $Date: 10/9/2020 11:30 AM $
- Author:
- Steven Wee wmkm0113@Hotmail.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enum Item type.static final classThe type Query column.static final classThe type Query constant.static final classThe type Query function. -
Method Summary
Modifier and TypeMethodDescriptionabstract StringcacheKey()Gets the value of aliasNameGets the value of itemTypeabstract booleanMatch boolean.static QueryItem.QueryColumnqueryColumn(String identifyKey, boolean distinct, String aliasName) Create query column.static QueryItem.QueryConstantqueryConstant(Object constantValue) Query constant query constant.static QueryItem.QueryFunctionqueryFunction(String aliasName, String sqlFunction, QueryItem... functionParams) Create query function.
-
Method Details
-
queryColumn
public static QueryItem.QueryColumn queryColumn(String identifyKey, boolean distinct, String aliasName) Create query column.- Parameters:
identifyKey- the identify keydistinct- the distinctaliasName- the alias name- Returns:
- the query column
-
queryConstant
Query constant query constant.- Parameters:
constantValue- the constant value- Returns:
- the query constant
-
queryFunction
public static QueryItem.QueryFunction queryFunction(String aliasName, String sqlFunction, QueryItem... functionParams) Create query function.- Parameters:
aliasName- the alias namesqlFunction- the sql functionfunctionParams- the function params- Returns:
- the query function
- Throws:
QueryException- the query exception
-
getItemType
Gets the value of itemType- Returns:
- the value of itemType
-
getAliasName
Gets the value of aliasName- Returns:
- the value of aliasName
-
match
Match boolean.- Parameters:
queryItem- the query item- Returns:
- the boolean
-
cacheKey
-