io.github.sinri.keel.mysql.statement.templated.TemplatedModifyStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Keel Show documentation
Show all versions of Keel Show documentation
A website framework with VERT.X for ex-PHP-ers, exactly Ark Framework Users.
The newest version!
package io.github.sinri.keel.mysql.statement.templated;
import io.github.sinri.keel.mysql.statement.AbstractModifyStatement;
import io.vertx.core.Handler;
import javax.annotation.Nonnull;
/**
* @since 3.0.8
*/
public class TemplatedModifyStatement extends AbstractModifyStatement implements TemplatedStatement {
private final String templateSql;
private final TemplateArgumentMapping argumentMapping;
public TemplatedModifyStatement(@Nonnull String templateSql) {
this.templateSql = templateSql;
this.argumentMapping = new TemplateArgumentMapping();
}
@Override
public String toString() {
return this.build();
}
@Override
public String getSqlTemplate() {
return this.templateSql;
}
@Override
public TemplateArgumentMapping getArguments() {
return argumentMapping;
}
public TemplatedModifyStatement bindArguments(@Nonnull Handler binder) {
binder.handle(this.argumentMapping);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy