org.ontoware.rdf2go.model
Interface Commitable

All Known Subinterfaces:
Model, ModelSet

public interface Commitable

Defining how and when changes are commit to underlying persistence layer.

Author:
voelkel

Method Summary
 void commit()
          Writes all changes to underlying persistence layer - if such a layer is used by the implementation.
 void setAutocommit(boolean autocommit)
          The default value is true.
 

Method Detail

commit

void commit()
            throws ModelRuntimeException
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

setAutocommit

void setAutocommit(boolean autocommit)
The default value is true.

Parameters:
autocommit - If true, all changes are immediately written to the underlying persistence layer, if any is used.


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.