cz.hdf.cdnavigator.db
Class SongData

java.lang.Object
  extended by cz.hdf.cdnavigator.db.SongData

public class SongData
extends java.lang.Object

This is data structure for Song records from DB.

Author:
hunter

Field Summary
private  int albumID
          album song id
static int BAD_INT_VALUE
          Null for int
private  java.lang.String file
          song file
private  java.lang.String[] genre
          song genre
private  int id
          photo id
(package private)  java.util.logging.Logger logger
          Logger.
private  java.lang.String name
          song name
private  int number
          song number
private  int rate
          song rate
 
Constructor Summary
SongData()
          Initialize object with no data.
SongData(int _id, int _albumID, int _number, java.lang.String _name, java.lang.String _file, int _rate, java.lang.String[] _genre)
          Initilize object.
 
Method Summary
 int getAlbumID()
          Get album song id.
 java.lang.String getFile()
          Get song file.
 java.lang.String[] getGenre()
          Get song genre.
 int getID()
          Get song id.
 java.lang.String getName()
          Get song name.
 int getNumber()
          Get song number.
 int getRate()
          Get song rate.
 void setAlbumID(int _albumID)
          Set album song id.
 void setFile(java.lang.String _file)
          Set song file.
 void setGenre(java.lang.String[] _genre)
          Set song genre.
 void setID(int _id)
          Set song id.
 void setName(java.lang.String _name)
          Set song name.
 void setNumber(int _number)
          Set song number.
 void setRate(int _rate)
          Set song rate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BAD_INT_VALUE

public static final int BAD_INT_VALUE
Null for int

See Also:
Constant Field Values

id

private int id
photo id


albumID

private int albumID
album song id


number

private int number
song number


name

private java.lang.String name
song name


file

private java.lang.String file
song file


rate

private int rate
song rate


genre

private java.lang.String[] genre
song genre


logger

java.util.logging.Logger logger
Logger. Hierarchy is set to name of this class.

Constructor Detail

SongData

public SongData()
Initialize object with no data.


SongData

public SongData(int _id,
                int _albumID,
                int _number,
                java.lang.String _name,
                java.lang.String _file,
                int _rate,
                java.lang.String[] _genre)
Initilize object.

Parameters:
_id - song id
_albumID - album song id
_number - song number
_name - song name
_file - song file name
_rate - rate of song
_genre - song genre
Method Detail

getID

public int getID()
Get song id.

Returns:
Returns the id.

setID

public void setID(int _id)
Set song id.

Parameters:
_id - The id to set.

getAlbumID

public int getAlbumID()
Get album song id.

Returns:
Returns the album id.

setAlbumID

public void setAlbumID(int _albumID)
Set album song id.

Parameters:
_albumID - The album id to set.

getNumber

public int getNumber()
Get song number.

Returns:
Returns the number.

setNumber

public void setNumber(int _number)
Set song number.

Parameters:
_number - The number to set.

getName

public java.lang.String getName()
Get song name.

Returns:
Returns the name.

setName

public void setName(java.lang.String _name)
Set song name.

Parameters:
_name - The name to set.

getFile

public java.lang.String getFile()
Get song file.

Returns:
Returns the file.

setFile

public void setFile(java.lang.String _file)
Set song file.

Parameters:
_file - The file to set.

getRate

public int getRate()
Get song rate.

Returns:
Returns the song rate.

setRate

public void setRate(int _rate)
Set song rate.

Parameters:
_rate - The song rate to set.

getGenre

public java.lang.String[] getGenre()
Get song genre.

Returns:
Returns the song genre.

setGenre

public void setGenre(java.lang.String[] _genre)
Set song genre.

Parameters:
_genre - The genre to set.


CDnavigator JavaDoc, HDF company www.hdf.cz