SCViewer/com.minres.scviewer.databas.../src/com/minres/scviewer/database/sqlite/TxGenerator.java

53 lines
1.4 KiB
Java
Raw Normal View History

/*******************************************************************************
2015-10-22 00:25:12 +02:00
* Copyright (c) 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;
2015-01-20 18:50:15 +01:00
import com.minres.scviewer.database.ITx;
import com.minres.scviewer.database.ITxEvent;
2015-01-06 17:14:16 +01:00
import com.minres.scviewer.database.ITxGenerator;
import com.minres.scviewer.database.ITxStream;
import com.minres.scviewer.database.sqlite.tables.ScvGenerator;
2015-01-06 17:14:16 +01:00
public class TxGenerator implements ITxGenerator {
2015-01-20 18:50:15 +01:00
private ITxStream<ITxEvent> stream;
private ScvGenerator scvGenerator;
2015-01-20 18:50:15 +01:00
public TxGenerator(ITxStream<ITxEvent> stream, ScvGenerator scvGenerator) {
this.stream=stream;
this.scvGenerator=scvGenerator;
}
@Override
public Long getId() {
return (long) scvGenerator.getId();
}
@Override
2015-01-20 18:50:15 +01:00
public ITxStream<ITxEvent> getStream() {
return stream;
}
@Override
public String getName() {
return scvGenerator.getName();
}
@Override
2015-01-06 17:14:16 +01:00
public List<ITx> getTransactions() {
return null;
}
}