org.nees.data.store
Class TransferRequestRecord

java.lang.Object
  extended byorg.nees.data.store.TransferRequestRecord
Direct Known Subclasses:
DownloadRequestRecord, UploadRequestRecord

public class TransferRequestRecord
extends java.lang.Object

Created on March 16, 2004, 10:25 AM

Author:
Jeff Gaynor

Field Summary
 java.util.Date expirationDate
           
 java.net.URI externalTempURI
           
 java.net.URI internalTempURI
           
 java.lang.String localFilename
           
 LogicalName logicalName
           
 java.net.URI permanentLocationURI
           
 java.lang.String protocol
           
 java.util.Date requestDate
           
 java.lang.String userID
           
 int xfToken
           
 
Constructor Summary
TransferRequestRecord()
          Creates a new instance of TransferRequestRecord
 
Method Summary
protected  boolean areBothNull(java.lang.Object o1, java.lang.Object o2)
          This utility will return true if both are null and of the same class
protected  boolean dateCheck(java.util.Date d1, java.util.Date d2)
          One feature of working with timestamps and dates is that database drivers can reset the date to the nearest second when saving or retrieving it.
 boolean equals(java.lang.Object obj)
           
protected  boolean isOneNull(java.lang.Object o1, java.lang.Object o2)
           
protected  java.lang.String nullToString(java.lang.Object obj)
          Just makes null objects look tidier...
protected  boolean simpleCheck(java.lang.Object o1, java.lang.Object o2)
          Asimple check.
 java.lang.String toString()
          A report on this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

protocol

public java.lang.String protocol

userID

public java.lang.String userID

xfToken

public int xfToken

requestDate

public java.util.Date requestDate

expirationDate

public java.util.Date expirationDate

externalTempURI

public java.net.URI externalTempURI

internalTempURI

public java.net.URI internalTempURI

logicalName

public LogicalName logicalName

permanentLocationURI

public java.net.URI permanentLocationURI

localFilename

public java.lang.String localFilename
Constructor Detail

TransferRequestRecord

public TransferRequestRecord()
Creates a new instance of TransferRequestRecord

Method Detail

nullToString

protected java.lang.String nullToString(java.lang.Object obj)
Just makes null objects look tidier...


toString

public java.lang.String toString()
A report on this object


equals

public boolean equals(java.lang.Object obj)

dateCheck

protected boolean dateCheck(java.util.Date d1,
                            java.util.Date d2)
One feature of working with timestamps and dates is that database drivers can reset the date to the nearest second when saving or retrieving it. This function will ensure that two date are within a specified tolerance (default is 1000 ms = 1 sec).


areBothNull

protected boolean areBothNull(java.lang.Object o1,
                              java.lang.Object o2)
This utility will return true if both are null and of the same class


isOneNull

protected boolean isOneNull(java.lang.Object o1,
                            java.lang.Object o2)

simpleCheck

protected boolean simpleCheck(java.lang.Object o1,
                              java.lang.Object o2)
Asimple check. If both are null then this is true.