Class QueryTable.QueryBuilder

java.lang.Object
org.nervousync.database.query.core.QueryTable.QueryBuilder
Enclosing class:
QueryTable

public static final class QueryTable.QueryBuilder extends Object
The type Builder.
  • Method Details

    • joinTable

      public void joinTable(JoinType joinType, String aliasName, Class<?> entityClass, Class<?> referenceClass) throws EntityStatusException
      Join table builder.
      Parameters:
      joinType - the join type
      aliasName - the alias name
      entityClass - the entity class
      referenceClass - the reference class
      Throws:
      EntityStatusException - the entity status exception
    • addQueryColumn

      public void addQueryColumn(Class<?> entityClass, String identifyName, boolean distinct, String aliasName) throws QueryException
      Add query column query builder.
      Parameters:
      entityClass - the entity class
      identifyName - column identify name
      distinct - the distinct
      aliasName - the alias name
      Throws:
      QueryException - the query exception
    • addQueryFunction

      public void addQueryFunction(Class<?> entityClass, String aliasName, String sqlFunction, QueryItem... functionParams) throws QueryException
      Add query function query builder.
      Parameters:
      entityClass - the entity class
      aliasName - the alias name
      sqlFunction - the sql function
      functionParams - the function params
      Throws:
      QueryException - the query exception
    • addQueryCondition

      public void addQueryCondition(Class<?> entityClass, ConnectionCode connCode, ConditionCode conditionCode, String identifyName, MatchCondition matchCondition) throws QueryException
      Add query condition query builder.
      Parameters:
      entityClass - the entity class
      connCode - the connection code
      conditionCode - the condition code
      identifyName - column identify name
      matchCondition - the match condition
      Throws:
      QueryException - the query exception
    • build

      public QueryTable build()
      Build query table.
      Returns:
      the query table
    • contains

      public boolean contains(Class<?> entityClass)
      Contains boolean.
      Parameters:
      entityClass - the entity class
      Returns:
      the boolean
    • match

      public boolean match(String schemaName)
      Match boolean.
      Parameters:
      schemaName - the database schema name
      Returns:
      the boolean
    • analyzeCheck

      public boolean analyzeCheck(Class<?> entityClass, Class<?> referenceClass)
      Analyze check boolean.
      Parameters:
      entityClass - the entity class
      referenceClass - the reference class
      Returns:
      the boolean