2015-01-21 21:58:35 +01:00
|
|
|
/*******************************************************************************
|
2021-01-09 14:26:49 +01:00
|
|
|
* Copyright (c) 2015-2021 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 com.minres.scviewer.database.RelationType;
|
2020-11-28 14:47:43 +01:00
|
|
|
import com.minres.scviewer.database.tx.ITx;
|
|
|
|
import com.minres.scviewer.database.tx.ITxRelation;
|
2015-01-03 16:34:32 +01:00
|
|
|
|
2015-01-06 17:14:16 +01:00
|
|
|
public class TxRelation implements ITxRelation {
|
2015-01-03 16:34:32 +01:00
|
|
|
|
|
|
|
RelationType relationType;
|
2020-11-29 10:25:48 +01:00
|
|
|
Tx source;
|
|
|
|
Tx target;
|
2015-01-03 16:34:32 +01:00
|
|
|
|
2015-01-06 17:14:16 +01:00
|
|
|
public TxRelation(RelationType relationType, Tx source, Tx target) {
|
2015-01-03 16:34:32 +01:00
|
|
|
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() {
|
2015-01-03 16:34:32 +01:00
|
|
|
return source;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-01-06 17:14:16 +01:00
|
|
|
public ITx getTarget() {
|
2015-01-03 16:34:32 +01:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|