43 lines
792 B
Java
43 lines
792 B
Java
package com.minres.scviewer.database.text;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import com.minres.scviewer.database.RelationType;
|
|
import com.minres.scviewer.database.tx.ITx;
|
|
import com.minres.scviewer.database.tx.ITxRelation;
|
|
|
|
class TxRelation implements ITxRelation, Serializable {
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = -347668857680574140L;
|
|
|
|
final Tx source;
|
|
|
|
final Tx target;
|
|
|
|
final RelationType relationType;
|
|
|
|
public TxRelation(RelationType relationType, Tx source, Tx target) {
|
|
this.source = source;
|
|
this.target = target;
|
|
this.relationType = relationType;
|
|
}
|
|
|
|
@Override
|
|
public RelationType getRelationType() {
|
|
return relationType;
|
|
}
|
|
|
|
@Override
|
|
public ITx getSource() {
|
|
return source;
|
|
}
|
|
|
|
@Override
|
|
public ITx getTarget() {
|
|
return target;
|
|
}
|
|
|
|
}
|