org.fluentjdbc.DatabaseSaveBuilderWithLong Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-jdbc Show documentation
Show all versions of fluent-jdbc Show documentation
A Java library used to execute JDBC statements and build SQL
package org.fluentjdbc;
import java.sql.Connection;
public class DatabaseSaveBuilderWithLong extends DatabaseSaveBuilder {
DatabaseSaveBuilderWithLong(DatabaseTable table, String idField, Long id) {
super(table, idField, id);
}
@Override
protected Long insert(Connection connection) {
return table.insert()
.setPrimaryKey(idField, idValue)
.setFields(fields, values)
.setFields(uniqueKeyFields, uniqueKeyValues)
.execute(connection);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy