Class DQLImpl<E extends EntityType>
java.lang.Object
com.hades.builder.sqlCommand.impl.DQLImpl<E>
- All Implemented Interfaces:
SQL_DQL<E>,SQLUtils<E>,SQLValidationUtils<E>,Utils<E>
- Author:
- alireza_bayat created on 10/19/21
-
Constructor Summary
Constructors -
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
DQLImpl
public DQLImpl()
-
-
Method Details
-
selectQuery
Description copied from interface:SQL_DQLgenerate select query base on fields that got
Columnin given entity- Specified by:
selectQueryin interfaceSQL_DQL<E extends EntityType>- Returns:
- string of query
-
selectQuery
Description copied from interface:SQL_DQLfirst 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- Specified by:
selectQueryin interfaceSQL_DQL<E extends EntityType>- Parameters:
fieldsName- varargs of query columns in response- Returns:
- string of query
-
selectQuery
- Specified by:
selectQueryin interfaceSQL_DQL<E extends EntityType>
-
selectQuery
- Specified by:
selectQueryin interfaceSQL_DQL<E extends EntityType>
-
selectQuery
- Specified by:
selectQueryin interfaceSQL_DQL<E extends EntityType>
-