2015-01-21 21:58:35 +01:00
|
|
|
/*******************************************************************************
|
2015-10-22 00:25:12 +02:00
|
|
|
* Copyright (c) 2015 MINRES Technologies GmbH and others.
|
2015-01-21 21:58:35 +01:00
|
|
|
* 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
|
|
|
|
*******************************************************************************/
|
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-21 21:58:35 +01:00
|
|
|
|
2015-01-03 16:34:32 +01:00
|
|
|
private ScvGenerator scvGenerator;
|
2015-01-21 21:58:35 +01:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|