long count = ObjectSelect
.columnQuery(Artist.class, Property.COUNT) .selectOne(context);
long count2 = ObjectSelect
.query(Artist.class)
.count()
.selectOne(context);
long count3 = ObjectSelect
.query(Artist.class)
.selectCount(context);
long count2 = ObjectSelect
.columnQuery(Artist.class, Artist.DATE_OF_BIRTH.count()) .selectOne(context);
long count3 = ObjectSelect
.query(Artist.class)
.count(Artist.DATE_OF_BIRTH)
.selectOne(context);
Property<BigDecimal> estimatedPrice = Artist.PAINTING_ARRAY.dot(Painting.ESTIMATED_PRICE);
Object[] minMaxAvgSumCount = ObjectSelect.query(Artist.class)
.where(estimatedPrice.gte(min))
.min(estimatedPrice)
.max(estimatedPrice)
.avg(estimatedPrice)
.sum(estimatedPrice)
.count()
.selectOne(context);