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

org.ontoware.rdf2go.model.Commitable Maven / Gradle / Ivy

Go to download

RDF2go is an implementation-independent Java API with the design goals: portability (hence the name), performance and ease of implementation. This project was started at FZI Forschungszentrum Informatik Karlsruhe, Germany - www.fzi.de

The newest version!
/**
 * LICENSE INFORMATION
 * 
 * Copyright 2005-2008 by FZI (http://www.fzi.de). Licensed under a BSD license
 * (http://www.opensource.org/licenses/bsd-license.php)  = Max Völkel
 *  = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe,
 * Germany  = 2010
 * 
 * Further project information at http://semanticweb.org/wiki/RDF2Go
 */

package org.ontoware.rdf2go.model;

import org.ontoware.rdf2go.exception.ModelRuntimeException;


/**
 * Defining how and when changes are commit to underlying persistence layer.
 * 
 * @author voelkel
 * 
 * @deprecated Due to confusing the semantics of this "commit" (which is rather
 *             a flush) with DB-semantics and due to the poor benefit of having
 *             flush.
 */
@Deprecated
public interface Commitable {
	
	/**
	 * Writes all changes to underlying persistence layer - if such a layer is
	 * used by the implementation. Otherwise nothing happens.
	 * 
	 * @throws ModelRuntimeException if the commit could not be executed
	 */
	@Deprecated
	public void commit() throws ModelRuntimeException;
	
	/**
	 * 
	 * The default value is true.
	 * 
	 * @param autocommit If true, all changes are immediately written to the
	 *            underlying persistence layer, if any is used.
	 */
	@Deprecated
	public void setAutocommit(boolean autocommit);
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy