/** * Adds the table to select from. * * @param keyspace the name of the keyspace to select from. * @param table the name of the table to select from. * @return a newly built SELECT statement that selects from {@code keyspace.table}. */ @Override public Select from(String keyspace, String table) { if (previousSelection != null) addName(previousSelection); return super.from(keyspace, table); }
/** * Adds the table to select from. * * @param table the table to select from. * @return a newly built SELECT statement that selects from {@code table}. */ @Override public Select from(TableMetadata table) { if (previousSelection != null) addName(previousSelection); return super.from(table); } }
/** * Adds an alias for the just selected item. * * @param alias the name of the alias to use. * @return this in-build SELECT statement */ public Selection as(String alias) { assert previousSelection != null; Object a = new Utils.Alias(previousSelection, alias); previousSelection = null; return addName(a); }
private SelectionOrAlias queueName(Object name) { if (previousSelection != null) addName(previousSelection); previousSelection = name; return this; }
private SelectionOrAlias queueName(Object name) { if (previousSelection != null) addName(previousSelection); previousSelection = name; return this; }
/** * Adds an alias for the just selected item. * * @param alias the name of the alias to use. * @return this in-build SELECT statement */ public Selection as(String alias) { assert previousSelection != null; Object a = new Utils.Alias(previousSelection, alias); previousSelection = null; return addName(a); }
@Override public Select from(String keyspace, String table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(keyspace, table); }
/** * Adds an alias for the just selected item. * * @param alias the name of the alias to use. * @return this in-build SELECT statement */ public Selection as(String alias) { assert previousSelection != null; Object a = new Utils.Alias(previousSelection, alias); previousSelection = null; return addName(a); }
/** * Adds an alias for the just selected item. * * @param alias the name of the alias to use. * @return this in-build SELECT statement */ public Selection as(String alias) { assert previousSelection != null; Object a = new Utils.Alias(previousSelection, alias); previousSelection = null; return addName(a); }
@Override public Select from(TableMetadata table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(table); } }
@Override public Select from(String keyspace, String table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(keyspace, table); }
private SelectionOrAlias queueName(Object name) { if (previousSelection != null) addName(previousSelection); previousSelection = name; return this; }
@Override public Select from(String keyspace, String table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(keyspace, table); }
private SelectionOrAlias queueName(Object name) { if (previousSelection != null) addName(previousSelection); previousSelection = name; return this; }
@Override public Select from(TableMetadata table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(table); } }
@Override public Select from(TableMetadata table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(table); } }
/** * Adds an alias for the just selected item. * * @param alias the name of the alias to use. * @return this in-build SELECT statement */ public Selection as(String alias) { assert previousSelection != null; Object a = new Utils.Alias(previousSelection, alias); previousSelection = null; return addName(a); }
@Override public Select from(String keyspace, String table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(keyspace, table); }
private SelectionOrAlias queueName(Object name) { if (previousSelection != null) addName(previousSelection); previousSelection = name; return this; }
@Override public Select from(TableMetadata table) { if (previousSelection != null) addName(previousSelection); previousSelection = null; return super.from(table); } }