Skip to content

everit-org-archive/querydsl-support-ri

Repository files navigation

querydsl-support-ri

Reference implementation of querydsl-support-api.

Usage with Java 7

return querydslSupport.execute(new QuerydslCallable<Long>() {
     @Override
     public Long call(Connection connection, Configuration configuration) throws SQLException {
        QResource qResource = new QResource("qResource");
        SQLInsertClause insertClause = new SQLInsertClause(connection, configuration, qResource);
        return insertClause.executeWithKey(qResource.resourceId);
    }
});

Usage with Java 8

return querydslSupport.execute((connection, configuration) -> {
    QResource qResource = new QResource("qResource");
    SQLInsertClause insertClause = new SQLInsertClause(connection, configuration, qResource);
    return insertClause.executeWithKey(qResource.resourceId);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages