Skip to content

Instantly share code, notes, and snippets.

View victorman's full-sized avatar

Victor victorman

View GitHub Profile
@victorman
victorman / Contract and Entry classes
Last active August 17, 2017 23:13
Templates for SQLite database contract and helper classes. To add these go to File > New > Edit File Templates... . In the Templates tab click the + icon. Give an appropriate name and paste the code in below. To use just go File > New > Your Template.
package ${PACKAGE_NAME};
#parse("File Header.java")
public class ${NAME} {
public ${NAME}() {}
public static class ${ENTRY_CLASS} implements BaseColumns {
public static final String TABLE_NAME = "${TABLE_NAME}";
public static final String COLUMN_NAME_CREATED = "date_created";
}