org.everit.persistence:org.everit.persistence.querydsl.support.ri

Main (configuration) project for maven based Everit OpenSource solutions

License

License

Categories

Categories

Querydsl Data Databases
GroupId

GroupId

org.everit.persistence
ArtifactId

ArtifactId

org.everit.persistence.querydsl.support.ri
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

bundle
Description

Description

Main (configuration) project for maven based Everit OpenSource solutions
Project URL

Project URL

https://github.com/everit-org/querydsl-support-ri
Project Organization

Project Organization

Everit Kft.
Source Code Management

Source Code Management

https://github.com/everit-org/querydsl-support-ri

Download org.everit.persistence.querydsl.support.ri

Dependencies

compile (1)

Group / Artifact Type Version
org.everit.persistence : org.everit.persistence.querydsl.support.api jar 1.0.0

Project Modules

There are no modules declared in this project.

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);
});
org.everit.persistence

Everit Kft.

Open source projects of Everit Kft.

Versions

Version
1.0.0