org.jsimpledb.kv.simple.XMLKVTransaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-kv-simple Show documentation
Show all versions of jsimpledb-kv-simple Show documentation
A couple of simplistic JSimpleDB key/value store implementations.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.kv.simple;
/**
* Transaction associated with a {@link XMLKVDatabase}.
*/
public class XMLKVTransaction extends SimpleKVTransaction {
private final int generation;
XMLKVTransaction(XMLKVDatabase database, long waitTimeout, int generation) {
super(database, waitTimeout);
this.generation = generation;
}
/**
* Get the generation number associated with this instance.
*
* @return the generation number on which this transaction is based
* @see XMLKVDatabase#getGeneration
*/
public int getGeneration() {
return this.generation;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy