Java Code Examples for org.davidmoten.rx.jdbc.annotations.Query

The following examples show how to use org.davidmoten.rx.jdbc.annotations.Query. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: rxjava2-jdbc   Source File: SelectAutomappedBuilder.java    License: Apache License 2.0 5 votes vote down vote up
private static String getSql(Class<?> cls) {
    Query q = cls.getDeclaredAnnotation(Query.class);
    if (q == null) {
        throw new QueryAnnotationMissingException(
                "the sql for the automapped interface should be specified in a Query annotation on the interface");
    }
    return q.value();
}