Rename Criteria's toSql to getRepresentation to decouple from SQLite.