com.scalar.db.sql.statement.builder.ShowGrantsStatementBuilder Maven / Gradle / Ivy
The newest version!
package com.scalar.db.sql.statement.builder;
import com.scalar.db.sql.statement.ShowGrantsStatement;
import javax.annotation.Nullable;
public class ShowGrantsStatementBuilder {
private ShowGrantsStatementBuilder() {}
public static class Start extends Buildable {
Start() {
super(null);
}
/**
* Sets the username to show grants.
*
* @param username - the username to show grants
* @return this object
*/
public Buildable forUser(String username) {
return new Buildable(username);
}
}
public static class Buildable {
@Nullable private final String username;
private Buildable(@Nullable String username) {
this.username = username;
}
/**
* Builds a ShowGrantsStatement object.
*
* @return a ShowGrantsStatement object
*/
public ShowGrantsStatement build() {
return ShowGrantsStatement.create(username);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy