MCPcopy Create free account
hub / github.com/Odoo-mobile/framework / hasTable

Method hasTable

src/com/odoo/orm/OESQLiteHelper.java:117–128  ·  view source on GitHub ↗
(String table_or_model)

Source from the content-addressed store, hash-verified

115 }
116
117 public boolean hasTable(String table_or_model) {
118 if (mDBTables.size() == 0)
119 setDBTables();
120 String table = table_or_model;
121 if (table_or_model.contains(".")) {
122 table = table_or_model.replaceAll("\\.", "_");
123 }
124 if (mDBTables.contains(table)) {
125 return true;
126 }
127 return false;
128 }
129
130 public boolean cleanUserRecords(String account_name) {
131 Log.d(TAG, "cleanUserRecords()");

Callers

nothing calls this directly

Calls 3

setDBTablesMethod · 0.95
sizeMethod · 0.80
containsMethod · 0.80

Tested by

no test coverage detected