code: public List<ExtendedRelation> getTableRelations(String table)
  			throws SQLException {
  
  		QueryBuilder<ExtendedRelation, Long> qb = queryBuilder();
  		qb.where().like(ExtendedRelation.COLUMN_BASE_TABLE_NAME, table).or()
  				.like(ExtendedRelation.COLUMN_RELATED_TABLE_NAME, table);
  		PreparedQuery<ExtendedRelation> preparedQuery = qb.prepare();
  
  		return query(preparedQuery);
  	}
docs: Get the relations to the table, both base table and related table
  
  @param table
  table name
  @return extended relations
  @throws SQLException
  upon failure