|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.FileService.komodo.services.query.api.QResult
public class QResult
Query result class maintains information about individual files.
| Constructor Summary | |
|---|---|
QResult(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note)
Constructor |
|
QResult(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note,
String serverGroup,
String fileType,
int transId)
Constructor |
|
QResult(QRequest request,
int errno,
String message)
Constructor |
|
QResult(QRequest request,
String name)
Constructor |
|
QResult(QRequest request,
String name,
long size)
Constructor |
|
QResult(QRequest request,
String name,
String filetype,
long size,
Date datetime)
Constructor |
|
QResult(String name,
long size)
Constructor |
|
QResult(String vft,
String title,
String comment,
String createdBy,
String created,
String updatedBy,
String updated)
Constructor for vft information. |
|
QResult(String vft,
String refName,
String refLink,
String refFileType,
String refFileName,
String comment,
String updateFileType,
String updateFileName,
boolean updateRef)
Constructor for vft reference information. |
|
| Method Summary | |
|---|---|
void |
commit()
Method to commit a transaction into the restart file. |
String |
getArchiveNote()
Method to return the archive note |
byte[] |
getChecksum()
Method to get the file's checksum. |
String |
getChecksumStr()
Method to return the checksum string |
ClientRestartCache |
getClientRestartCache()
|
String |
getComment()
Method to return the comment |
String |
getCreated()
Method to get file/vft create time |
String |
getCreatedBy()
Method to get vft the name of the agent that created the VFT. |
Date |
getDate()
Deprecated. Use getFileModificationTime |
int |
getErrno()
Method to get errno for this result |
byte[] |
getFileBuffer()
Method to get file buffer |
long |
getFileBufferSize()
Method to get file buffer size |
String |
getFileContributor()
Method to get contributor name |
Date |
getFileCreationTime()
Method to get file creation time |
long |
getFileId()
Method to return file id |
Date |
getFileModificationTime()
Method to get file's date |
int |
getFtId()
Method to get file's internal DBMS id for the file type. |
String |
getLocation()
Method to return file location |
String |
getMessage()
Method to return message with time stamp |
String |
getName()
Method to get file name |
String |
getNote()
Method to return the associated note |
String |
getQaRelease()
Method to get the qaDate. |
int |
getReceiptId()
Method to return the receipt ID |
String |
getRefFileName()
Method to get vft reference file name |
String |
getRefFileType()
Method to get vft reference file type |
String |
getRefLink()
Method to get vft reference location |
String |
getRefName()
Method to get vft reference name |
String |
getServerGroup()
Method to return the request server group |
long |
getSize()
Method to get file size |
String |
getTitle()
Method to return the title |
int |
getTransactionId()
Method to get transaction id |
String |
getType()
Method to return the request file type |
String |
getUpdated()
Method to get vft update time |
String |
getUpdatedBy()
Method to get the name of the agent that updated the file/VFT. |
String |
getUpdateFileName()
Method to get vft update file name. |
String |
getUpdateFileType()
Method to get the file type of the next reference. |
String |
getVFTHeader()
Build a VFT header, using all ancillary information. |
String |
getVFTName()
Method to get vft name |
boolean |
isDoNotShowUser()
Method to return the flag that determins if the application see this last result on an end of transaction. |
boolean |
isEoT()
Is this the last profile record returned for the request. |
boolean |
secure()
Was the file transfered is secure mode? |
void |
setArchiveNote(String archiveNote)
Method to set the archive note |
void |
setChecksum(byte[] checksum)
Method to set checksum byte array |
void |
setChecksum(String checksum)
Method to set checksum value |
void |
setClientRestartCache(ClientRestartCache restartCache)
Method to set restart file |
void |
setComment(String comment)
Method to set comment |
void |
setCreated(String created)
Method to set file/vft createt time |
void |
setDate(Date date)
Deprecated. Use setFileModificationTimeString |
void |
setDoNotShowUser()
Need result to show eot, but don't show user. |
void |
setEoT()
Method to enable end of transaction flag. |
void |
setErrno(int errno)
Method to set result errno |
void |
setFileBuffer(byte[] fileBuffer)
Method to set file buffer |
void |
setFileContributor(String contributor)
Method to set the file contributor name |
void |
setFileCreationTime(Date created)
Method to set file creation time |
void |
setFileId(long fileId)
Method to set file id |
void |
setFileModificationTime(Date date)
Method to set date string. |
void |
setFtId(int ftId)
Method to set file's internal DBMS id for the file type. |
void |
setLocation(String location)
Method to set file location |
void |
setMessage(String message)
Method to set message |
void |
setName(String name)
Method to set file name string. |
void |
setNote(String note)
Method to set the associated note |
void |
setReceiptId(int receiptId)
Method to set receipt ID |
void |
setRefFileName(String refFileName)
Method to set reference file name |
void |
setRefFileType(String refFileType)
Method to set ref file type |
void |
setRefName(String refName)
Method to set vft reference name |
void |
setSize(long size)
Method to set file size |
void |
setTitle(String title)
Method to set the title. |
void |
setType(String fileType)
Method to set the request file type. |
void |
setUpdatedBy(String updatedBy)
Method to set the name of the agent that updated the file/vft |
boolean |
updateRef()
Method to return true if an update is pending on this reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QResult(String name,
long size)
name - the file's name.size - the size of the file in bytes.
public QResult(QRequest request,
String name)
request - the request information, includes, command, type,
transaction id.name - the file's name.
public QResult(QRequest request,
String name,
long size)
request - the request information, includes type, transaction id.name - the file's name.size - the size of the file in bytes.
public QResult(QRequest request,
String name,
String filetype,
long size,
Date datetime)
request - the request information, includes type, transaction id.name - the file's name.filetype - the file's FEI filetype.size - the size of the file in bytes.datetime - the file's modification date.
public QResult(QRequest request,
int errno,
String message)
request - the request information, includes type, transaction id.errno - the error status for this file.message - an error message.
public QResult(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note,
String serverGroup,
String fileType,
int transId)
ftId - the internal DBMS id for the file type.name - the file's name.contributor - user name of the file's contributor.size - the file's size in bytes.qaRelease - the date the file becomes available to the public?checksum - the file's checksum.note - a note, or message associated with the file.serverGroup - fileType - file typetransId - transaction id
public QResult(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note)
ftId - the internal DBMS id for the file type.name - the file's name.contributor - user name of the file's contributor.size - the file's size in bytes.qaRelease - the date the file becomes available to the public?checksum - the file's checksum.note - a note, or message associated with the file.
public QResult(String vft,
String refName,
String refLink,
String refFileType,
String refFileName,
String comment,
String updateFileType,
String updateFileName,
boolean updateRef)
vft - the virtual file type namerefName - the reference namerefLink - the reference linkrefFileType - the reference file typerefFileName - the reference file namecomment - the reference commentupdateFileType - the update reference file typeupdateFileName - the update reference file nameupdateRef - the update reference flag. Is an update pending?
public QResult(String vft,
String title,
String comment,
String createdBy,
String created,
String updatedBy,
String updated)
vft - the virtual file type name.title - the title of the virtual file type.comment - the comment assoicated with the last update.createdBy - the agent that created the vftcreated - the time vft was createdupdatedBy - the agent that updated the vft.updated - the time of update.| Method Detail |
|---|
public void setDoNotShowUser()
public final boolean isDoNotShowUser()
public void setMessage(String message)
message - associated with this transactionpublic void setClientRestartCache(ClientRestartCache restartCache)
restartInfo - the restart file name for commit.public final String getMessage()
public void setComment(String comment)
comment - the comment associated with this filepublic final String getComment()
public void setTitle(String title)
title - the title associated with this filepublic final String getTitle()
public void setReceiptId(int receiptId)
receiptId - the receipt id associated with this filepublic final int getReceiptId()
public void setArchiveNote(String archiveNote)
archiveNote - the archive note for this file.public final String getArchiveNote()
public final void setErrno(int errno)
errno - the new errno. 0 is OK.public final int getErrno()
public void setEoT()
public String getType()
public void setType(String fileType)
fileType - filetype associated with this transactionpublic String getServerGroup()
public final boolean isEoT()
public int getTransactionId()
public final String getVFTName()
public final String getCreatedBy()
public final String getCreated()
public final void setCreated(String created)
created - the file/vft create timepublic final String getUpdatedBy()
public final void setUpdatedBy(String updatedBy)
updatedBy - the agent's namepublic final String getUpdated()
public final String getRefName()
public final void setRefName(String refName)
refName - the reference name string.public final String getRefFileName()
public final void setRefFileName(String refFileName)
refFileName - reference file name string.public final String getRefFileType()
public final void setRefFileType(String refFileType)
refFileType - the reference file type string.public String getVFTHeader()
public final boolean updateRef()
public final String getUpdateFileName()
public final String getUpdateFileType()
public final String getRefLink()
public final String getName()
public final void setName(String name)
name - the file name string.public final long getSize()
public long getFileBufferSize()
public final byte[] getFileBuffer()
public final void setFileBuffer(byte[] fileBuffer)
fileBuffer - the buffer containing file.public final void setSize(long size)
size - the file sizepublic final Date getDate()
public final Date getFileModificationTime()
public final void setDate(Date date)
date - the date string.public final void setFileModificationTime(Date date)
date - the date string.public final int getFtId()
public final void setFtId(int ftId)
ftId - the file's internal DBMS id for the file type.public final String getFileContributor()
public final void setFileContributor(String contributor)
contributor - the file contributorpublic final Date getFileCreationTime()
public final void setFileCreationTime(Date created)
created - file creation timepublic final String getQaRelease()
public final byte[] getChecksum()
public boolean secure()
public String getChecksumStr()
public final void setChecksum(byte[] checksum)
checksum - the checksum value associated with this transactionpublic final void setChecksum(String checksum)
checksum - the checksum from hex ascii string input.public final String getNote()
public final void setNote(String note)
note - the note to associate with a file.public final String getLocation()
public final void setLocation(String location)
location - the location of the filepublic final long getFileId()
public final void setFileId(long fileId)
fileId - the id of the file
public final void commit()
throws SessionException
SessionException - when session failurepublic ClientRestartCache getClientRestartCache()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||