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

com.windowsazure.samples.blob.condition.CommonConditions Maven / Gradle / Ivy

Go to download

jpa4azure, implements a subset of the JPA specification using Azure Storage for pesisting beans. see http://jpa4azure.codeplex.com for more information.

The newest version!
package com.windowsazure.samples.blob.condition;

import java.util.Date;

import com.windowsazure.samples.blob.condition.Condition;
import com.windowsazure.samples.internal.util.Util;


public abstract class CommonConditions extends Condition {

	public void ifDoesntExist() {
		add(IF_NONE_MATCH, "*");
	}
	
	public void ifMatch(String etag) {
		add(IF_MATCH, etag);
	}
	
	public void ifModifiedSince(Date date) {
		add(IF_MODIFIED_SINCE, Util.dateToGmtString(date));
	}
	
	public void ifNoneMatch(String etag) {
		add(IF_NONE_MATCH, etag);
	}
	
	public void ifUnmodifiedSince(Date date) {
		add(IF_UNMODIFIED_SINCE, Util.dateToGmtString(date));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy