Skip to content

Instantly share code, notes, and snippets.

View plastiv's full-sized avatar

Sergii Pechenizkyi plastiv

View GitHub Profile
@plastiv
plastiv / QueryBuilder.java
Created July 23, 2013 14:28
Simple query builder to prevent mess in where statements. Base idea is: one operation for one line.
public class QueryBuilder {
private final StringBuilder sb;
public QueryBuilder() {
sb = new StringBuilder();
}
public QueryBuilder like(String columnName, String value) {