2015-01-03 16:34:32 +01:00
|
|
|
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;
|
2015-01-03 16:34:32 +01:00
|
|
|
import com.minres.scviewer.database.sqlite.tables.ScvGenerator;
|
|
|
|
|
2015-01-06 17:14:16 +01:00
|
|
|
public class TxGenerator implements ITxGenerator {
|
2015-01-03 16:34:32 +01:00
|
|
|
|
2015-01-20 18:50:15 +01:00
|
|
|
private ITxStream<ITxEvent> stream;
|
2015-01-03 16:34:32 +01:00
|
|
|
private ScvGenerator scvGenerator;
|
2015-01-20 18:50:15 +01:00
|
|
|
public TxGenerator(ITxStream<ITxEvent> stream, ScvGenerator scvGenerator) {
|
2015-01-03 16:34:32 +01:00
|
|
|
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() {
|
2015-01-03 16:34:32 +01:00
|
|
|
return stream;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName() {
|
|
|
|
return scvGenerator.getName();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-01-06 17:14:16 +01:00
|
|
|
public List<ITx> getTransactions() {
|
2015-01-03 16:34:32 +01:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|