Class QueryItem

java.lang.Object
org.nervousync.database.query.core.QueryItem
Direct Known Subclasses:
QueryItem.QueryColumn, QueryItem.QueryConstant, QueryItem.QueryFunction

public abstract class QueryItem extends Object
The type Query item.
Version:
$Revision : 1.0 $ $Date: 10/9/2020 11:30 AM $
Author:
Steven Wee wmkm0113@Hotmail.com
  • Method Details

    • queryColumn

      public static QueryItem.QueryColumn queryColumn(String identifyKey, boolean distinct, String aliasName)
      Create query column.
      Parameters:
      identifyKey - the identify key
      distinct - the distinct
      aliasName - the alias name
      Returns:
      the query column
    • queryConstant

      public static QueryItem.QueryConstant queryConstant(Object constantValue)
      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 name
      sqlFunction - the sql function
      functionParams - the function params
      Returns:
      the query function
      Throws:
      QueryException - the query exception
    • getItemType

      public QueryItem.ItemType getItemType()
      Gets the value of itemType
      Returns:
      the value of itemType
    • getAliasName

      public String getAliasName()
      Gets the value of aliasName
      Returns:
      the value of aliasName
    • match

      public abstract boolean match(QueryItem queryItem)
      Match boolean.
      Parameters:
      queryItem - the query item
      Returns:
      the boolean
    • cacheKey

      public abstract String cacheKey()