Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Jun 2, 2017
1 parent 6a837e8 commit 068ec5d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ public static final SqlDocumentOrderByBuilder newInstance(final SqlEntityBinding
{
return new SqlDocumentOrderByBuilder(entityBinding::getFieldOrderBy);
}

public static final SqlDocumentOrderByBuilder newInstance(final SqlOrderByBindings bindings)
{
return new SqlDocumentOrderByBuilder(bindings);
}


public static interface SqlOrderByBindings
{
IStringExpression getFieldOrderBy(String fieldName);
Expand All @@ -54,7 +53,10 @@ private SqlDocumentOrderByBuilder(@NonNull final SqlOrderByBindings bindings)
{
this.bindings = bindings;
}


/**
* @return SQL order by (e.g. Column1 ASC, Column2 DESC)
*/
public IStringExpression buildSqlOrderBy(final List<DocumentQueryOrderBy> orderBys)
{
if (orderBys.isEmpty())
Expand All @@ -70,7 +72,7 @@ public IStringExpression buildSqlOrderBy(final List<DocumentQueryOrderBy> orderB

return sqlOrderByFinal;
}

private final IStringExpression buildSqlOrderBy(final DocumentQueryOrderBy orderBy)
{
final String fieldName = orderBy.getFieldName();
Expand Down

0 comments on commit 068ec5d

Please sign in to comment.