jreceiver.common.rec.source
Class  MfileRec
java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.source.SourceRec
              |
              +--jreceiver.common.rec.source.MfileRec
- All Implemented Interfaces: 
 - Hashable, Mfile, Rec, Source
 
- public class MfileRec
- extends SourceRec
- implements Mfile
   
Bean to describe a record for the Mfiles table
- Version: 
 - $Revision: 1.5 $ $Date: 2003/04/27 23:14:31 $
 
- Author: 
 - Reed Esau
 
 
 
 
| Fields inherited from interface jreceiver.common.rec.source.Source | 
DEFAULT_URL, FORCE_PLAYLIST_URL, HKEY_CONTENT_URL, HKEY_DIRECT_URI, HKEY_DST_MIME, HKEY_DURATION, HKEY_MIME, HKEY_SITE_ID, HKEY_SRC_ID, HKEY_SRC_TYPE, HKEY_TITLE, MAX_SRC_ID, MIN_SRC_ID, POPULATE_CONTENT_URL, POPULATE_DIRECT_URI, POPULATE_MEXTERNAL, POPULATE_MFILE, SRCTYPE_PLAYLIST, SRCTYPE_TUNE, SRCTYPE_UNDEFINED | 
 
 
| 
Constructor Summary | 
MfileRec(java.util.Hashtable hash)
 
          ctor - construct from a hashtable, usually retrieved via XML-RPC | 
MfileRec(int src_id,
         java.lang.String title,
         int src_type,
         java.lang.String src_mime,
         org.esau.ptarmigan.util.PtarURI direct_uri,
         java.net.URL content_url,
         int folder_id,
         long file_size,
         long last_modified)
 
          ctor | 
 
| 
Method Summary | 
 long | 
getFileSize()
 
          Obtain the file size | 
 int | 
getFolderId()
 
          Obtain the folder id | 
 long | 
getLastModified()
 
          Obtain the unix epoc timestamp of the last time the file was modified
  | 
 void | 
setFileSize(long file_size)
 
          Assign the file size | 
 void | 
setFolderId(int folder_id)
 
          Assign the folder_id | 
 void | 
setLastModified(long last_modified)
 
          Assign the unix epoc timestamp of the last time the file was modified
  | 
 void | 
setLastModifiedISO(java.lang.String iso_date)
 
          Assign the timestamp of the last time the file was modified
  | 
 java.util.Hashtable | 
toHash()
 
          Store the object as a hash suitable for
 transport over an XML-RPC connection or similar. | 
 java.lang.String | 
toString()
 
          Returns a string representation of the object. | 
 
| Methods inherited from class jreceiver.common.rec.source.SourceRec | 
createInstance, getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getKey, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setKey, setMime, setSrcId, setTitle | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
| Methods inherited from interface jreceiver.common.rec.source.Source | 
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setMime, setSrcId, setTitle | 
 
 
m_folder_id
protected int m_folder_id
m_file_size
protected long m_file_size
m_last_modified
protected long m_last_modified
MfileRec
public MfileRec(int src_id,
                java.lang.String title,
                int src_type,
                java.lang.String src_mime,
                org.esau.ptarmigan.util.PtarURI direct_uri,
                java.net.URL content_url,
                int folder_id,
                long file_size,
                long last_modified)
- ctor
 
MfileRec
public MfileRec(java.util.Hashtable hash)
         throws RecException
- ctor - construct from a hashtable, usually retrieved via XML-RPC
 
getFolderId
public int getFolderId()
- Obtain the folder id
- Specified by: 
 getFolderId in interface Mfile
 
 
setFolderId
public void setFolderId(int folder_id)
- Assign the folder_id
- Specified by: 
 setFolderId in interface Mfile
 
 
getFileSize
public long getFileSize()
- Obtain the file size
- Specified by: 
 getFileSize in interface Mfile
 
 
setFileSize
public void setFileSize(long file_size)
- Assign the file size
- Specified by: 
 setFileSize in interface Mfile
 
 
getLastModified
public long getLastModified()
- Obtain the unix epoc timestamp of the last time the file was modified
 
 Units are in milliseconds.
- Specified by: 
 getLastModified in interface Mfile
 
 
setLastModified
public void setLastModified(long last_modified)
- Assign the unix epoc timestamp of the last time the file was modified
 
 Units are in milliseconds.
- Specified by: 
 setLastModified in interface Mfile
 
 
setLastModifiedISO
public void setLastModifiedISO(java.lang.String iso_date)
- Assign the timestamp of the last time the file was modified
 
 Provide a date in ISO-8601 format (yyyy-MM-dd'T'HH:mm:ss)
 
 Note that we have to use a different name than 'setLastModified'
 as Struts/BeanUtils gets confused and thinks that getLastModified
 should return a string.
- Specified by: 
 setLastModifiedISO in interface Mfile
 
 
toString
public java.lang.String toString()
- Description copied from interface: 
Hashable 
- Returns a string representation of the object.
- Specified by: 
 toString in interface Hashable- Overrides:
 toString in class SourceRec
 
 
toHash
public java.util.Hashtable toHash()
- Store the object as a hash suitable for
 transport over an XML-RPC connection or similar.
 
 Use MfileRec(Hashtable) to transform the data
 back into an object of this type.
 
- Specified by: 
 toHash in interface Hashable- Overrides:
 toHash in class SourceRec
 
- Returns:
 -  
 
 
 
Copyright © 2001-2002 Reed Esau, All Rights Reserved.