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

41 lines
878 B
Java
Raw Normal View History

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;
}
}