public class ODFolder extends ODCallback implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
CFSODAddHits(java.util.Vector hits)
Add documents to the OnDemand CFSOD Definition.
|
void |
clearAllFields()
Clear the ODCriteria values for the ODFolder.
|
void |
close()
This method will close the folder.
|
void |
deleteDocs(java.util.Vector hits)
Delete document row(s) from the OnDemand Database.
|
void |
deleteNamedQuery(java.lang.String NQName)
Delete a Named Query from the OnDemand Server.
|
void |
duplicateHit(ODHit odHit,
java.lang.String[] values)
This method will create a new hit for an existing document in the OnDemand repository, using the specified DB Field Values.
|
ODHit |
duplicateHit(ODHit odHit,
java.lang.String[] values,
java.lang.Object reserved)
This method will create a new hit for an existing document in the OnDemand repository, using the specified DB Field Values.
|
void |
freeHitlistMem()
Clear the hits and free the native memory used to build the search results without closing the folder.
|
void |
FTIAddHits(java.util.Vector hits)
Add documents to the Full Text Index.
|
void |
FTIReleaseHits(java.util.Vector hits)
Release documents from the Full Text Index.
|
java.lang.String[] |
getApplGroupNames()
Get the application groups for this folder.
|
java.lang.Object[] |
getApplNames(java.lang.String applGroup)
Get the applications for the specified application group
for this folder
|
java.lang.String |
getBaseDescription()
Get the base description of the folder.
|
java.lang.String |
getBaseName()
The base name of the folder.
|
java.util.Enumeration |
getCriteria()
Get the search criteria for this folder.
|
ODCriteria |
getCriteria(java.lang.String name)
Get criteria object for the specified criteria name.
|
ODCriteria |
getCriteriaByBasename(java.lang.String basename)
Get criteria object for the specified criteria name.
|
java.util.ArrayList |
getCriteriaDisplayOrder()
Get the criteria display order for the folder
This order is set by the OnDemand administrator
and via the user.
|
java.util.ArrayList |
getCriteriaQueryOrder()
Get the criteria query order for the folder
This order is set by the OnDemand administrator
and via the user.
|
java.util.ArrayList |
getCriteriaSortOrder()
Get the criteria sort order for the folder
This order is set by the OnDemand administrator
and via the user.
|
java.lang.String |
getDescription()
The description of the folder.
|
java.lang.String[] |
getDisplayOrder()
Get the display order for the folder's criteria.
|
java.util.ArrayList |
getFolderSortOrder()
Deprecated.
|
java.util.Vector |
getHits()
Return the hits obtained from the last search method call.
|
int |
getMaxHits()
Get the maximum number of hits that will be returned from a search.
|
java.lang.String |
getName()
The name of the folder.
|
ODNamedQuery |
getNamedQuery(java.lang.String name)
Get a
ODNamedQuery object. |
java.util.Enumeration |
getNamedQueryNames()
Get the names of all NamedQueries specified in this folder.
|
int |
getNumApplGroups()
Get the number of application groups for this folder.
|
int |
getNumAppls(java.lang.String applGroup)
Get the number of applications in the specified application group
for this folder.
|
int |
getNumCriteria()
Get the number of criteria defined for this folder.
|
short |
getPermissions()
Use this mask value to determine the current user's folder permissions.
|
java.lang.String[] |
getQueryOrder()
Get the query order for the folder's criteria.
|
java.lang.String |
getSearchMessage()
Message returned from server during search operation.
|
char |
getSortLocation()
Get the Sort Location.
|
java.lang.Object[][] |
getStoreDocFields(java.lang.String applGroup,
java.lang.String appl)
Get the valid folder fields for a storedoc operation.
|
void |
HoldAddHits(java.util.Vector hits,
ODHold hold)
Add documents to a specific OnDemand Hold for Enhanced Retention management.
|
void |
HoldReleaseHits(java.util.Vector hits,
ODHold hold)
Release documents from a specific OnDemand Hold.
|
void |
ImpliedHoldReleaseHits(java.util.Vector hits)
Release Documents from an Implied Hold status.
|
boolean |
isApplicationGroupRMEnabled(long agid)
Deprecated.
|
boolean |
isApplicationGroupRMEnabled(java.lang.String name)
Deprecated.
|
boolean |
isOrSearchCriteria()
Determines whether the search criteria are being ORed or ANDed
during a search with criteria.
|
void |
open()
This method will open the folder.
|
void |
printDocuments(java.util.Vector hits,
java.lang.String printer,
int copies)
Print the specified hits from this folder.
|
ODHit |
recreateHit(java.lang.String doc_id)
This method will create an ODHit object for the document identified
by a document id.
|
void |
restoreCriteriaToDefaults()
Restore the ODCriteria values and operators to their defaults
|
void |
retrieve(ODCallback odCallback)
This method will retrieve the current hits, i.e., those returned
from the last successful search method call.
|
void |
retrieve(java.lang.String[] ids,
ODCallback odCallback)
This method will retrieve the specified documents from this folder.
|
void |
retrieve(java.util.Vector hits,
ODCallback odCallback)
This method will retrieve the specified hits from this folder.
|
void |
saveNamedQuery(java.lang.String name,
boolean pub,
java.util.Enumeration odCrit)
Deprecated.
|
ODNamedQuery |
saveNamedQuery(java.lang.String name,
boolean pub,
java.util.Enumeration odCrit,
boolean reserved)
Save a Named Query.
|
java.util.Vector |
search()
This method will search the folder.
|
java.util.Vector |
search(ODCallback odCallback)
This method will search the folder.
|
java.util.Vector |
search(ODCallback odCallback,
boolean use_docloc_hit_callback)
This method will search the folder.
|
java.util.Vector |
search(ODCallback odCallback,
ODNamedQuery namedQ)
This method will search the folder with the specified Named Query Criteria.
|
java.util.Vector |
search(ODNamedQuery namedQ)
This method will search the folder with the specified NamedQuery Criteria.
|
java.util.Vector |
search(java.lang.String sql)
This method will search the folder.
|
java.util.Vector |
search(java.lang.String sql,
ODCallback cb)
If you use this method the SQL query is used to search the folder
rather than any folder field name/value pairs.
|
java.util.Vector |
search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate)
This method will search the folder.
|
java.util.Vector |
search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
ODCallback cb)
If you use this method the SQL query is used to search the folder
rather than any folder field name/value pairs.
|
java.util.Vector |
search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
java.lang.String dateFmt)
This method will search the folder.
|
java.util.Vector |
search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
java.lang.String dateFmt,
ODCallback odCallback)
If you use this method the SQL query is used to search the folder
rather than any folder field name/value pairs.
|
long |
searchCountHits()
Get the total count of hits that will be returned from a search based on the criteria specified.
|
long |
searchCountHits(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
java.lang.String dateFmt)
Get the total count of hits that will be returned from a search based on the specified SQL.
|
void |
searchWithCallback(ODCallback odCallback)
This method will search the folder.
|
void |
searchWithCallback(java.lang.String sql,
ODCallback cb)
This method will search the folder asynchronously.
|
void |
searchWithCallback(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
ODCallback odCallback)
This method will search the folder asynchronously.
|
void |
setApplGroupForSearchWithSQL(java.lang.String appl_group_name)
This method will set the name of an application group to be used
during a search with SQL.
|
void |
setMaxHits(int max)
Set the Maximum Hits allowed to be returned during a search.
|
void |
setOrSearchCriteria(boolean or_search_criteria)
Sets whether the search criteria are to be ORed or ANDed during a
search with criteria.
|
java.lang.String[] |
setSearchInfoForAutofind()
Set the information from the most recent search to be used to build the AutoFindString
passed to the applet prior to an ODHit.retrieve() call.
|
void |
setServerPrinterData(int index,
java.lang.String data)
Set server printer data.
|
void |
setSortLocation(char sortLoc)
Set the Sort Location.
|
boolean |
showHoldStatus()
Determine whether the current OnDemand Hold status should be shown in the hitlist.
|
ODHit |
storeDocument(byte[] bytearray,
java.lang.String appl_grp_name,
java.lang.String appl_name,
java.lang.String[] values)
This method will store a document in the OnDemand database.
|
void |
storeDocument(java.lang.String path,
java.lang.String appl_grp_name,
java.lang.String appl_name,
java.lang.String[] values)
This method will store a document in the OnDemand database.
|
ODHit |
storeDocument(java.lang.String path,
java.lang.String appl_grp_name,
java.lang.String appl_name,
java.lang.String[] values,
java.lang.Object reserved)
This method will store a document in the OnDemand database.
|
void |
updateValuesForHits(java.util.Vector hits,
java.util.Hashtable newValues)
Update an array of ODHits with specified criteria values.
|
DataCallback, HitCallback, HitCallback, HitHandleCallback, xmlProcessBegin, xmlProcessEnd, xmlProcessMsgpublic void open()
throws java.lang.Exception
java.lang.Exceptionpublic void close()
public java.util.Vector search()
throws java.lang.Exception
java.lang.ExceptionODHit,
ODServer.cancel()public java.util.Vector search(ODNamedQuery namedQ) throws java.lang.Exception
java.lang.ExceptionODHit,
ODServer.cancel()public void searchWithCallback(ODCallback odCallback) throws java.lang.Exception
ODFolder.getHits()
after the search is complete.odCallback - An instance of the ODCallback object.
This object will allow the calling application to cancel/wait
for the search to complete.java.lang.ExceptionODFolder.search(ODCallback),
ODFolder.getHits(),
ODCallback,
ODServer.cancel()public java.util.Vector search(ODCallback odCallback) throws java.lang.Exception
odCallback - An instance of the ODCallback object.
This object will allow the calling application to cancel the
search.java.lang.ExceptionODCallback,
ODServer.cancel()public java.util.Vector search(ODCallback odCallback, ODNamedQuery namedQ) throws java.lang.Exception
odCallback - An instance of the ODCallback object.
This object will allow the calling application to cancel the
search.namedQ - An instance of the ODNamedQuery object.
This NamedQuery object contains pre-set search criteria.java.lang.ExceptionODCallback,
ODNamedQuery,
ODServer.cancel()public java.util.Vector search(ODCallback odCallback, boolean use_docloc_hit_callback) throws java.lang.Exception
odCallback - An instance of the ODCallback object.
This object will allow the calling application to cancel the
search.use_docloc_hit_callback - Indicates whether (true) or not (false)
to return a parameter specifying the document location to the
HitCallback method.java.lang.ExceptionODCallback,
ODServer.cancel()public java.util.Vector search(java.lang.String sql)
throws java.lang.Exception
sql - An sql string containing the search directive.java.lang.ExceptionODHit,
ODServer.cancel()public void searchWithCallback(java.lang.String sql,
ODCallback cb)
throws java.lang.Exception
ODFolder.getHits()
after the search is complete.sql - An sql string containing the search directive.cb - An instance of an ODCallback object.java.lang.ExceptionODFolder.search(String, ODCallback),
ODFolder.getHits(),
ODCallback,
ODServer.cancel()public java.util.Vector search(java.lang.String sql,
ODCallback cb)
throws java.lang.Exception
sql - An sql string containing the search directive.cb - An instance of an ODCallback object.java.lang.ExceptionODServer.cancel(),
ODCallbackpublic java.util.Vector search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate)
throws java.lang.Exception
sql - An sql string containing the search directive.segStartDate - Use to specify the segment start date. Combined with the Stop date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format of the folder field.segStopDate - Use to specify the segment stop date. Combined with the Start date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format of the folder field.java.lang.ExceptionODHit,
ODServer.cancel()public java.util.Vector search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
java.lang.String dateFmt)
throws java.lang.Exception
sql - An sql string containing the search directive.segStartDate - Use to specify the segment start date. Combined with the Stop date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format specified in param dateFmt.segStopDate - Use to specify the segment stop date. Combined with the Start date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format specified in param dateFmt.dateFmt - Used to specify the format of the dates.java.lang.ExceptionODHit,
ODServer.cancel()public void searchWithCallback(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
ODCallback odCallback)
throws java.lang.Exception
ODFolder.getHits()
after the search is complete.sql - An sql string containing the search directive.segStartDate - Use to specify the segment start date. Combined with the Stop date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format of the folder field.segStopDate - Use to specify the segment stop date. Combined with the Start date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format of the folder field.odCallback - ODCallback object.java.lang.ExceptionODFolder.search(String, String, String, ODCallback),
ODFolder.getHits(),
ODCallback,
ODServer.cancel()public java.util.Vector search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
ODCallback cb)
throws java.lang.Exception
sql - An sql string containing the search directive.segStartDate - Use to specify the segment start date. Combined with the Stop date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format of the folder field.segStopDate - Use to specify the segment stop date. Combined with the Start date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format of the folder field.cb - An instance of an ODCallback object.java.lang.ExceptionODCallback,
ODServer.cancel()public java.util.Vector search(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
java.lang.String dateFmt,
ODCallback odCallback)
throws java.lang.Exception
sql - An sql string containing the search directive.segStartDate - Use to specify the segment start date. Combined with the Stop date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must the date format specified in dateFmt.segStopDate - Use to specify the segment stop date. Combined with the Start date,
this will limit the search to segment tables that include this date
range. The format of the date string that you specify
must match the display format specified in dateFmt.dateFmt - Used to specify the format of the dates.odCallback - ODCallback object.java.lang.ExceptionODCallback,
ODServer.cancel()public long searchCountHits()
throws java.lang.Exception
java.lang.Exceptionpublic long searchCountHits(java.lang.String sql,
java.lang.String segStartDate,
java.lang.String segStopDate,
java.lang.String dateFmt)
throws java.lang.Exception
java.lang.Exceptionpublic void setApplGroupForSearchWithSQL(java.lang.String appl_group_name)
appl_group_name - The name of an application group.public void setOrSearchCriteria(boolean or_search_criteria)
or_search_criteria - true if search criteria are to be ORed;
false if search criteria are to be ANDed.public boolean isOrSearchCriteria()
public void retrieve(ODCallback odCallback) throws java.lang.Exception
odCallback - ODCallback object.java.lang.ExceptionODCallbackpublic void retrieve(java.util.Vector hits,
ODCallback odCallback)
throws java.lang.Exception
ODCallback.hits - A vector of ODHit objects to retrieve.odCallback - ODCallback object.java.lang.ExceptionODCallbackpublic void retrieve(java.lang.String[] ids,
ODCallback odCallback)
throws java.lang.Exception
ids - An array of document ids.odCallback - ODCallback object.java.lang.ExceptionODCallbackpublic ODHit storeDocument(java.lang.String path, java.lang.String appl_grp_name, java.lang.String appl_name, java.lang.String[] values, java.lang.Object reserved) throws java.lang.Exception
path - The fully qualified path of a file
containing the data to be stored.appl_grp_name - The name of an application
group within the folder.appl_name - The name of an application within
the application.values - An array of values. See ODFolder.getStoreDocFields(java.lang.String, java.lang.String) for the ordering
of this array. The values in this array must be specified in the
same order as those returned from the ODFolder.getStoreDocFields(java.lang.String, java.lang.String) method.java.lang.ExceptionODFolder.getStoreDocFields(java.lang.String, java.lang.String),
ODHit.hasRetrievableDoc()public void storeDocument(java.lang.String path,
java.lang.String appl_grp_name,
java.lang.String appl_name,
java.lang.String[] values)
throws java.lang.Exception
path - The fully qualified path of a file
containing the data to be stored.appl_grp_name - The name of an application
group within the folder.appl_name - The name of an application within
the application.values - An array of values. See ODFolder.getStoreDocFields(java.lang.String, java.lang.String) for the ordering
of this array. The values in this array must be specified in the
same order as those returned from the ODFolder.getStoreDocFields(java.lang.String, java.lang.String) method.java.lang.ExceptionODFolder.getStoreDocFields(java.lang.String, java.lang.String),
ODHit.hasRetrievableDoc()public ODHit storeDocument(byte[] bytearray, java.lang.String appl_grp_name, java.lang.String appl_name, java.lang.String[] values) throws java.lang.Exception
bytearray - The byte array
containing the data to be stored.appl_grp_name - The name of an application
group within the folder.appl_name - The name of an application within
the application.values - An array of values. See ODFolder.getStoreDocFields(java.lang.String, java.lang.String) for the ordering
of this array. The values in this array must be specified in the
same order as those returned from the ODFolder.getStoreDocFields(java.lang.String, java.lang.String) method.java.lang.ExceptionODFolder.getStoreDocFields(java.lang.String, java.lang.String),
ODHit.hasRetrievableDoc()public void duplicateHit(ODHit odHit, java.lang.String[] values) throws java.lang.Exception
odHit - An existing ODHit that contains the document data to be referenced by the index this API will create.values - An array of values. These values will be used for the new index values stored to the OD Database.
See ODFolder.getStoreDocFields(java.lang.String, java.lang.String) for the ordering
of this array. The values in this array must be specified in the
same order as those returned from the ODFolder.getStoreDocFields(java.lang.String, java.lang.String) method, and all values must be specified.java.lang.ExceptionODFolder.getStoreDocFields(java.lang.String, java.lang.String)public ODHit duplicateHit(ODHit odHit, java.lang.String[] values, java.lang.Object reserved) throws java.lang.Exception
odHit - An existing ODHit that contains the document data to be referenced by the index this API will create.values - An array of values. These values will be used for the new index values stored to the OD Database.
See ODFolder.getStoreDocFields(java.lang.String, java.lang.String) for the ordering
of this array. The values in this array must be specified in the
same order as those returned from the ODFolder.getStoreDocFields(java.lang.String, java.lang.String) method, and all values must be specified.reserved - for future use.java.lang.ExceptionODFolder.getStoreDocFields(java.lang.String, java.lang.String)public void setServerPrinterData(int index,
java.lang.String data)
throws java.lang.Exception
index - ODConstant for SERVER_PRINTER_DATAdata - String data to set for the specified index.java.lang.ExceptionODConstant.SERVER_PRINTER_DATA_FAX_RECEIVER_NAME,
ODConstant.SERVER_PRINTER_DATA_FAX_RECEIVER_COMPANY,
ODConstant.SERVER_PRINTER_DATA_FAX_RECEIVER_FAX_NUMBER,
ODConstant.SERVER_PRINTER_DATA_FAX_SENDER_NAME,
ODConstant.SERVER_PRINTER_DATA_FAX_SENDER_COMPANY,
ODConstant.SERVER_PRINTER_DATA_FAX_SENDER_TEL_NUMBER,
ODConstant.SERVER_PRINTER_DATA_FAX_SENDER_FAX_NUMBER,
ODConstant.SERVER_PRINTER_DATA_FAX_SENDER_COVER_PAGE,
ODConstant.SERVER_PRINTER_DATA_FAX_SUBJECT,
ODConstant.SERVER_PRINTER_DATA_FAX_NOTES,
ODConstant.SERVER_PRINTER_DATA_INFO_FROM,
ODConstant.SERVER_PRINTER_DATA_INFO_TOpublic void printDocuments(java.util.Vector hits,
java.lang.String printer,
int copies)
throws java.lang.Exception
hits - Vector of hits returned from searchprinter - The name of a server printer defined within OnDemand.copies - Number of copies each document is to be printedjava.lang.Exceptionpublic java.util.Vector getHits()
ODHitpublic java.lang.String getSearchMessage()
public java.lang.String getName()
public java.lang.String getBaseName()
public java.lang.String getDescription()
public java.lang.String getBaseDescription()
public java.util.ArrayList getFolderSortOrder()
ODFolder.getCriteriaSortOrder()public java.util.ArrayList getCriteriaSortOrder()
public java.util.ArrayList getCriteriaDisplayOrder()
public java.util.ArrayList getCriteriaQueryOrder()
public java.lang.String[] getDisplayOrder()
public java.lang.String[] getQueryOrder()
public int getNumCriteria()
public int getNumApplGroups()
public java.lang.String[] getApplGroupNames()
public int getNumAppls(java.lang.String applGroup)
public java.lang.Object[] getApplNames(java.lang.String applGroup)
public java.lang.Object[][] getStoreDocFields(java.lang.String applGroup,
java.lang.String appl)
throws java.lang.Exception
ODFolder.storeDocument(java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.Object) api. If no mapping
exists for a given application group field, a value of null must
still be specified for it during the ODFolder.storeDocument(java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.Object) api.
The following demonstrates the access to this two dimensional
array:
arr[0][0] - The first application group field.
arr[0][1] - Folder field name for application group field
if mapping exists.
arr[1][0] - The second application group field.
arr[1][1] - Folder field name for application group field
if mapping exists.
...
...
arr[n][0] - The Nth application group field.
arr[n][1] - Folder field name for application group field
if mapping exists.
java.lang.ExceptionODFolder.storeDocument(java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.Object)public java.util.Enumeration getCriteria()
ODCriteriapublic ODCriteria getCriteriaByBasename(java.lang.String basename)
ODCriteriapublic ODCriteria getCriteria(java.lang.String name)
ODCriteriapublic boolean isApplicationGroupRMEnabled(long agid)
throws java.lang.Exception
agid - The application group identifier.java.lang.Exceptionpublic boolean isApplicationGroupRMEnabled(java.lang.String name)
throws java.lang.Exception
name - The application group name.java.lang.Exceptionpublic ODHit recreateHit(java.lang.String doc_id) throws java.lang.Exception
doc_id - A document id. This value would typically have been
saved after a call to the ODHit.getDocId method.java.lang.Exceptionpublic void updateValuesForHits(java.util.Vector hits,
java.util.Hashtable newValues)
throws java.lang.Exception
hits - An array of ODHit objects to be updated.newValues - - This hashtable contains the criteria names to update along with the new values.java.lang.ExceptionODHit.getDocId(),
ODCriteria.getDBFixedValuesMapping(String agName),
ODCriteria.isUpdateable(java.lang.String, java.lang.String)public void CFSODAddHits(java.util.Vector hits)
throws java.lang.Exception
hits - A Vector of ODHits to be added to the CFSOD Definitionsjava.lang.Exceptionpublic void HoldAddHits(java.util.Vector hits,
ODHold hold)
throws java.lang.Exception
hits - A Vector of ODHits to be added to the OnDemand Enhanced Retention Management system.hold - An OnDemand object representing and OnDemand Hold definition.java.lang.ExceptionODHoldpublic void HoldReleaseHits(java.util.Vector hits,
ODHold hold)
throws java.lang.Exception
hits - A Vector of ODHits to be removed from the OnDemand Enhanced Retention Management system.hold - An OnDemand object representing and OnDemand Hold definition.java.lang.ExceptionODHoldpublic void ImpliedHoldReleaseHits(java.util.Vector hits)
throws java.lang.Exception
hits - A Vector of ODHits to be released from the OnDemand Enhanced Retention Management system.java.lang.Exceptionpublic void deleteDocs(java.util.Vector hits)
throws java.lang.Exception
hits - Vector of ODHit objects that will be deleted from the database.java.lang.ExceptionODApplicationGroup.getDocPerms(),
ODHitpublic java.util.Enumeration getNamedQueryNames()
throws java.lang.Exception
java.lang.Exceptionpublic ODNamedQuery getNamedQuery(java.lang.String name) throws java.lang.Exception
ODNamedQuery object.
name - The name of the Named Query to retrieve. This must be the fully composed Display Name
as returned from #saveNamedQuery().
For example: "NQName(Public)"java.lang.ExceptionODNamedQuerypublic void saveNamedQuery(java.lang.String name,
boolean pub,
java.util.Enumeration odCrit)
throws java.lang.Exception
ODFolder.saveNamedQuery(String, boolean, Enumeration, boolean)ODFolder.getNamedQueryNames(),
so that you get the proper display format for the Named Query name which will include the (Public)/(Private)
designation. Optionally, you can use #saveNamedQuery(String, boolean, Enumeration,boolean) which will return the ODNamedQuery with the
correct naming.
name - Criteria Namepub - if all users will have access specify trueodCrit - an Enumeration of ODCriteria Objects.java.lang.ExceptionODFolder.saveNamedQuery(String,boolean,Enumeration,boolean),
ODCriteria,
ODCriteria.isQueryable()public ODNamedQuery saveNamedQuery(java.lang.String name, boolean pub, java.util.Enumeration odCrit, boolean reserved) throws java.lang.Exception
name - Criteria Namepub - if all users will have access specify trueodCrit - An Enumeration of ODCriteria Objects.reserved - This parameter is reserved for internal use only.java.lang.ExceptionODCriteria,
ODCriteria.isQueryable()public void deleteNamedQuery(java.lang.String NQName)
throws java.lang.Exception
NQName - the Display Name of the Named Query you want removed from the OnDemand Server. This name should include
the "(Public)" or "(Private)" identifier as returned from ODFolder.saveNamedQuery(java.lang.String, boolean, java.util.Enumeration).java.lang.ExceptionODNamedQuerypublic short getPermissions()
System.out.println("Has Perms to add Public Named Queries" +
((odFolder.getPermissions() & ODConstant.OD_FOLDER_ID_NAMEDQ_PUB)!= 0 ? true : false));
ODConstant.OD_FOLDER_ID_ACCESS,
ODConstant.OD_FOLDER_ID_ADMIN,
ODConstant.OD_FOLDER_ID_DEFINE,
ODConstant.OD_FOLDER_ID_FOLFLD,
ODConstant.OD_FOLDER_ID_NAMEDQ_PUB,
ODConstant.OD_FOLDER_ID_NAMEDQ_PRI,
ODConstant.OD_FOLDER_ID_NAMEDQ_VIEW,
ODConstant.OD_FOLDER_ID_SECONDARY,
ODConstant.OD_FOLDER_ID_ALLOW_FULL_RPT_BRWSEpublic void setMaxHits(int max)
ODFolder.getSortLocation(), the sort order of the hitlist returned may be affected.
If the folder contains more than one Application Group, the Application Groups will be searched
sequentially according to the order in which they were added, and when MaxHits is reached the search will cease.
This could possibly lead to some Application Groups not being searched.max - Any positive integer that specifies the max number of hits that can be returned from a search or -1 for no limit.ODFolder.getMaxHits(),
ODFolder.setSortLocation(char),
ODFolder.getSortLocation()public int getMaxHits()
public void setSortLocation(char sortLoc)
Search with OD_SORT_LOCATION_NONE: MaxHits results will be returned in DB order (not sorted).
Search with OD_SORT_LOCATION_MIDTIER: MaxHits results are returned in DB Order (not sorted) then
sorted by ODWEK on the midtier.
Search with OD_SORT_LOCATION_SERVER: Search results are sorted at the OnDemand Server, then MaxHits
are returned. This option is only supported with a version 7.1.2.8
server or greater.
NOTE: If the folder contains more than one Application Group, the Application Groups will be searched
sequentially according to the order in which they were added. When MaxHits is reached the search will cease.
This could possibly lead to some Application Groups not being searched. The sorted results will contain only hits
from the Application Groups that were searched.sortLoc - Constant for SORT_LOCATIONODFolder.getMaxHits(),
ODFolder.setMaxHits(int),
ODFolder.search(),
ODConstant.OD_SORT_LOCATION_NONE,
ODConstant.OD_SORT_LOCATION_MIDTIER,
ODConstant.OD_SORT_LOCATION_SERVERpublic char getSortLocation()
ODFolder.setSortLocation(char),
ODConstant.OD_SORT_LOCATION_NONE,
ODConstant.OD_SORT_LOCATION_MIDTIER,
ODConstant.OD_SORT_LOCATION_SERVERpublic boolean showHoldStatus()
public void restoreCriteriaToDefaults()
throws java.lang.Exception
java.lang.Exceptionpublic void clearAllFields()
throws java.lang.Exception
java.lang.ExceptionODCriteria.isDefaultValueAvailable(),
ODCriteria.isDefaultValueFixed()public void FTIAddHits(java.util.Vector hits)
throws java.lang.Exception
hits - A Vector of ODHits to be added to the Full Text Indexjava.lang.Exceptionpublic void FTIReleaseHits(java.util.Vector hits)
throws java.lang.Exception
hits - A Vector of ODHits to be released from the Full Text Indexjava.lang.Exceptionpublic java.lang.String[] setSearchInfoForAutofind()
throws java.lang.Exception
ODHit.buildAutoFindStrForHit(String[]).
null is returned if this function is called after a search that doesn't perform a text or transaction search.java.lang.ExceptionODHit.buildAutoFindStrForHit(String[]),
ODFolder.search(),
ODHit.retrieve(String)public void freeHitlistMem()
ODFolder.close(),
ODFolder.search()(c)Copyright International Business Machines Corporation 2001, 2020. IBM Corp. All rights reserved.