app/src/main/java/db/juhaku/juhakudb/core/android/transaction/StoreTransactionTemplate.java
/**
     * Find middle table by model class and reference model class.
     * @param model Entity class that join is made from.
     * @param joinModel Entity class that join is made to.
     *
     * @return Schema found middle table or null if not found.
     *
     * @since 1.2.0
     *
     * @hide
     */
Find middle table by model class and reference model class.
@param model Entity class that join is made from.
@param joinModel Entity class that join is made to.

@return Schema found middle table or null if not found.



@hide
Find middle table by model class and reference model class . @param model Entity class that join is made from . @param joinModel Entity class that join is made to . @return Schema found middle table or null if not found . @hide
private Schema findMiddleTable(Class<?> model, Class<?> joinModel) {
        String tableName = resolveTableName(model);
        String joinTable = resolveTableName(joinModel);
        Schema middleTable;
        if ((middleTable = getSchema().getElement(tableName.concat("_").concat(joinTable))) == null) {
            middleTable = getSchema().getElement(joinTable.concat("_").concat(tableName));
        }
        return middleTable;
    }
private Schema findMiddleTable ( Class < ? > model , Class < ? > joinModel ) { String tableName = resolveTableName ( model ) ; String joinTable = resolveTableName ( joinModel ) ; Schema middleTable ; if ( ( middleTable = getSchema ( ) . getElement ( tableName . concat ( "_" ) . concat ( joinTable ) ) ) == null ) { middleTable = getSchema ( ) . getElement ( joinTable . concat ( "_" ) . concat ( tableName ) ) ; } return middleTable ; }
Find middle table by model class and reference model class.
Find middle table by model class and reference model class .