Interface SQL_DQL<E extends EntityType>
- All Superinterfaces:
SQLUtils<E>,SQLValidationUtils<E>,Utils<E>
- All Known Implementing Classes:
DQLImpl
Data Query Language queries will be generated by this interface
- Author:
- alireza_bayat
-
Method Summary
Modifier and TypeMethodDescriptionselectQuery(E e) generate select query base on fields that gotColumnin given entityselectQuery(E e, ClauseBuilder<E> clauseBuilder) selectQuery(E e, ClauseBuilder<E> clauseBuilder, String... fieldsName) selectQuery(E e, Selection... selections) selectQuery(E e, String... fieldsName) first approach is to get fields byColumn.name()Methods inherited from interface com.hades.builder.sqlCommand.SQLUtils
addJoinType, addQueryKeyOperator, addQueryKeyWord, addQueryKeyWord, getTableAnnotation, getTableName, removeLastIndexStringBuilder, removeLastIndexStringBuilderMethods inherited from interface com.hades.builder.sqlCommand.SQLValidationUtils
extractObjectType, fieldExistInEntityMethods inherited from interface com.hades.builder.sqlCommand.Utils
getClazz, nullValidation, nullValidation
-
Method Details
-
selectQuery
generate select query base on fields that got
Columnin given entity- Returns:
- string of query
-
selectQuery
first approach is to get fields byColumn.name()select columns will be generated by String of Varargs.
each index of varargs must be present in the given entity as parameters
Column.name(), otherwise that index will not effect the query- Parameters:
fieldsName- varargs of query columns in response- Returns:
- string of query
-
selectQuery
-
selectQuery
-
selectQuery
-