Class QueryTable

java.lang.Object
org.nervousync.database.query.core.QueryTable

public final class QueryTable extends Object
The type Query table.
Version:
$Revision : 1.0 $ $Date: 2/8/2021 01:25 PM $
Author:
Steven Wee wmkm0113@Hotmail.com
  • Method Details

    • getAliasName

      public String getAliasName()
      Gets alias name.
      Returns:
      the alias name
    • getSchemaName

      public String getSchemaName()
      Gets database alias.
      Returns:
      the database alias
    • getTableName

      public String getTableName()
      Gets table name.
      Returns:
      the table name
    • getEntityClass

      public Class<?> getEntityClass()
      Gets entity class.
      Returns:
      the entity class
    • getQueryJoinList

      public List<QueryJoin> getQueryJoinList()
      Gets the query join list.
      Returns:
      the query join list
    • getQueryItemList

      public List<QueryItem> getQueryItemList()
      Gets query item list.
      Returns:
      the query item list
    • getQueryConditionList

      public List<QueryCondition> getQueryConditionList()
      Gets the query condition list.
      Returns:
      the query condition list
    • addQueryCondition

      public void addQueryCondition(ConnectionCode connCode, ConditionCode conditionCode, String identifyName, MatchCondition matchCondition) throws QueryException
      Add query condition query builder.
      Parameters:
      connCode - the connection code
      conditionCode - the condition code
      identifyName - column identify name
      matchCondition - the match condition
      Throws:
      QueryException - the query exception
    • newBuilder

      public static QueryTable.QueryBuilder newBuilder(String aliasName, Class<?> entityClass, int countPrefix)
      New builder query builder.
      Parameters:
      aliasName - the alias name
      entityClass - the entity class
      countPrefix - the count prefix
      Returns:
      the query builder
    • cacheKey

      public String cacheKey()
      Cache key string.
      Returns:
      the string