it.unimi.dico.islab.idbs2.map.session
Class RelationManager

java.lang.Object
  extended by it.unimi.dico.islab.idbs2.map.session.RelationManager

public class RelationManager
extends Object

Manages object saving and querying for Relation wrapper. This class contains most used interrogations (such as getRelationById and methods for saving an object of this class.

* IMPORTANT: this class has no public constructor. A singleton instance of this class is contained in MapSessionManager class

Author:
Vegeziel
See Also:
Relation

Method Summary
 Relation getRelationById(String symbol)
           This method reads a Relation instance having symbol as primary key value from the database and returns it.
protected static RelationManager getRelationManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRelationManager

protected static RelationManager getRelationManager()

getRelationById

public Relation getRelationById(String symbol)

This method reads a Relation instance having symbol as primary key value from the database and returns it.

Parameters:
symbol - the symbol (primary key) of the required relation.
Returns:
the Relation instance having symbol as representative symbol.