question: @ SuppressWarnings ( "unused" ) @ Deprecated private boolean isDataExists ( DataSupport baseObj , DataSupport associatedModel ) { boolean exists = false ; SQLiteDatabase db = Connector . getDatabase ( ) ; Cursor cursor = null ; try { cursor = db . query ( getJoinTableName ( baseObj , associatedModel ) , null , getSelection ( baseObj , associatedModel ) , getSelectionArgs ( baseObj , associatedModel ) , null , null , null ) ; exists = cursor . getCount ( ) > 0 ; } catch ( Exception e ) { e . printStackTrace ( ) ; return true ; } finally { cursor . close ( ) ; } return exists ; }
target:  Check if the associations between self model and associated model is already saved into intermediate join table.<br> Make sure baseObj and associatedModel are saved already, or the result might be wrong.