com.scalar.db.sql.statement.builder.ShowTablesStatementBuilder Maven / Gradle / Ivy
The newest version!
package com.scalar.db.sql.statement.builder;
import com.scalar.db.sql.statement.ShowTablesStatement;
import javax.annotation.Nullable;
public class ShowTablesStatementBuilder {
private ShowTablesStatementBuilder() {}
public static class Start extends Buildable {
Start() {
super(null);
}
/**
* Specify the target namespace.
*
* @param namespaceName the target namespace
* @return a builder object
*/
public Buildable from(String namespaceName) {
return new Buildable(namespaceName);
}
}
public static class Buildable {
@Nullable private final String namespaceName;
private Buildable(@Nullable String namespaceName) {
this.namespaceName = namespaceName;
}
/**
* Builds a ShowTablesStatement object.
*
* @return a ShowTablesStatement object
*/
public ShowTablesStatement build() {
return ShowTablesStatement.create(namespaceName);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy