|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.Search
The Search class provides a way to search for objects. A Search is specified by a SearchSpecification. To execute a Search use the open, next & close functions.
SearchSpecification
,
AttributeSearchSpecification
,
ContextSearchSpecification
,
SearchResultObject
Constructor Summary | |
|
Search(LibrarySession sess,
SearchSpecification sp)
Constructs a Search object. |
Method Summary | |
void |
close()
Closes the search. |
void |
dispose()
Disposes this Search. |
int |
getItemCount()
Returns the number of rows in search result. |
int |
getItemCount(AttributeValue[] bindValues)
Returns the number of rows in search result. |
int |
getItemCount(AttributeValue[] bindValues,
java.lang.String language)
Returns the number of rows in search result. |
int |
getItemCount(AttributeValue[] bindValues,
java.lang.String language,
int timeout)
Returns the number of rows in search result. |
int |
getItemCount(java.lang.String language)
Returns the number of rows in search result. |
SearchSpecification |
getSearchSpecification()
Returns the SearchSpecification of this Search. |
java.lang.String |
getSQL()
Returns the SQL query generated by the search. |
SearchResultObject |
next()
Returns the next result row. |
void |
open()
Opens the Search. |
void |
open(AttributeValue[] bindValues)
Opens the Search. |
void |
open(AttributeValue[] bindValues,
java.lang.String language)
Opens the Search. |
void |
open(AttributeValue[] bindValues,
java.lang.String language,
int timeout)
Opens the Search. |
void |
open(java.lang.String language)
Opens the Search. |
void |
setSearchSpecification(SearchSpecification sp)
Set the SearchSpecification. |
Constructor Detail |
public Search(LibrarySession sess, SearchSpecification sp) throws IfsException
sess
- LibrarySession in which Search will execute.sp
- SearchSpecification defining Search. The SearchSpecification is cloned,
any changes in SearchSpecification after constructing a Search will not
be picked up.IfsException
- 21000 if sess is not valid; 19001 if sp is not validMethod Detail |
public void setSearchSpecification(SearchSpecification sp) throws IfsException
sp
- SearchSpecification defining Search.IfsException
- 19001 if sp is not validpublic SearchSpecification getSearchSpecification() throws IfsException
IfsException
- if the operation failspublic void open() throws IfsException
IfsException
- if the operation fails.public void open(java.lang.String language) throws IfsException
langauge
- language to be used for searchIfsException
- if open failspublic void open(AttributeValue[] bindValues) throws IfsException
bindValues
- array of late bound valuesIfsException
- if open failspublic void open(AttributeValue[] bindValues, java.lang.String language) throws IfsException
bindValues
- array of late bound valueslanguage
- language to be used for the searchIfsException
- if open failspublic void open(AttributeValue[] bindValues, java.lang.String language, int timeout) throws IfsException
bindValues
- array of late bound valueslanguage
- language to be used for the searchtimeout
- search will timeout after this number of secondsIfsException
- if open failspublic int getItemCount() throws IfsException
IfsException
- if the operation fails.public int getItemCount(java.lang.String language) throws IfsException
langauge
- language to be used for searchIfsException
- if the operation fails.public int getItemCount(AttributeValue[] bindValues) throws IfsException
bindValues
- array of late bound valuesIfsException
- if the operation fails.public int getItemCount(AttributeValue[] bindValues, java.lang.String language) throws IfsException
bindValues
- array of late bound valueslanguage
- language to be used for the searchIfsException
- if the operation fails.public int getItemCount(AttributeValue[] bindValues, java.lang.String language, int timeout) throws IfsException
bindValues
- array of late bound valueslanguage
- language to be used for the searchtimeout
- search will timeout after this amount of timeIfsException
- if the operation fails.public java.lang.String getSQL() throws IfsException
IfsException
- if the operation failspublic SearchResultObject next() throws IfsException
IfsException
- IFS-22000 if there is no more rows in the search results.SearchResultObject
public void close() throws IfsException
IfsException
- if operation failspublic void dispose() throws IfsException
Dispose a search to fully release its resources. If opened, the Search is closed. Once disposed, the Search cannot be reopened.
IfsException
- if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |