org.fluentjdbc.DatabaseInsertWithPkBuilder 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 org.fluentjdbc.util.ExceptionUtil;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
public class DatabaseInsertWithPkBuilder extends DatabaseStatement {
private DatabaseInsertBuilder insertBuilder;
private T idValue;
public DatabaseInsertWithPkBuilder(DatabaseInsertBuilder insertBuilder, T idValue) {
this.insertBuilder = insertBuilder;
this.idValue = idValue;
}
public DatabaseInsertWithPkBuilder setField(String fieldName, Object parameter) {
insertBuilder.setField(fieldName, parameter);
return this;
}
public DatabaseInsertWithPkBuilder setFields(List fields, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy