Class QueryTable.QueryBuilder
java.lang.Object
org.nervousync.database.query.core.QueryTable.QueryBuilder
- Enclosing class:
- QueryTable
The type Builder.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryColumn(Class<?> entityClass, String identifyName, boolean distinct, String aliasName) Add query column query builder.voidaddQueryCondition(Class<?> entityClass, ConnectionCode connCode, ConditionCode conditionCode, String identifyName, MatchCondition matchCondition) Add query condition query builder.voidaddQueryFunction(Class<?> entityClass, String aliasName, String sqlFunction, QueryItem... functionParams) Add query function query builder.booleananalyzeCheck(Class<?> entityClass, Class<?> referenceClass) Analyze check boolean.build()Build query table.booleanContains boolean.voidJoin table builder.booleanMatch boolean.
-
Method Details
-
joinTable
public void joinTable(JoinType joinType, String aliasName, Class<?> entityClass, Class<?> referenceClass) throws EntityStatusException Join table builder.- Parameters:
joinType- the join typealiasName- the alias nameentityClass- the entity classreferenceClass- 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 classidentifyName- column identify namedistinct- the distinctaliasName- 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 classaliasName- the alias namesqlFunction- the sql functionfunctionParams- 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 classconnCode- the connection codeconditionCode- the condition codeidentifyName- column identify namematchCondition- the match condition- Throws:
QueryException- the query exception
-
build
Build query table.- Returns:
- the query table
-
contains
Contains boolean.- Parameters:
entityClass- the entity class- Returns:
- the boolean
-
match
Match boolean.- Parameters:
schemaName- the database schema name- Returns:
- the boolean
-
analyzeCheck
Analyze check boolean.- Parameters:
entityClass- the entity classreferenceClass- the reference class- Returns:
- the boolean
-