Package com.hades.builder.sqlCommand
Interface SQLUtils<E extends EntityType>
- All Superinterfaces:
SQLValidationUtils<E>,Utils<E>
- All Known Subinterfaces:
SQL_DQL<E>
- All Known Implementing Classes:
DQLImpl,SQLUtilities
utilities of relational databases
- Author:
- alireza_bayat created on 10/19/21
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringaddJoinType(JoinTypes joinTypes) default StringaddQueryKeyOperator(QueryKeyOperators queryKeyOperators) default StringaddQueryKeyWord(QueryKeyWords queryKeyWords) default voidaddQueryKeyWord(StringBuilder s, QueryKeyWords queryKeyWords) default javax.persistence.TablegetTableAnnotation(Class<?> entity) extractTableof entity if presentdefault StringgetTableName(javax.persistence.Table table) default Stringremove last index of stringdefault voidremove last index of string builderMethods inherited from interface com.hades.builder.sqlCommand.SQLValidationUtils
extractObjectType, fieldExistInEntityMethods inherited from interface com.hades.builder.sqlCommand.Utils
getClazz, nullValidation, nullValidation
-
Method Details
-
getTableAnnotation
extract
Tableof entity if present- Parameters:
entity- entity class- Returns:
- Table
- Throws:
AnnotationNotPresentException- in case annotation is not present on the class
-
removeLastIndexStringBuilder
remove last index of string builder
-
removeLastIndexStringBuilder
remove last index of string
-
getTableName
-
addQueryKeyWord
-
addQueryKeyWord
-
addJoinType
-
addQueryKeyOperator
-