@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;
}

@ 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 ; }
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 .
