Skip to content

Instantly share code, notes, and snippets.

View mkalkov's full-sized avatar

Mikhail Kalkov mkalkov

  • AB Volvo
  • Gothenburg
View GitHub Profile
@mkalkov
mkalkov / QueryBuilderExample.java
Created February 9, 2018 10:19
SQL query builde example
public final class SearchCriteria {
public enum Criterion {
KUNDREF("kundRef"),
LANSTILLHORIGHET("lanstillhorighet"),
STODAR("stodar");
// I only needed column name, no datatypes here
private final String columnName;
@mkalkov
mkalkov / MyParser.java
Last active May 31, 2017 11:01
Simple example to demonstrate issue
package se.sjv.jorden.datachange;
import com.google.common.base.Preconditions;
public class MyParser {
public static void main(final String[] args) {
final MyParser myParser = new MyParser();
Preconditions.checkArgument(args.length == 1, "Incorrect number of arguments.");