org.cloudfoundry.multiapps.controller.persistence.query.Query Maven / Gradle / Ivy
package org.cloudfoundry.multiapps.controller.persistence.query;
import java.util.List;
import jakarta.persistence.NoResultException;
import jakarta.persistence.NonUniqueResultException;
public interface Query> {
T limitOnSelect(int limit);
T offsetOnSelect(int offset);
/**
* @return the result
* @throws NoResultException Thrown when there is no result. Don't use this method if it's possible for this query to match nothing.
* @throws NonUniqueResultException Thrown when there are multiple results. If you want to get the first of these, use
* {@code limitOnSelect(1).list()} instead.
*/
R singleResult() throws NoResultException, NonUniqueResultException;
List list();
int delete();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy