|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.hdf.cdnavigator.db.MusicAlbumData
public class MusicAlbumData
This is data structure for Music Album records from DB.
| Field Summary | |
|---|---|
static int |
BAD_INT_VALUE
Null for int |
private int |
cdid
CD id with music album |
private java.awt.Image |
cover
music album cover |
private java.lang.String[] |
genre
music album genre |
private int |
id
music album id |
private java.lang.String[] |
interprets
music album interprets |
(package private) java.util.logging.Logger |
logger
Logger. |
private java.lang.String |
name
music album name |
private int |
rate
music album rate |
private int |
year
music album year |
| Constructor Summary | |
|---|---|
MusicAlbumData()
Initialize object with no data. |
|
MusicAlbumData(int _id,
int _cdid,
java.lang.String _name,
java.lang.String[] _interprets,
int _year,
java.lang.String[] _genre,
int _rate,
java.awt.Image _cover)
Initilize object. |
|
| Method Summary | |
|---|---|
int |
getCDID()
Get CD ID of CD with music album. |
java.awt.Image |
getCover()
Get cover image. |
byte[] |
getCoverByteArray()
Convert image object to array of bytes. |
java.lang.String[] |
getGenre()
Get music album genre. |
int |
getID()
Get music album id. |
java.lang.String[] |
getInterprets()
Get music album interprets. |
java.lang.String |
getName()
Get music album name. |
int |
getRate()
Get music album rate. |
int |
getYear()
Get music album year. |
void |
set(MusicAlbumData _mad)
Copy all values. |
void |
setCDID(int _cdid)
Set CD ID of CD with music album. |
void |
setCover(java.awt.Image _cover)
Set cover image. |
void |
setGenre(java.lang.String[] _genre)
Set music album genre. |
void |
setID(int _id)
Set music album id. |
void |
setInterprets(java.lang.String[] _interprets)
Set music album interprets. |
void |
setName(java.lang.String _name)
Set music album name |
void |
setRate(int _rate)
Set music album rate. |
void |
setYear(int _year)
Set music album year. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BAD_INT_VALUE
private int id
private int cdid
private java.lang.String name
private java.lang.String[] interprets
private int year
private java.lang.String[] genre
private int rate
private java.awt.Image cover
java.util.logging.Logger logger
| Constructor Detail |
|---|
public MusicAlbumData()
public MusicAlbumData(int _id,
int _cdid,
java.lang.String _name,
java.lang.String[] _interprets,
int _year,
java.lang.String[] _genre,
int _rate,
java.awt.Image _cover)
_id - id_cdid - CD id_name - album name_interprets - album interprets_year - array of musics_genre - album genre_rate - album rate_cover - album cover| Method Detail |
|---|
public int getID()
public void setID(int _id)
_id - The id to set.public int getCDID()
public void setCDID(int _cdid)
_cdid - CD IDpublic java.lang.String getName()
public void setName(java.lang.String _name)
_name - album namepublic java.lang.String[] getInterprets()
public void setInterprets(java.lang.String[] _interprets)
_interprets - The interprets to set.public int getYear()
public void setYear(int _year)
_year - The album year to set.public java.lang.String[] getGenre()
public void setGenre(java.lang.String[] _genre)
_genre - The album genre to set.public int getRate()
public void setRate(int _rate)
_rate - The album rate to set.public java.awt.Image getCover()
public byte[] getCoverByteArray()
public void setCover(java.awt.Image _cover)
_cover - The cover to set.public void set(MusicAlbumData _mad)
_mad -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||