Class AggregateClause<E extends EntityType>
java.lang.Object
com.hades.builder.sqlCommand.clauseBuilder.ClauseElements
com.hades.builder.sqlCommand.clauseBuilder.aggregate.AggregateClause<E>
- All Implemented Interfaces:
SQLAggregateClause<E>
public class AggregateClause<E extends EntityType>
extends ClauseElements
implements SQLAggregateClause<E>
- Author:
- alireza_bayat created on 2/26/22
-
Field Summary
Fields inherited from class com.hades.builder.sqlCommand.clauseBuilder.ClauseElements
clause -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(E e) create instanceClassof given entity to be used in Aggregate clausesMethods inherited from class com.hades.builder.sqlCommand.clauseBuilder.ClauseElements
getClause, setClause
-
Constructor Details
-
AggregateClause
pass entity class object as param
-
AggregateClause
public AggregateClause()
-
-
Method Details
-
createInstance
Description copied from interface:SQLAggregateClausecreate instance
Classof given entity to be used in Aggregate clausesprobably not needed in second approach
- Specified by:
createInstancein interfaceSQLAggregateClause<E extends EntityType>- Parameters:
e- passed entity object- Returns:
- SQLAggregateClause
object
-
count
- Specified by:
countin interfaceSQLAggregateClause<E extends EntityType>
-
avg
- Specified by:
avgin interfaceSQLAggregateClause<E extends EntityType>
-
sum
- Specified by:
sumin interfaceSQLAggregateClause<E extends EntityType>
-
min
- Specified by:
minin interfaceSQLAggregateClause<E extends EntityType>
-
max
- Specified by:
maxin interfaceSQLAggregateClause<E extends EntityType>
-
groupBy
- Specified by:
groupByin interfaceSQLAggregateClause<E extends EntityType>
-
having
- Specified by:
havingin interfaceSQLAggregateClause<E extends EntityType>
-