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

34 lines
641 B
Java
Raw Normal View History

package com.minres.scviewer.database.sqlite;
2015-01-06 17:14:16 +01:00
import com.minres.scviewer.database.ITxRelation;
import com.minres.scviewer.database.ITx;
import com.minres.scviewer.database.RelationType;
2015-01-06 17:14:16 +01:00
public class TxRelation implements ITxRelation {
RelationType relationType;
2015-01-06 17:14:16 +01:00
Tx source, target;
2015-01-06 17:14:16 +01:00
public TxRelation(RelationType relationType, Tx source, Tx target) {
this.source = source;
this.target = target;
this.relationType = relationType;
}
@Override
public RelationType getRelationType() {
return relationType;
}
@Override
2015-01-06 17:14:16 +01:00
public ITx getSource() {
return source;
}
@Override
2015-01-06 17:14:16 +01:00
public ITx getTarget() {
return target;
}
}