public Set<Equality> getInstanceSet() throws ModelException { JDBCHandler handler = JDBCHandler.createInstance(CoreManager.instance().getActiveSchema().getConnection()); ResultSet result = handler.submitQuery( "SELECT DISTINCT " + this.getPhysicalName() + " FROM " + this.getDimension().getTableName()); Set<Equality> set = new HashSet<Equality>(); try { while (result.next()) set.add(new Equality(this, result.getObject(1))); } catch (SQLException e) { log.error(e.getMessage(), e); throw new ModelException(e.getMessage(), e); } return set; }