View Javadoc
1   package de.fhdw.wtf.persistence.meta;
2   
3   /**
4    * A class to represent a user transacton. User transactions are a subset of user Transactions implementing the
5    * Transaction interface and thererore could be used to manipulate data. The of an user transaction must have its
6    * abstract flag set.
7    * 
8    */
9   public class UserTransaction extends UserObject implements Transaction {
10  	
11  	/**
12  	 * Construtor for a new User Transaction. It should only be called from the Objectfacade to guarantee consistency
13  	 * with the database.
14  	 * 
15  	 * @param id
16  	 *            The Id of the User Transaction.
17  	 * @param instanceOf
18  	 *            A Type which has its instance of flag set.
19  	 */
20  	public UserTransaction(final long id, final Type instanceOf) {
21  		super(id, instanceOf);
22  	}
23  	
24  	@Override
25  	public boolean isTheSameAs(final java.lang.Object other) {
26  		if (!(other instanceof UserTransaction)) {
27  			return false;
28  		}
29  		
30  		return super.isTheSameAs(other);
31  	}
32  }