io.github.sinri.keel.mysql.statement.templated.TemplatedReadStatement 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.AbstractReadStatement;
import io.vertx.core.Handler;
import javax.annotation.Nonnull;
/**
* @since 3.0.8
*/
public class TemplatedReadStatement extends AbstractReadStatement implements TemplatedStatement {
private final String templateSql;
private final TemplateArgumentMapping argumentMapping;
public TemplatedReadStatement(@Nonnull String templateSql) {
this.templateSql = templateSql;
this.argumentMapping = new TemplateArgumentMapping();
}
public TemplatedReadStatement bindArguments(@Nonnull Handler binder) {
binder.handle(this.argumentMapping);
return this;
}
@Override
public String toString() {
return this.build();
}
@Override
public String getSqlTemplate() {
return templateSql;
}
@Override
public TemplateArgumentMapping getArguments() {
return argumentMapping;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy