class QueryResourceConverter extends DataSourceHolderResourceConverter<Query, ClientQuery> {

    @Override
    protected Query resourceSpecificFieldsToServer(ClientQuery clientObject, Query resultToUpdate, List<Exception> exceptions, ToServerConversionOptions options) throws IllegalParameterValueException {
        resultToUpdate.setSql(clientObject.getValue());
        resultToUpdate.setLanguage(clientObject.getLanguage());
        return resultToUpdate;
    }

}