Class CountByHashKeyQuery<T>

  • All Implemented Interfaces:
    Query<java.lang.Long>

    public class CountByHashKeyQuery<T>
    extends AbstractSingleEntityQuery<java.lang.Long>
    implements Query<java.lang.Long>
    Author:
    Michael Lavelle, Sebastian Just
    • Constructor Detail

      • CountByHashKeyQuery

        public CountByHashKeyQuery​(DynamoDBOperations dynamoDBOperations,
                                   java.lang.Class<T> clazz,
                                   java.lang.Object hashKey)
    • Method Detail

      • getSingleResult

        public java.lang.Long getSingleResult()
        Description copied from interface: Query
        Execute a SELECT query that returns a single result.
        Specified by:
        getSingleResult in interface Query<T>
        Returns:
        the result