Class QueryTable
java.lang.Object
org.nervousync.database.query.core.QueryTable
The type Query table.
- Version:
- $Revision : 1.0 $ $Date: 2/8/2021 01:25 PM $
- Author:
- Steven Wee wmkm0113@Hotmail.com
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryCondition(ConnectionCode connCode, ConditionCode conditionCode, String identifyName, MatchCondition matchCondition) Add query condition query builder.cacheKey()Cache key string.Gets alias name.Class<?>Gets entity class.Gets the query condition list.Gets query item list.Gets the query join list.Gets database alias.Gets table name.static QueryTable.QueryBuildernewBuilder(String aliasName, Class<?> entityClass, int countPrefix) New builder query builder.
-
Method Details
-
getAliasName
Gets alias name.- Returns:
- the alias name
-
getSchemaName
Gets database alias.- Returns:
- the database alias
-
getTableName
Gets table name.- Returns:
- the table name
-
getEntityClass
Gets entity class.- Returns:
- the entity class
-
getQueryJoinList
Gets the query join list.- Returns:
- the query join list
-
getQueryItemList
Gets query item list.- Returns:
- the query item list
-
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 codeconditionCode- the condition codeidentifyName- column identify namematchCondition- 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 nameentityClass- the entity classcountPrefix- the count prefix- Returns:
- the query builder
-
cacheKey
Cache key string.- Returns:
- the string
-