34 lines
691 B
Java
34 lines
691 B
Java
package com.minres.scviewer.database.sqlite;
|
|
|
|
import com.minres.scviewer.database.ITrRelation;
|
|
import com.minres.scviewer.database.ITransaction;
|
|
import com.minres.scviewer.database.RelationType;
|
|
|
|
public class Relation implements ITrRelation {
|
|
|
|
RelationType relationType;
|
|
Transaction source, target;
|
|
|
|
public Relation(RelationType relationType, Transaction source, Transaction target) {
|
|
this.source = source;
|
|
this.target = target;
|
|
this.relationType = relationType;
|
|
}
|
|
|
|
@Override
|
|
public RelationType getRelationType() {
|
|
return relationType;
|
|
}
|
|
|
|
@Override
|
|
public ITransaction getSource() {
|
|
return source;
|
|
}
|
|
|
|
@Override
|
|
public ITransaction getTarget() {
|
|
return target;
|
|
}
|
|
|
|
}
|