40 lines
802 B
Java
40 lines
802 B
Java
package com.minres.scviewer.database.sqlite;
|
|
|
|
import java.util.List;
|
|
|
|
import com.minres.scviewer.database.ITxGenerator;
|
|
import com.minres.scviewer.database.ITxStream;
|
|
import com.minres.scviewer.database.ITx;
|
|
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<ITx> getTransactions() {
|
|
return null;
|
|
}
|
|
|
|
}
|