All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.reinaldoarrosi.android.querybuilder.sqlite.QueryBuildConfiguration Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy