eu.drus.jpa.unit.neo4j.operation.AbstractNeo4JOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa-unit-neo4j Show documentation
Show all versions of jpa-unit-neo4j Show documentation
JUnit extension for simple testing of JPA entities and components
The newest version!
package eu.drus.jpa.unit.neo4j.operation;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public abstract class AbstractNeo4JOperation implements Neo4JOperation {
protected void executeQuery(final Connection connection, final String query) throws SQLException {
try (PreparedStatement ps = connection.prepareStatement(query)) {
try (ResultSet rs = ps.executeQuery()) { /* nothing to do */ }
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy