merja.associations
Class Transaction

java.lang.Object
  extended bymerja.associations.Transaction

public class Transaction
extends java.lang.Object


Constructor Summary
Transaction(Hash h)
           
 
Method Summary
 boolean addItemList(Item[] list)
           
 int[] getItemId()
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(Hash h)
Parameters:
h - table de correspondance qui permet de discretiser les items
Method Detail

addItemList

public boolean addItemList(Item[] list)
Parameters:
list - : liste d'Item correspondant à une transaction dans la base
Returns:
true si tous les items sont contenus dans la table de correspodance et que l'ajout c'est réalisé correctement
false si un item n'appartient pas à la table de correspodant et que la l'ajout n'a pas pu être réalisé

getItemId

public int[] getItemId()
Returns:
un tableau d'identifiant correspondant à la transaction
remarque : ce tableau est trié par ordre croissant

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns:
la représentation de la transaction : liste d'items avec leur identifiant