/******************************************************************************* * Copyright (c) 2014, 2015 MINRES Technologies GmbH and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * MINRES Technologies GmbH - initial API and implementation *******************************************************************************/ package com.minres.scviewer.database.sqlite; import java.util.List; import com.minres.scviewer.database.ITx; import com.minres.scviewer.database.ITxEvent; import com.minres.scviewer.database.ITxGenerator; import com.minres.scviewer.database.ITxStream; import com.minres.scviewer.database.sqlite.tables.ScvGenerator; public class TxGenerator implements ITxGenerator { private ITxStream stream; private ScvGenerator scvGenerator; public TxGenerator(ITxStream stream, ScvGenerator scvGenerator) { this.stream=stream; this.scvGenerator=scvGenerator; } @Override public Long getId() { return (long) scvGenerator.getId(); } @Override public ITxStream getStream() { return stream; } @Override public String getName() { return scvGenerator.getName(); } @Override public List getTransactions() { return null; } }