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

44 lines
1.2 KiB
Java
Raw Normal View History

/*******************************************************************************
2015-10-22 00:25:12 +02:00
* Copyright (c) 2015 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;
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;
}
}