com.altair.hwm.fileserver.server
Class HWMQuery

java.lang.Object
  extended by com.altair.hwm.fileserver.server.HWMQuery

public class HWMQuery
extends java.lang.Object

Title: HWMQuery

Description: Query for file information. This will be implemented in phase2

Company: Altair Engineering, Inc.


Constructor Summary
HWMQuery(HWMFileServer hwmFS)
          Constructor
 
Method Summary
 java.util.Vector Query(java.lang.String strFName, int nFileID, java.lang.String strFType, java.lang.String strFDesc, java.lang.String strRevision, int nVersion, java.lang.String strUser, java.lang.String verDesc, boolean bAnd)
          Query for file information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMQuery

public HWMQuery(HWMFileServer hwmFS)
Constructor

Parameters:
hwmFS - The file server object that initailizes the file server and contains the db cxn pool
Method Detail

Query

public java.util.Vector Query(java.lang.String strFName,
                              int nFileID,
                              java.lang.String strFType,
                              java.lang.String strFDesc,
                              java.lang.String strRevision,
                              int nVersion,
                              java.lang.String strUser,
                              java.lang.String verDesc,
                              boolean bAnd)
                       throws java.lang.Exception
Query for file information.

Parameters:
strFName - The file name
nFileID - The file id If -1 - ignored
strFType - The file type
strFDesc - The file decsription
strRevision - The revision name
nVersion - The version for the file. If -1 - ignored
strser - The user name
strVerDesc - the version description
bAnd - If true - the conjunction of all the conditions is considered else disjunction
Returns:
Vector vector of HWMFileInfo containing file information for each of the matched result
Throws:
java.lang.Exception