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

Method dropMany2ManyRel

src/com/odoo/orm/SQLHelper.java:119–128  ·  view source on GitHub ↗
(String model_first, String model_second)

Source from the content-addressed store, hash-verified

117 }
118
119 public String dropMany2ManyRel(String model_first, String model_second) {
120 String column_first = modelToTable(model_first);
121 String column_second = modelToTable(model_second);
122 String rel_table = column_first + "_" + column_second + "_rel";
123 StringBuffer sql = new StringBuffer();
124 sql.append("DROP TABLE IF EXISTS ");
125 sql.append(rel_table + ";");
126 Log.d("SQLHelper", "Table dropped : " + rel_table);
127 return sql.toString();
128 }
129
130 public List<String> dropTable(OEDBHelper db) {
131 List<String> queries = new ArrayList<String>();

Callers 1

dropTableMethod · 0.95

Calls 2

modelToTableMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected