/** * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.CreateTable} builder * * @param keyspace the keyspace for the table to create * @param table the table name * @return the create table builder */ public static CreateTable create(String keyspace, String table) { return new CreateTable(keyspace, table); }
/** * {@inheritDoc} */ @Override public String toString() { return getQueryString(); }
/** * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.AlterTable} builder * * @param keyspace the keyspace for the table to create * @param table the table name * @return the create table builder */ public static AlterTable alter(String keyspace, String table) { return new AlterTable(keyspace, table); }
/** * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.DropTable} statement * * @param keyspace the keyspace for the table to create * @param table the table name * @return the drop table builder */ public static DropTable drop(String keyspace, String table) { return new DropTable(keyspace, table); }
/** * {@inheritDoc} */ @Override public String toString() { return getQueryString(); }
/** * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.CreateTable} builder * * @param keyspace the keyspace for the table to create * @param table the table name * @return the create table builder */ public static CreateTable create(String keyspace, String table) { return new CreateTable(keyspace, table); }
/** * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.AlterTable} builder * * @param keyspace the keyspace for the table to create * @param table the table name * @return the create table builder */ public static AlterTable alter(String keyspace, String table) { return new AlterTable(keyspace, table); }
/** * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.DropTable} statement * * @param keyspace the keyspace for the table to create * @param table the table name * @return the drop table builder */ public static DropTable drop(String keyspace, String table) { return new DropTable(keyspace, table); }
public AlterTable dropColumn(String column) { dropColumn = new Column(column, null, false); return this; }
/** * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.CreateTable} builder * * @param keyspace the keyspace for the table to create * @param table the table name * @return the create table builder */ public static CreateTable create(String keyspace, String table) { return new CreateTable(keyspace, table); }
public AlterTable addColumn(String column, String type) { addColumn = new Column(column, type, false); return this; }