title: Java Data PageRequest ColumnName and SortOrder in Strings
body: <p>How do I get Column Name and Order property strings in Java PageRequest ?</p>
  <pre><code>import org.springframework.data.domain.PageRequest;
  PageRequest pageRequest; 
  </code></pre>
  <p>After I set it in constructor,</p>
  <pre><code>PageRequest.of(0, 3, Sort.by(&quot;ProductName&quot;).descending());
  </code></pre>
  <p>What properties should I use in Java to get values from PageRequest object ?</p>
  <pre><code>getPageRequest().getSort() ??
  </code></pre>
  <p>I will eventually put values in SQL with NamedParameter JDBC Template:</p>
  <p><code>select * from dbo.Product Order by @ColumnName @SortOrder</code> <strong>Example</strong>:
  <code>select * from dbo.Order by ProductName desc</code></p>