com.reinaldoarrosi.android.querybuilder.sqlite.QueryBuildConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of query-builder Show documentation
Show all versions of query-builder Show documentation
Fluent Android library to build SQLite select statements
The newest version!
package com.reinaldoarrosi.android.querybuilder.sqlite;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
public class QueryBuildConfiguration {
private static final QueryBuildConfiguration current = new QueryBuildConfiguration();
public static QueryBuildConfiguration current() {
return current;
}
private DateTimeFormatter dateFormat = DateTimeFormat.forPattern("yyyy-MM-dd");
private DateTimeFormatter dateTimeFormat = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");
public DateTimeFormatter getDateFormat() {
return dateFormat;
}
public DateTimeFormatter getDateTimeFormat() {
return dateTimeFormat;
}
public void setDateFormat(String format) {
setDateFormat(DateTimeFormat.forPattern(format));
}
public void setDateTimeFormat(String format) {
setDateTimeFormat(DateTimeFormat.forPattern(format));
}
public void setDateFormat(DateTimeFormatter format) {
dateFormat = format;
}
public void setDateTimeFormat(DateTimeFormatter format) {
dateTimeFormat = format;
}
}