@Override public String toCodeString(LocationTypeEnum theEnum) { return theEnum.getCode(); }
@Override public String toSystemString(LocationTypeEnum theEnum) { return theEnum.getSystem(); }
@Override public void buildQuery(LocationSearchCriteria criteria, IQuery<Bundle> query) { super.buildQuery(criteria, query); if (criteria.getType() != null) { query.where(Location.TYPE.exactly().code(criteria.getType().getCode())); } if (criteria.getStatus() != null) { query.where(Location.STATUS.exactly().code(criteria.getStatus().getCode())); } if (criteria.getName() != null) { query.where(Location.NAME.matches().value(criteria.getName())); } }