|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fourspaces.couchdb.View
public class View
The View is the mechanism for performing Querys on a CouchDB instance. The view can be named or ad-hoc (see AdHocView). (Currently [14 Sept 2007] named view aren't working in the mainline CouchDB code... but this _should_ work.)
The View object exists mainly to apply filtering to the view. Otherwise, views can be called directly from the database object by using their names (or given an ad-hoc query).
Field Summary | |
---|---|
protected Integer |
count
|
protected Document |
document
|
protected String |
endKey
|
protected String |
function
|
protected String |
name
|
protected Boolean |
reverse
|
protected String |
skip
|
protected String |
startKey
|
protected Boolean |
update
|
Constructor Summary | |
---|---|
View(Document doc,
String name)
Build a view given a document and a name |
|
View(String fullname)
Build a view given only a fullname ex: ("_add_docs", "_temp_view") |
Method Summary | |
---|---|
String |
getFullName()
the full name for this view (w/ doc id, if avail) in the form of : "docid:name" or "name" |
String |
getFunction()
The function definition for this view, if it is available. |
String |
getName()
The name for this view (w/o doc id) |
String |
getQueryString()
Based upon settings, builds the queryString to add to the URL for this view. |
void |
setCount(Integer count)
The number of entries to return |
void |
setEndKey(String endKey)
Stop listing at this key |
void |
setReverse(Boolean reverse)
Reverse the listing |
void |
setSkip(String skip)
Skip listing these keys (not sure if this works, or the format) |
void |
setStartKey(String startKey)
Start listing at this key |
void |
setUpdate(Boolean update)
Not sure... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String startKey
protected String endKey
protected Integer count
protected Boolean update
protected Boolean reverse
protected String skip
protected String name
protected Document document
protected String function
Constructor Detail |
---|
public View(Document doc, String name)
doc
- name
- public View(String fullname)
fullname
- Method Detail |
---|
public String getQueryString()
public void setCount(Integer count)
count
- public void setEndKey(String endKey)
endKey
- public void setReverse(Boolean reverse)
reverse
- public void setSkip(String skip)
skip
- public void setStartKey(String startKey)
startKey
- public void setUpdate(Boolean update)
update
- public String getName()
public String getFullName()
public String getFunction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |