Changes

Jump to navigation Jump to search
2 bytes removed ,  22:06, 16 March 2012
===Session===
* Creates Create and returns return session with host, port, user name and password:<br/><code>Session(String host, int port, String name, String password)</code>
* Executes Execute a command and returns return the result:<br/><code>String execute(String command)</code>
* Returns Return a query object for the specified query:<br/><code>Query query(String query)</code>
* Creates Create a database from an input stream:<br/><code>void create(String name, InputStream in)</code>
* Adds Add a document to the current database from an input stream:<br/><code>void add(String path, InputStream in)</code>
* Replaces Replace a document with the specified input stream:<br/><code>void replace(String path, InputStream in)</code>
* Stores Store raw data at the specified path:<br/><code>void store(String path, InputStream in)</code>
* Watches Watch the specified event:<br/><code>void watch(String name, Event notifier)</code>
* Unwatches Unwatch the specified event:<br/><code>void unwatch(String name)</code>
* Returns Return process information:<br/><code>String info()</code>
* Closes Close the session:<br/><code>void close()</code>
</div><div style="float:left; width:4%;">&nbsp;
===Query===
* Creates Create query object with session and query:<br/><code>Query(Session s, String query)</code>
* Binds Bind an external variable:<br/><code>void bind(String name, String value, String type). The type can be an empty string.</code>
* {{Version|7.2:}} Binds Bind the context item:<br/><code>void context(String value, String type). The type can be an empty string.</code>
* Executes Execute the queryand return the result:<br/><code>String execute()</code>
* Iterator: checks check if a query returns more items:<br/><code>boolean more()</code>
* Returns Iterator: return the next item:<br/><code>String next()</code>
* Returns Return query information:<br/><code>String info()</code>
* Returns Return serialization parameters:<br/><code>String options()</code>
* Returns Return if the query may perform updates:<br/><code>boolean updating()</code>
* Closes Close the iterator and query:<br/><code>void close()</code>
</div>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu