public boolean doesTableExist(String table) throws DBException { //Validate this.validateConnection(table, "doesTableExist"); return this.cloudbMetaData.doesTableExist(table); }
public void createTable(String table) throws DBException { //Validate this.validateConnection(table, "createTable"); this.cloudbMetaData.createTable(table); }
public boolean isTableEmpty(String table) throws DBException { //Validate this.validateConnection(table, "isTableEmpty"); return this.cloudbMetaData.isTableEmpty(table); } //-----Record insertion--------------------------------------------------------------------------------------------------------------------
public void dropTable(String table) throws DBException { //Validate this.validateConnection(table, "dropTable"); if(table.equals(config_table)) { throw new DBException(this.getClass().getName(), "dropTable", new Object[]{table}, DBException.ERROR_CONFIG_TABLE_DELETE_NOT_ALLOWED); } this.cloudbMetaData.dropTable(table); } //Note: these are used by the core engine
public long selectCount(String from) throws DBException { //Validate this.validateConnection(from, "selectCount"); return this.cloudbMetaData.getCRUDProvider().selectCount(from); }
public Set<Record> selectByNotEquals(String from,String value) throws DBException { //Validate this.validateConnection(from, "selectByNotEquals"); return this.cloudbMetaData.getCRUDProvider().selectByNotEquals(from,value); }
public Cursor searchExactMatchAND(String from, GenericAttributeManager criteria) throws DBException { //Validate this.validateConnection(from, "searchExactMatchAND"); return this.cloudbMetaData.getCRUDProvider().searchExactMatchAND(from, criteria); }
public Set<Record> selectByContains(String from,String value) throws DBException { //Validate this.validateConnection(from, "selectByContains"); return this.cloudbMetaData.getCRUDProvider().selectByContains(from,value); }
public Cursor readByName(String table,String name) throws DBException { //Validate this.validateConnection(table, "readByName"); return this.cloudbMetaData.getCRUDProvider().readByName(table,name); }
public Cursor readByNameValuePair(String from,String name,String value) throws DBException { //Validate this.validateConnection(from, "readByNameValuePair"); return this.cloudbMetaData.getCRUDProvider().readByNameValuePair(from,name,value); }
public Cursor searchExactMatchOR(String from, GenericAttributeManager criteria) throws DBException { //Validate this.validateConnection(from, "searchExactMatchOR"); return this.cloudbMetaData.getCRUDProvider().searchExactMatchOR(from, criteria); } //--------Validation methods-----------------------------------------------------------------------------------------
public String insert(String into, Record record) throws DBException { //Validate this.validateConnection(into, "insert"); return this.cloudbMetaData.getCRUDProvider().insert(into, record); }
public Record select(String from, String recordId) throws DBException { //Validate this.validateConnection(from, "select"); return this.cloudbMetaData.getCRUDProvider().select(from, recordId); }
public Set<Record> select(String from, String name, String value) throws DBException { //Validate this.validateConnection(from, "selectWithWhereClause"); return this.cloudbMetaData.getCRUDProvider().select(from, name, value); }
public Cursor readProxyCursor(String from) throws DBException { //Validate this.validateConnection(from, "readProxyCursor"); return this.cloudbMetaData.getCRUDProvider().readProxyCursor(from); }
/** * Seleciona todos os registros da tabela. * * @param from tabela cujo os registros serão selecionados. * @param ordered <code>true</code> se os registros devem estar na mesma ordem obtida do banco de dados ou <code>false</code> * se a ordem dos registros não importar. * @return os registros selecionados. */ public Set<Record> selectAll(String from, boolean ordered) throws DBException { this.validateConnection(from, "selectAll"); return this.cloudbMetaData.getCRUDProvider().selectAll(from, ordered); }
public Set<Record> selectByValue(String from,String value) throws DBException { //Validate this.validateConnection(from, "selectByValue"); return this.cloudbMetaData.getCRUDProvider().selectByValue(from,value); }
public void delete(String table, Record record) throws DBException { //Validate this.validateConnection(table, "delete"); this.cloudbMetaData.getCRUDProvider().delete(table, record); }
public void deleteAll(String table) throws DBException { //Validate this.validateConnection(table, "deleteAll"); this.cloudbMetaData.getCRUDProvider().deleteAll(table); }
public Cursor readByName(String table,String name,boolean sortAscending) throws DBException { //Validate this.validateConnection(table, "readByName/sort"); return this.cloudbMetaData.getCRUDProvider().readByName(table,name,sortAscending); }