org.sourcejammer.client.filesys
Class StoredFileInfoBean

java.lang.Object
  |
  +--org.sourcejammer.client.filesys.StoredFileInfoBean
All Implemented Interfaces:
java.io.Serializable

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

This class represents information about a file from SourceJammer that has been stored on a client's file system. The information is used to determine whether the entire file needs to be retrieved from the server when the file is requested again.

See Also:
Serialized Form

Field Summary
private  long mlDate
           
private  long mlNumBytes
           
private  long mlSourceVersionUniqueID
           
private  java.lang.String msArchiveName
           
private  java.lang.String msName
           
private  java.lang.String msServerURL
           
 
Constructor Summary
StoredFileInfoBean()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if o is a StoredFileInfoBean and all properties of o are the same as the properties of this object.
 boolean equalsIgnoreVersion(java.lang.Object o)
          Returns true if o is a StoredFileInfoBean and all properties of o (other than Version) are the same as the properties of this object.
 java.lang.String getArchiveName()
           
 long getDate()
           
 java.lang.String getName()
           
 long getNumBytes()
           
 java.lang.String getServerURL()
           
 long getSourceVersionUniqueID()
           
 void setArchiveName(java.lang.String s)
           
 void setDate(java.util.Date d)
           
 void setDate(long l)
          Date is stored as a long, using Date.getTime().
 void setName(java.lang.String s)
           
 void setNumBytes(long l)
           
 void setServerURL(java.lang.String s)
           
 void setSourceVersionUniqueID(long l)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msName

private java.lang.String msName

mlSourceVersionUniqueID

private long mlSourceVersionUniqueID

mlNumBytes

private long mlNumBytes

mlDate

private long mlDate

msServerURL

private java.lang.String msServerURL

msArchiveName

private java.lang.String msArchiveName
Constructor Detail

StoredFileInfoBean

public StoredFileInfoBean()
Method Detail

setName

public void setName(java.lang.String s)

getName

public java.lang.String getName()

setSourceVersionUniqueID

public void setSourceVersionUniqueID(long l)

getSourceVersionUniqueID

public long getSourceVersionUniqueID()

setNumBytes

public void setNumBytes(long l)

getNumBytes

public long getNumBytes()

setDate

public void setDate(long l)
Date is stored as a long, using Date.getTime().


setDate

public void setDate(java.util.Date d)

getDate

public long getDate()

getArchiveName

public java.lang.String getArchiveName()

setArchiveName

public void setArchiveName(java.lang.String s)

getServerURL

public java.lang.String getServerURL()

setServerURL

public void setServerURL(java.lang.String s)

equals

public boolean equals(java.lang.Object o)
Returns true if o is a StoredFileInfoBean and all properties of o are the same as the properties of this object. Otherwise, returns false.

Overrides:
equals in class java.lang.Object

equalsIgnoreVersion

public boolean equalsIgnoreVersion(java.lang.Object o)
Returns true if o is a StoredFileInfoBean and all properties of o (other than Version) are the same as the properties of this object. Otherwise, returns false.



Copyright 2003 Soucejammer project.