org.musicontroller.core
Class AIRelation

java.lang.Object
  extended by org.musicontroller.core.AIRelation

public class AIRelation
extends java.lang.Object

This object models a relation between an artist and an instrument (This is a "plays" relation). This object contains the id's of the instrument and the artist.

Version:
$Id: AIRelation.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
Author:
Varienaja

Constructor Summary
AIRelation()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Two AIRelations are the same if both the instrument id and the artist id are equal.
 long getArtist_id()
          Getter for the artist id.
 long getInstrument_id()
          Getter for the instrument id.
 int hashCode()
           
 void setArtist_id(long artist_id)
          Setter for the artist id.
 void setInstrument_id(long instrument_id)
          Setter for the instrument id.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AIRelation

public AIRelation()
Method Detail

getArtist_id

public long getArtist_id()
Getter for the artist id.

Returns:
The artist id.

setArtist_id

public void setArtist_id(long artist_id)
Setter for the artist id.

Parameters:
artist_id - The artist id.

getInstrument_id

public long getInstrument_id()
Getter for the instrument id.

Returns:
The instrument id.

setInstrument_id

public void setInstrument_id(long instrument_id)
Setter for the instrument id.

Parameters:
instrument_id - The instrument id.

equals

public boolean equals(java.lang.Object o)
Two AIRelations are the same if both the instrument id and the artist id are equal.

Overrides:
equals in class java.lang.Object
Parameters:
o - The AIRelation to compare.
Returns:
True if the AIRelations are equal.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 A.J.V.. All Rights Reserved.