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

Method getJoin

src/src/com/orm/androrm/field/ManyToManyField.java:87–95  ·  view source on GitHub ↗
(String leftAlias, String rightAlias, int id)

Source from the content-addressed store, hash-verified

85 }
86
87 private JoinStatement getJoin(String leftAlias, String rightAlias, int id) {
88 JoinStatement join = new JoinStatement();
89
90 join.left(DatabaseBuilder.getTableName(mTargetClass), leftAlias)
91 .right(getRightJoinSide(id), rightAlias)
92 .on(Model.PK, DatabaseBuilder.getTableName(mTargetClass));
93
94 return join;
95 }
96
97 public ForeignKeyField<L> getLeftLinkDescriptor() {
98 return new ForeignKeyField<L>(mOriginClass);

Callers 1

getQueryMethod · 0.95

Calls 5

leftMethod · 0.95
getTableNameMethod · 0.95
getRightJoinSideMethod · 0.95
onMethod · 0.80
rightMethod · 0.80

Tested by

no test coverage detected