jpl.mipl.mdms.FileService.komodo.transaction
Class FileInfo

java.lang.Object
  extended byjpl.mipl.mdms.FileService.komodo.transaction.FileInfo

public class FileInfo
extends Object

This class defines the server side file management objects.

Version:
$Id: FileInfo.java,v 1.1 2003/09/25 21:33:42 txh Exp $
Author:
Jeff Jacobson

Constructor Summary
FileInfo(int ftId, int fileId, String name, String contributor, String contributeServer, Date created, Date modified, long size, Date qaRelease, int lockedFor, String checksum, String comment)
          Constructor
 
Method Summary
 void dump(PrintStream out)
          Output the state of this object.
 String getChecksum()
          Accessor method to return the checksum value, if any
 String getComment()
          Accessor method to return the comment associated to the file, if any
 String getContributeServer()
          Accessor method to return the contribute server of the file.
 String getContributor()
          Accessor method to return the contributor of the file
 Date getCreated()
          Accessor method to return the creation date of the file
 int getFileId()
          Accessor method to return file ID
 int getFtId()
          Accessor method to return file type ID
 int getLockedFor()
          Accessor method to return the lockedFor value See komodoTables.ql for the definition of lockedFor values.
 Date getModified()
          Accessor method to return the modification date of the file
 String getName()
          Accessor method to return the name of the file
 Date getQaRelease()
          Accessor method to return the QA release date
 long getSize()
          Accessor method to return the size of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInfo

public FileInfo(int ftId,
                int fileId,
                String name,
                String contributor,
                String contributeServer,
                Date created,
                Date modified,
                long size,
                Date qaRelease,
                int lockedFor,
                String checksum,
                String comment)
Constructor

Parameters:
ftId - the file type id
fileId - the file's internal DBMS id.
name - the file's name.
contributor - the contributor of the file
contributeServer - the contribute server of the file
created - the creation date
modified - the file's last modification time.
size - the file's size.
qaRelease - the QA release date
lockedFor - the file current locked for status.
checksum - files checksum in database.
comment - additional comments
Method Detail

getFtId

public final int getFtId()
Accessor method to return file type ID

Returns:
File type internal DBMS id.

getFileId

public final int getFileId()
Accessor method to return file ID

Returns:
File's internal DBMS id.

getName

public final String getName()
Accessor method to return the name of the file

Returns:
File's name.

getContributor

public final String getContributor()
Accessor method to return the contributor of the file

Returns:
File contributor's file system user name.

getContributeServer

public final String getContributeServer()
Accessor method to return the contribute server of the file.

Returns:
The contribute server name

getCreated

public final Date getCreated()
Accessor method to return the creation date of the file

Returns:
File's creation time.

getModified

public final Date getModified()
Accessor method to return the modification date of the file

Returns:
File's last modification time.

getSize

public final long getSize()
Accessor method to return the size of the file

Returns:
File's size.

getQaRelease

public final Date getQaRelease()
Accessor method to return the QA release date

Returns:
File's qaRelease date time.

getLockedFor

public final int getLockedFor()
Accessor method to return the lockedFor value See komodoTables.ql for the definition of lockedFor values. This value determines whether a file is locked for add, delete, replace, etc.

Returns:
File's lockedFor value.

getChecksum

public final String getChecksum()
Accessor method to return the checksum value, if any

Returns:
File's checksum. May be null.

getComment

public final String getComment()
Accessor method to return the comment associated to the file, if any

Returns:
File's comment. May be null.

dump

public void dump(PrintStream out)
Output the state of this object. Dump contents of FileTypeInfo to PrintStream

Parameters:
out - the output stream