MCPcopy Create free account
hub / github.com/androrm/androrm / toString

Method toString

src/src/com/orm/androrm/TableDefinition.java:94–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 @Override
95 public String toString() {
96
97 String definitions = getFieldDefintions(mFields, false);
98
99 if(!mRelations.isEmpty()) {
100 definitions += ",";
101 definitions += getFieldDefintions(mRelations, true);
102 }
103
104 definitions = "CREATE TABLE IF NOT EXISTS `" + mTableName + "` (" + definitions + ");";
105
106 return definitions;
107 }
108}

Callers 4

testTableNameMethod · 0.95
testAddSimpleFieldMethod · 0.95
testForeignKeyFieldMethod · 0.95

Calls 2

getFieldDefintionsMethod · 0.95
isEmptyMethod · 0.80

Tested by 4

testTableNameMethod · 0.76
testAddSimpleFieldMethod · 0.76
testForeignKeyFieldMethod · 0.76