Skip to content

Instantly share code, notes, and snippets.

@leandrofavarin
leandrofavarin / A.java
Created May 2, 2017 21:21 — forked from philipphager/A.java
Delighting Leandro
@AutoValue public abstract class A implements AModel {
/**
* SQLDelight Factories contain all SQL statement that were defined in the
* corresponding A.sq file in form of a SQLDelightStatement.
+ They are a sort of prepared statement,
* that contain the actual SQL string and provide type safe mappings.
* A usage of the SQLDelightStatement is demonstrated in Repository.java.
* The Factory also provides mapper, that map a row inside a cursor result
* to a Java model.
* Therefore the Factory's constructor takes a creator, that knows how to build