2012-06-17 20:34:50 +02:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2012 IT Just working.
|
|
|
|
* 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:
|
|
|
|
* IT Just working - initial API and implementation
|
|
|
|
*******************************************************************************/
|
2012-06-17 19:53:05 +02:00
|
|
|
package com.itjw.txviewer.database.text
|
2012-06-17 20:34:50 +02:00
|
|
|
|
2015-01-01 23:17:32 +01:00
|
|
|
import java.util.Collection;
|
2012-06-17 19:53:05 +02:00
|
|
|
import java.util.Set
|
2015-01-01 23:17:32 +01:00
|
|
|
|
2012-06-17 19:53:05 +02:00
|
|
|
import com.itjw.txviewer.database.*
|
|
|
|
|
2015-01-01 23:17:32 +01:00
|
|
|
class Transaction implements ITransaction {
|
|
|
|
|
2012-06-17 19:53:05 +02:00
|
|
|
Long id
|
2015-01-01 23:17:32 +01:00
|
|
|
|
2012-06-17 19:53:05 +02:00
|
|
|
TrGenerator generator
|
2015-01-01 23:17:32 +01:00
|
|
|
|
|
|
|
TrStream stream
|
|
|
|
|
2012-06-17 19:53:05 +02:00
|
|
|
EventTime beginTime
|
2015-01-01 23:17:32 +01:00
|
|
|
|
2012-06-17 19:53:05 +02:00
|
|
|
EventTime endTime
|
2015-01-01 23:17:32 +01:00
|
|
|
|
2012-06-17 19:53:05 +02:00
|
|
|
ArrayList<ITrAttribute> attributes = new ArrayList<ITrAttribute>()
|
|
|
|
|
2015-01-01 23:17:32 +01:00
|
|
|
def incomingRelations =[]
|
|
|
|
|
|
|
|
def outgoingRelations =[]
|
|
|
|
|
|
|
|
Transaction(int id, TrStream stream, TrGenerator generator, EventTime begin){
|
2012-06-17 19:53:05 +02:00
|
|
|
this.id=id
|
|
|
|
this.generator=generator
|
|
|
|
this.beginTime=begin
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-01-01 23:17:32 +01:00
|
|
|
public Collection<ITrRelation> getIncomingRelations() {
|
|
|
|
return incomingRelations;
|
2012-06-17 19:53:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-01-01 23:17:32 +01:00
|
|
|
public Collection<ITrRelation> getOutgoingRelations() {
|
|
|
|
return outgoingRelations;
|
2012-06-17 19:53:05 +02:00
|
|
|
}
|
2015-01-01 23:17:32 +01:00
|
|
|
|
2012-06-17 19:53:05 +02:00
|
|
|
}
|