|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.axelwernicke.mypod.DataPool
holds information about all scanned mp3 files
Constructor Summary | |
DataPool()
|
Method Summary | |
protected void |
addData(java.io.File file,
MP3MetaV2 mp3Meta)
Adds meta data object to the data pool. |
protected boolean |
contains(java.lang.Long oid)
Checks if an oid is in the data pool |
protected boolean |
deserializeData()
deserializes clip meta data |
java.util.Vector |
getAllAlbumValues(java.util.Vector clips,
boolean sort)
Gets the albums of all clips. |
javax.swing.DefaultListModel |
getAllArtistValues()
Gets all artists known by the data pool. |
java.util.Vector |
getAllArtistValues(java.util.Vector clips,
boolean sort)
Gets the titles of all clips. |
java.util.Vector |
getAllBandValues(java.util.Vector clips,
boolean sort)
Gets the bands of all clips. |
java.util.Vector |
getAllBpmValues(java.util.Vector clips,
boolean sort)
Gets the bpm values of all clips. |
java.util.Vector |
getAllCdIdentifierValues(java.util.Vector clips,
boolean sort)
Gets the cd identifier values of all clips. |
java.util.Vector |
getAllCommentValues(java.util.Vector clips,
boolean sort)
Gets the comments of all clips. |
java.util.Vector |
getAllComposerValues(java.util.Vector clips,
boolean sort)
Gets the composers of all clips. |
java.util.Vector |
getAllContentGroupSetValues(java.util.Vector clips,
boolean sort)
Gets the content group set values of all clips. |
java.util.Vector |
getAllCopyrightTextValues(java.util.Vector clips,
boolean sort)
Gets the copyright text values of all clips. |
java.util.Vector |
getAllCopyrightWebpageValues(java.util.Vector clips,
boolean sort)
Gets the copyright webpage values of all clips. |
java.util.Vector |
getAllEncodedByValues(java.util.Vector clips,
boolean sort)
Gets the encoded by values of all clips. |
javax.swing.DefaultListModel |
getAllGenreValues()
Gets all genres known by the data pool. |
java.util.Vector |
getAllGenreValues(java.util.Vector clips,
boolean sort)
Gets the genres of all clips. |
java.util.Vector |
getAllIsrcValues(java.util.Vector clips,
boolean sort)
Gets the isrc values of all clips. |
java.util.Vector |
getAllLanguageValues(java.util.Vector clips,
boolean sort)
Gets the isrc values of all clips. |
java.util.Vector |
getAllLyricistValues(java.util.Vector clips,
boolean sort)
Gets the lyricist of all clips. |
protected java.util.Set |
getAllOid()
gets the oids for all music in the datapool |
java.util.Vector |
getAllOriginalArtists(java.util.Vector clips,
boolean sort)
Gets the original artist values of all clips. |
java.util.Vector |
getAllOriginalArtistValues(java.util.Vector clips,
boolean sort)
Gets the original artist values of all clips. |
java.util.Vector |
getAllOriginalLyricistValues(java.util.Vector clips,
boolean sort)
Gets the original lyricist values of all clips. |
java.util.Vector |
getAllOriginalTitleValues(java.util.Vector clips,
boolean sort)
Gets the original title values of all clips. |
java.util.Vector |
getAllOriginalYearValues(java.util.Vector clips,
boolean sort)
Gets the original year values of all clips. |
java.util.Vector |
getAllPlaycounterValues(java.util.Vector clips,
boolean sort)
Gets the playcounter of all clips. |
java.util.Vector |
getAllPublisherValues(java.util.Vector clips,
boolean sort)
Gets the publisher values of all clips. |
java.util.Vector |
getAllPublisherWebpageValues(java.util.Vector clips,
boolean sort)
Gets the publisher webpage values of all clips. |
java.util.Vector |
getAllTitleValues(java.util.Vector clips,
boolean sort)
Gets the titles of all clips. |
java.util.Vector |
getAllTrackValues(java.util.Vector clips,
boolean sort)
Gets the track values of all clips. |
javax.swing.DefaultListModel |
getAllYearValues()
Gets all years known by the data pool. |
java.util.Vector |
getAllYearValues(java.util.Vector clips,
boolean sort)
Gets the years of all clips. |
protected long |
getLastModified(java.io.File file)
gets from data pool the date when the selected track was modified the last time. |
protected MP3MetaV2 |
getMeta(java.io.File file)
gets information about an mp3 from database. |
MP3MetaV2 |
getMeta(java.lang.Long oid)
gets all information about a track |
protected java.lang.Long |
getOid(java.lang.String filename)
gets the oid of a clip from its filename |
protected boolean |
isInPool(java.io.File file)
checks if the clip specified by path and filename is in the data pool |
protected void |
rebuildFilenameCache()
Rebuilds the filename cache from scratch. |
protected void |
removeClip(java.lang.Long oid)
Removes a clip from the data pool. |
protected void |
setData(java.util.Hashtable data)
Sets data hashtable |
protected void |
shutdown()
Shuts the datapool down |
protected void |
updateData(java.io.File file,
MP3MetaV2 mp3Meta)
Updates the id3 tags in the clip from the meta data object. |
protected void |
updateData(java.lang.Long oid,
MP3MetaV2 mp3Meta)
Updates the id3 tags in the clip from the meta data object. |
protected boolean |
updateFilePath(java.lang.Long oid,
java.lang.String newPath)
Updates meta data and filename cache if file name or path changed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataPool()
Method Detail |
protected void shutdown()
protected java.lang.Long getOid(java.lang.String filename)
filename
- filename of the clip
protected boolean contains(java.lang.Long oid)
oid
- to check
protected java.util.Set getAllOid()
protected MP3MetaV2 getMeta(java.io.File file)
file
- file to get the information for
public MP3MetaV2 getMeta(java.lang.Long oid)
oid
- oid of the track to get information for
protected long getLastModified(java.io.File file)
file
- file to get the information for
protected boolean isInPool(java.io.File file)
file
- filename and path of the clip
protected void updateData(java.io.File file, MP3MetaV2 mp3Meta)
mp3Meta
- to update fromfile
- to set the meta data forprotected void updateData(java.lang.Long oid, MP3MetaV2 mp3Meta)
oid
- mp3Meta
- to update fromprotected void addData(java.io.File file, MP3MetaV2 mp3Meta)
mp3Meta
- set of meta data to add to the poolfile
- the set of meta data belongs toprotected void removeClip(java.lang.Long oid)
oid
- of the clip to removeprotected void rebuildFilenameCache()
protected boolean deserializeData()
protected void setData(java.util.Hashtable data)
data
- to setprotected boolean updateFilePath(java.lang.Long oid, java.lang.String newPath)
newPath
- oid
- of the changed clip
public java.util.Vector getAllTitleValues(java.util.Vector clips, boolean sort)
clips
- to get titles from. If clips is null, all clips in the data pool are evaluated.sort
- the titles
public java.util.Vector getAllArtistValues(java.util.Vector clips, boolean sort)
clips
- to get titles from. If clips is null, all clips in the data pool are evaluated.sort
- the titles
public java.util.Vector getAllAlbumValues(java.util.Vector clips, boolean sort)
clips
- to get artists from. If clips is null, all clips in the data pool are evaluated.sort
- the artists
public java.util.Vector getAllBandValues(java.util.Vector clips, boolean sort)
clips
- to get bands from. If clips is null, all clips in the data pool are evaluated.sort
- the bands
public java.util.Vector getAllBpmValues(java.util.Vector clips, boolean sort)
clips
- to get bands from. If clips is null, all clips in the data pool are evaluated.sort
- the bpm values
public java.util.Vector getAllCdIdentifierValues(java.util.Vector clips, boolean sort)
clips
- to get bands from. If clips is null, all clips in the data pool are evaluated.sort
- the cd identifier values
public java.util.Vector getAllCommentValues(java.util.Vector clips, boolean sort)
clips
- to get comments from. If clips is null, all clips in the data pool are evaluated.sort
- the comments
public java.util.Vector getAllComposerValues(java.util.Vector clips, boolean sort)
clips
- to get composers from. If clips is null, all clips in the data pool are evaluated.sort
- the composers
public java.util.Vector getAllContentGroupSetValues(java.util.Vector clips, boolean sort)
clips
- to get content group set values from. If clips is null, all clips in the data pool are evaluated.sort
- the content group set values
public java.util.Vector getAllCopyrightTextValues(java.util.Vector clips, boolean sort)
clips
- to get copyright text values from. If clips is null, all clips in the data pool are evaluated.sort
- the copyright text values
public java.util.Vector getAllCopyrightWebpageValues(java.util.Vector clips, boolean sort)
clips
- to get copyright webpage values from. If clips is null, all clips in the data pool are evaluated.sort
- the copyright webpage values
public java.util.Vector getAllEncodedByValues(java.util.Vector clips, boolean sort)
clips
- to get encoded by values from. If clips is null, all clips in the data pool are evaluated.sort
- the encoded by values
public java.util.Vector getAllGenreValues(java.util.Vector clips, boolean sort)
clips
- to get genres from. If clips is null, all clips in the data pool are evaluated.sort
- the genres
public java.util.Vector getAllIsrcValues(java.util.Vector clips, boolean sort)
clips
- to get encoded by values from. If clips is null, all clips in the data pool are evaluated.sort
- the encoded by values
public java.util.Vector getAllLanguageValues(java.util.Vector clips, boolean sort)
clips
- to get encoded by values from. If clips is null, all clips in the data pool are evaluated.sort
- the encoded by values
public java.util.Vector getAllLyricistValues(java.util.Vector clips, boolean sort)
clips
- to get lyricists from. If clips is null, all clips in the data pool are evaluated.sort
- the lyricists
public java.util.Vector getAllOriginalArtistValues(java.util.Vector clips, boolean sort)
clips
- to get original artist values from. If clips is null, all clips in the data pool are evaluated.sort
- the original artist values
public java.util.Vector getAllPlaycounterValues(java.util.Vector clips, boolean sort)
clips
- to get playcounter from. If clips is null, all clips in the data pool are evaluated.sort
- the playcounter values
public java.util.Vector getAllOriginalArtists(java.util.Vector clips, boolean sort)
clips
- to get original artist values from. If clips is null, all clips in the data pool are evaluated.sort
- the original artist values
public java.util.Vector getAllOriginalLyricistValues(java.util.Vector clips, boolean sort)
clips
- to get original lyricist values from. If clips is null, all clips in the data pool are evaluated.sort
- the original lyricist values
public java.util.Vector getAllOriginalTitleValues(java.util.Vector clips, boolean sort)
clips
- to get original title values from. If clips is null, all clips in the data pool are evaluated.sort
- the original title values
public java.util.Vector getAllOriginalYearValues(java.util.Vector clips, boolean sort)
clips
- to get original year values from. If clips is null, all clips in the data pool are evaluated.sort
- the original year values
public java.util.Vector getAllPublisherValues(java.util.Vector clips, boolean sort)
clips
- to get publisher values from. If clips is null, all clips in the data pool are evaluated.sort
- the publisher values
public java.util.Vector getAllPublisherWebpageValues(java.util.Vector clips, boolean sort)
clips
- to get publisher webpage values from. If clips is null, all clips in the data pool are evaluated.sort
- the publisher webpage values
public java.util.Vector getAllTrackValues(java.util.Vector clips, boolean sort)
clips
- to get track values from. If clips is null, all clips in the data pool are evaluated.sort
- the track values
public java.util.Vector getAllYearValues(java.util.Vector clips, boolean sort)
clips
- to get years from. If clips is null, all clips in the data pool are evaluated.sort
- the years
public javax.swing.DefaultListModel getAllArtistValues()
public javax.swing.DefaultListModel getAllGenreValues()
public javax.swing.DefaultListModel getAllYearValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |