|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DView
Represents a view or folder of a database and provides access to documents within it.
Method Summary | |
---|---|
void |
clear()
Clears the full-text search filtering on a view. |
int |
fullTextSearch(java.lang.String query)
Conducts a full-text search on all documents in a view and filters the view so it represents only those documents that match the full-text query. |
int |
fullTextSearch(java.lang.String query,
int maxdocs)
Conducts a full-text search on all documents in a view and filters the view so it represents only those documents that match the full-text query. |
java.util.Iterator |
getAllCategories()
Finds view entries of type category. |
java.util.Iterator |
getAllCategories(int level)
Finds view entries of type category upto a given level. |
java.util.Iterator |
getAllCategoriesByKey(java.util.List key)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllCategoriesByKey(java.util.List key,
boolean exact)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllCategoriesByKey(java.util.List key,
int level)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllCategoriesByKey(java.util.List key,
int level,
boolean exact)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllCategoriesByKey(java.lang.String key)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllCategoriesByKey(java.lang.String key,
boolean exact)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllCategoriesByKey(java.lang.String key,
int level)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllCategoriesByKey(java.lang.String key,
int level,
boolean exact)
Deprecated. not yet fully implemented and not yet tested |
java.util.Iterator |
getAllDocuments()
Returns an Iterator to loop over all documents in the view. |
java.util.Iterator |
getAllDocumentsByKey(java.util.Calendar key)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(java.util.Calendar key,
boolean exact)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(double key)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(double key,
boolean exact)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(int key)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(int key,
boolean exact)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(java.util.List keys)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(java.util.List keys,
boolean exact)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(java.lang.String key)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllDocumentsByKey(java.lang.String key,
boolean exact)
Finds documents based on their column values within a view. |
java.util.Iterator |
getAllEntries()
Iterator over all entries in a view in view order. |
java.util.Iterator |
getAllEntries(DViewEntry entry)
Iterator over all entries in a view in view order starting with a given entry. |
java.util.Iterator |
getAllEntriesByKey(java.util.Calendar start,
java.util.Calendar end,
boolean exact)
Finds view entries of type document based on their column values within a view. |
java.util.Iterator |
getAllEntriesByKey(java.util.List key)
Finds view entries of type document based on their column values within a view. |
java.util.Iterator |
getAllEntriesByKey(java.util.List key,
boolean exact)
Finds view entries of type document based on their column values within a view. |
java.util.Iterator |
getAllEntriesByKey(java.lang.String key)
Finds view entries of type document based on their column values within a view. |
java.util.Iterator |
getAllEntriesByKey(java.lang.String key,
boolean exact)
Finds view entries of type document based on their column values within a view. |
java.util.Iterator |
getAllEntriesReverse()
Iterator over all entries in a view in reverse view order. |
DViewColumn |
getColumn(int i)
Returns a specified column in a view. |
int |
getColumnCount()
Returns the number of columns in a view. |
java.util.List |
getColumnNames()
Retutrns the names of the columns in a view. |
java.util.List |
getColumns()
Returns the columns in a view. |
DDocument |
getDocumentByKey(java.util.List keys,
boolean exact)
Finds a document based on its column values within a view. |
DDocument |
getDocumentByKey(java.lang.String key,
boolean exact)
Finds a document based on the first column value within a view. |
DViewEntry |
getEntryByKey(java.util.List keys)
Finds a view entry based on its column values within a view. |
DViewEntry |
getEntryByKey(java.util.List keys,
boolean exact)
Finds a view entry based on its column values within a view. |
DViewEntry |
getEntryByKey(java.lang.String key)
Finds a view entry based on its column values within a view. |
DViewEntry |
getEntryByKey(java.lang.String key,
boolean exact)
Finds a view entry based on its column values within a view. |
java.lang.String |
getName()
Returns the name of a view. |
java.lang.String |
getSelectionFormula()
Returns the selection formula of a view. |
void |
refresh()
Updates view contents with any changes that have occurred to the database since the View object was created, or since the last refresh. |
void |
setSelectionFormula(java.lang.String formula)
Sets the selection formula of a view. |
Methods inherited from interface de.bea.domingo.DBase |
---|
equals, hashCode, toString |
Method Detail |
---|
void refresh()
java.lang.String getName()
DDocument getDocumentByKey(java.lang.String key, boolean exact)
null
if there are no matching document.
key
- - String
A partial key must not be in a categorized colum!exact
- - boolean
DDocument getDocumentByKey(java.util.List keys, boolean exact)
null
if there are no matching document.
keys
- - List(Column-Value)
A partial key must not be in a categorized colum!exact
- - boolean
java.util.Iterator getAllDocumentsByKey(java.lang.String key)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- key
java.util.Iterator getAllDocumentsByKey(java.util.Calendar key)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- key
java.util.Iterator getAllDocumentsByKey(double key)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- key
java.util.Iterator getAllDocumentsByKey(int key)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- key
java.util.Iterator getAllDocumentsByKey(java.util.List keys)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
keys
- list of keys
java.util.Iterator getAllDocumentsByKey(java.lang.String key, boolean exact)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- keyexact
- True if you want to find an exact match. If you specify
false or omit this parameter, a partial match succeeds.
The use of partial matches with multiple keys may result in
missed documents. If the first key is partial and the second
column does not sort the same with the partial key as with the
exact key, documents that fall out of sequence are missed.
A partial key must not be in a categorized colum!
java.util.Iterator getAllDocumentsByKey(java.util.Calendar key, boolean exact)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- keyexact
- True if you want to find an exact match. If you specify
false or omit this parameter, a partial match succeeds.
The use of partial matches with multiple keys may result in
missed documents. If the first key is partial and the second
column does not sort the same with the partial key as with the
exact key, documents that fall out of sequence are missed.
A partial key must not be in a categorized colum!
java.util.Iterator getAllDocumentsByKey(double key, boolean exact)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- keyexact
- True if you want to find an exact match. If you specify
false or omit this parameter, a partial match succeeds.
The use of partial matches with multiple keys may result in
missed documents. If the first key is partial and the second
column does not sort the same with the partial key as with the
exact key, documents that fall out of sequence are missed.
A partial key must not be in a categorized colum!
java.util.Iterator getAllDocumentsByKey(int key, boolean exact)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
key
- keyexact
- True if you want to find an exact match. If you specify
false or omit this parameter, a partial match succeeds.
The use of partial matches with multiple keys may result in
missed documents. If the first key is partial and the second
column does not sort the same with the partial key as with the
exact key, documents that fall out of sequence are missed.
A partial key must not be in a categorized colum!
java.util.Iterator getAllDocumentsByKey(java.util.List keys, boolean exact)
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed. A partial key must not be in a categorized colum!
keys
- list of keysexact
- True if you want to find an exact match. If you specify
false or omit this parameter, a partial match succeeds.
The use of partial matches with multiple keys may result in
missed documents. If the first key is partial and the second
column does not sort the same with the partial key as with the
exact key, documents that fall out of sequence are missed.
A partial key must not be in a categorized colum!
java.util.Iterator getAllDocuments()
java.util.Iterator getAllEntries()
A view entry collection contains only document entries (no categories or totals). If a view is filtered by FTSearch, this property returns the entries in the filtered view.
DViewEntry
java.util.Iterator getAllEntriesReverse()
A view entry collection contains only document entries (no categories or totals). If a view is filtered by FTSearch, this property returns the entries in the filtered view.
DViewEntry
DViewEntry getEntryByKey(java.lang.String key)
You create a key or vector of keys, where each key corresponds to a value in a sorted column in the view. The method returns the first entry with column values that match the keys.
This method returns only the first entry with column values that
match the strings you indicate. To locate all matching documents, use
getAllEntriesByKey(String)
key
- String that is compared to the first sorted column in the
view.
null
if there are no matching entries.DViewEntry getEntryByKey(java.lang.String key, boolean exact)
You create a key or vector of keys, where each key corresponds to a value in a sorted column in the view. The method returns the first entry with column values that match the keys.
This method returns only the first entry with column values that
match the strings you indicate. To locate all matching documents, use
getAllEntriesByKey(String)
key
- String that is compared to the first sorted column in the view.exact
- use true if you want an exact match or false for a partial
one
null
if there are no matching entries.DViewEntry getEntryByKey(java.util.List keys)
You create a key or vector of keys, where each key corresponds to a value in a sorted column in the view. The method returns the first entry with column values that match the keys.
This method returns only the first entry with column values that
match the strings you indicate. To locate all matching documents, use
getAllEntriesByKey(String)
keys
- A String object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integer
null
if there are no matching entries.DViewEntry getEntryByKey(java.util.List keys, boolean exact)
You create a key or vector of keys, where each key corresponds to a value in a sorted column in the view. The method returns the first entry with column values that match the keys.
This method returns only the first entry with column values that
match the strings you indicate. To locate all matching documents, use
getAllEntriesByKey(String)
keys
- A String object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerexact
- use true if you want an exact match or false for a partial
one
null
if there are no matching entries.java.util.Iterator getAllEntries(DViewEntry entry)
A view entry collection contains only document entries (no categories or totals). If a view is filtered by FTSearch, this property returns the entries in the filtered view.
entry
- A Document or ViewEntry object. Cannot be null.
DViewEntry
java.util.Iterator getAllEntriesByKey(java.lang.String key)
Note For the getAllEntriesByKey method to work using a key, you must have at least one column sorted for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A String object that is compared to the first sorted column
in the view.
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllEntriesByKey(java.lang.String key, boolean exact)
Note For the getAllEntriesByKey method to work using a key, you must have at least one column sorted for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A String object that is compared to the first sorted column
in the view.exact
- use true if you want an exact match or false for a partial
one
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllEntriesByKey(java.util.List key)
Note For the getAllEntriesByKey method to work using a key, you must have at least one column sorted for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A String object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integer
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllEntriesByKey(java.util.List key, boolean exact)
Note For the getAllEntriesByKey method to work using a key, you must have at least one column sorted for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerexact
- use true if you want an exact match or false for a partial
one
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllEntriesByKey(java.util.Calendar start, java.util.Calendar end, boolean exact)
Note For the getAllEntriesByKey method to work using a key, you must have at least one column sorted for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
start
- A Calendar object that represents the start of a date range.
Compared to the first column in the view.end
- A Calendar object that represents the start of a end range.
Compared to the first column in the view.exact
- use true if you want an exact match or false for a partial
one
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategories()
getAllCategories(int)
to retrieve sub categories.
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategories(int level)
level
- The maximum level of navigation 0 (top level) through 30
(default).
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.lang.String key)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A String that is compared to the first categorized column
in the view.
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.lang.String key, int level)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerlevel
- The maximum level of navigation 0 (top level) through 30
(default).
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.lang.String key, boolean exact)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerexact
- use true if you want an exact match or false for a partial
one
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.lang.String key, int level, boolean exact)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerlevel
- The maximum level of navigation 0 (top level) through 30
(default).exact
- use true if you want an exact match or false for a partial
one
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.util.List key)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integer
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.util.List key, int level)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerlevel
- The maximum level of navigation 0 (top level) through 30
(default).
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.util.List key, boolean exact)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerexact
- use true if you want an exact match or false for a partial
one
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
java.util.Iterator getAllCategoriesByKey(java.util.List key, int level, boolean exact)
Note For the getAllCategoriesByKey method to work using a key, you must have at least one column categorized for every key in the array.
Note The use of partial matches with multiple keys may result in missed entries. If the first key is partial and the second column does not sort the same with the partial key as with the exact key, entries that fall out of sequence are missed.
key
- A List object that is compared to the first sorted column
in the view. The List only must contain the types String, Date,
Double and Integerexact
- use true if you want an exact match or false for a partial
onelevel
- The maximum level of navigation 0 (top level) through 30
(default).
ViewEntry
s,
Entries returned by this method are in view order.DViewEntry
int fullTextSearch(java.lang.String query)
See fullTextSearch(String, int)
for more details.
query
- The full-text query. See the "Query Syntax" for details
int fullTextSearch(java.lang.String query, int maxdocs)
Usage
After calling FTSearch, you can use the regular View methods to navigate the result, which is a subset of the documents in the view. If the database is not full-text indexed, the documents in the subset are in the same order as they are in the original view. However, if the database is full-text indexed, the documents in the subset are sorted into descending order of relevance. The method getFirstDocument returns the first document in the subset, getLastDocument returns the last document, and so on.
Use the clear()
method to clear the full-text search filtering.
The View methods now navigate to the full set of documents in the view.
If the database is not full-text indexed, this method works,
but less efficiently. To test for an index, use DDatabase.isFTIndexed()
.
To create an index on a local database, use DDatabase.updateFTIndex(boolean)
.
Query syntax
To search for a word or phrase, enter the word or phrase as is, except that search keywords must be enclosed in quotes. Remember to escape quotes if you are inside a literal. Wildcards, operators, and other syntax are permitted. For the complete syntax rules, see "Finding documents in a database" in Lotus Notes 6 Help.
query
- The full-text query. See the "Query Syntax" for detailsmaxdocs
- The maximum number of documents you want returned from the
search. If you want to receive all documents that match the
query, specify 0
void clear()
void setSelectionFormula(java.lang.String formula)
formula
- new selection formulajava.lang.String getSelectionFormula()
java.util.List getColumnNames()
int getColumnCount()
DViewColumn getColumn(int i)
i
- A column number where 1 is the first column. Cannot be less than 1
or greater than the number of columns in the view.
java.util.List getColumns()
The order of ViewColumn objects in the vector corresponds to the order of the columns in the view, from left to right.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |