45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
/*******************************************************************************
|
|
* Copyright (c) 2015-2021 MINRES Technologies GmbH and others.
|
|
* 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
|
|
*******************************************************************************/
|
|
package com.minres.scviewer.database.sqlite;
|
|
|
|
import com.minres.scviewer.database.RelationType;
|
|
import com.minres.scviewer.database.tx.ITx;
|
|
import com.minres.scviewer.database.tx.ITxRelation;
|
|
|
|
public class TxRelation implements ITxRelation {
|
|
|
|
RelationType relationType;
|
|
Tx source;
|
|
Tx target;
|
|
|
|
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;
|
|
}
|
|
|
|
}
|