@Test public void shouldGenerateSqlWithParameters() { a(Person.where("name = ? AND last_name = ?", "John", "Doe").toSql(true) .endsWith(", with parameters: John, Doe")).shouldBeTrue(); }
public String toSql() { return toSql(true); }
LazyList extends AbstractLazyList<T> implements Externalizable { public String toSql() { return toSql(true); } }
LazyList extends AbstractLazyList<T> implements Externalizable { public String toSql() { return toSql(true); } protected  LazyList(String subQuery, MetaModel metaModel, Object... params); protected  LazyList(boolean forPaginator, MetaModel metaModel, String fullQuery, Object... params); protected  LazyList(); }
LazyList extends AbstractLazyList<T> implements Externalizable { public String toSql() { return toSql(true); } protected  LazyList(String subQuery, MetaModel metaModel, Object... params); protected  LazyList(boolean forPaginator, MetaModel metaModel, String fullQuery, Object... params); protected  LazyList(); LazyList<E> limit(long limit); LazyList<E> offset(long offset); LazyList<E> orderBy(String orderBy); LazyList<E> include(Class<? extends Model>... classes); List<Map<String, Object>> toMaps(); String toXml(boolean pretty, boolean declaration, String... attrs); String toJson(boolean pretty, String ... attrs); LazyList<E> load(); String toSql(); String toSql(boolean showParameters); List collect(String attributeName); Set collectDistinct(String attributeName); List collect(String attributeName, String filterAttribute, Object filterValue); Set collectDistinct(String attributeName, String filterAttribute, Object filterValue); void dump(); void dump(OutputStream out); @Override void writeExternal(ObjectOutput out); @Override @SuppressWarnings("unchecked") void readExternal(ObjectInput in); }
LazyList extends AbstractLazyList<T> implements Externalizable { public String toSql() { return toSql(true); } protected  LazyList(String subQuery, MetaModel metaModel, Object... params); protected  LazyList(boolean forPaginator, MetaModel metaModel, String fullQuery, Object... params); protected  LazyList(); LazyList<E> limit(long limit); LazyList<E> offset(long offset); LazyList<E> orderBy(String orderBy); LazyList<E> include(Class<? extends Model>... classes); List<Map<String, Object>> toMaps(); String toXml(boolean pretty, boolean declaration, String... attrs); String toJson(boolean pretty, String ... attrs); LazyList<E> load(); String toSql(); String toSql(boolean showParameters); List collect(String attributeName); Set collectDistinct(String attributeName); List collect(String attributeName, String filterAttribute, Object filterValue); Set collectDistinct(String attributeName, String filterAttribute, Object filterValue); void dump(); void dump(OutputStream out); @Override void writeExternal(ObjectOutput out); @Override @SuppressWarnings("unchecked") void readExternal(ObjectInput in);  }