Skip to content

Instantly share code, notes, and snippets.

@musketyr
Created June 20, 2011 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save musketyr/1035212 to your computer and use it in GitHub Desktop.
Save musketyr/1035212 to your computer and use it in GitHub Desktop.
@Canonical
class OrderBuilder{
QueryBuilder queryBuilder
QueryBuilder column(int position){
queryBuilder.order = '' + position
queryBuilder
}
QueryBuilder column(String column){
queryBuilder.order = 'column:' + column?.replaceAll(/\s+/,'')?.toLowerCase()
queryBuilder
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment