com.flickrrecsys.model
Class FavoritePhotos

java.lang.Object
  extended by com.flickrrecsys.model.FavoritePhotos
All Implemented Interfaces:
java.io.Serializable

public class FavoritePhotos
extends java.lang.Object
implements java.io.Serializable

Model for Favourite Photos stored in the database

Author:
Hossein
See Also:
Serialized Form

Constructor Summary
FavoritePhotos()
           
 
Method Summary
 int getFpid()
          get primary key
 java.lang.String getNsid()
          get nsid
 int getOcc()
          Get the number of time photos from a specific owner id has favourite in the Flickr website
 java.lang.String getOwnerId()
          get the owner id of the person whose photo has favourite
 void setFpid(int fpid)
          set favourite photo id
 void setNsid(java.lang.String nsid)
          set nsid
 void setOcc(int occ)
          set the number of time photos from a specific owner id has favourite in the Flickr website
 void setOwnerId(java.lang.String ownerId)
          set the owner id of the person whose photo has favourite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoritePhotos

public FavoritePhotos()
Method Detail

getOcc

public int getOcc()
Get the number of time photos from a specific owner id has favourite in the Flickr website

Returns:
number of times

setOcc

public void setOcc(int occ)
set the number of time photos from a specific owner id has favourite in the Flickr website

Parameters:
occ - number of time

getFpid

public int getFpid()
get primary key

Returns:
fpid

setFpid

public void setFpid(int fpid)
set favourite photo id

Parameters:
fpid - favourite photo id

getNsid

public java.lang.String getNsid()
get nsid

Returns:
nsid from the flickr website

setNsid

public void setNsid(java.lang.String nsid)
set nsid

Parameters:
nsid - user id from the flickr website

getOwnerId

public java.lang.String getOwnerId()
get the owner id of the person whose photo has favourite

Returns:

setOwnerId

public void setOwnerId(java.lang.String ownerId)
set the owner id of the person whose photo has favourite

Parameters:
ownerId - nsid id from the Flickr website