private String buildSelectSQL ( boolean addOrderBy ) { SQLParams sqlParams = SQLParams . builder ( ) . modelClass ( this . modelClass ) . selectColumns ( this . selectColumns ) . tableName ( this . tableName ) . pkName ( this . primaryKeyColumn ) . conditionSQL ( this . conditionSQL ) . excludedColumns ( this . excludedColumns ) . isSQLLimit ( isSQLLimit ) . build ( ) ; ifThen ( addOrderBy , ( ) -> sqlParams . setOrderBy ( this . orderBySQL . toString ( ) ) ) ; return Anima . of ( ) . dialect ( ) . select ( sqlParams ) ; }
Build a select statement .