Class AccountQueryExtensions


  • public class AccountQueryExtensions
    extends Object
    Contains query extensions for Account
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.querydsl.core.types.dsl.NumberExpression<BigDecimal> balance​(com.querydsl.core.types.EntityPath<Account> account)
      Returns the current balance expression for a given account
      static com.querydsl.core.types.dsl.NumberExpression<BigDecimal> balance​(com.querydsl.core.types.EntityPath<Account> account, com.querydsl.core.types.Expression<Date> date)
      Returns the balance expression for a given account at the given date
      static com.querydsl.core.types.dsl.NumberExpression<BigDecimal> balanceSum​(com.querydsl.core.types.EntityPath<Account> account, com.querydsl.core.types.Expression<BigDecimal> balanceDiff, com.querydsl.core.types.Expression<String> timePoints, com.querydsl.core.types.Expression<Boolean> positive, com.querydsl.core.types.Expression<BigDecimal> freebase)
      Returns the balance sum for the account, calculated per day, either over positive or negative balances, applying the given freebase
    • Constructor Detail

      • AccountQueryExtensions

        public AccountQueryExtensions()
    • Method Detail

      • balance

        @QueryDelegate(Account.class)
        public static com.querydsl.core.types.dsl.NumberExpression<BigDecimal> balance​(com.querydsl.core.types.EntityPath<Account> account)
        Returns the current balance expression for a given account
      • balance

        @QueryDelegate(Account.class)
        public static com.querydsl.core.types.dsl.NumberExpression<BigDecimal> balance​(com.querydsl.core.types.EntityPath<Account> account,
                                                                                       com.querydsl.core.types.Expression<Date> date)
        Returns the balance expression for a given account at the given date
      • balanceSum

        @QueryDelegate(Account.class)
        public static com.querydsl.core.types.dsl.NumberExpression<BigDecimal> balanceSum​(com.querydsl.core.types.EntityPath<Account> account,
                                                                                          com.querydsl.core.types.Expression<BigDecimal> balanceDiff,
                                                                                          com.querydsl.core.types.Expression<String> timePoints,
                                                                                          com.querydsl.core.types.Expression<Boolean> positive,
                                                                                          com.querydsl.core.types.Expression<BigDecimal> freebase)
        Returns the balance sum for the account, calculated per day, either over positive or negative balances, applying the given freebase