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

The following examples show how to use org.davidmoten.rx.jdbc.annotations.Query. 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 File: SelectAutomappedBuilder.java    From rxjava2-jdbc with 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();
}