public interface CouchbaseConnection
extends javax.resource.cci.Connection
Namespaces └── Keyspaces └──DocumentsA Keyspace is a set of JSON documents that may vary in structure, use a self-describing format, flexible Data Model, dynamic schemas. A
CouchbaseConnection
is a connection to a specific Couchbase Namespace,
build upon Couchbase N1QL, used to handle application-level operations
(SELECT/UPDATE/INSERT/DELETE) against the documents under a specific
Couchbase Namespace.Modifier and Type | Method and Description |
---|---|
com.couchbase.client.java.query.N1qlQueryResult |
execute(String statement)
Executes the given N1QL statement, which returns a single
N1qlQueryResult
object. |
com.couchbase.client.java.query.N1qlQueryResult |
executeQuery(com.couchbase.client.java.query.N1qlQuery query)
Executes the given
N1qlQuery object which represents a complex N1QL statement. |
com.couchbase.client.java.query.N1qlQueryResult |
executeQuery(String query)
Executes the given N1QL statement, which returns a single
N1qlQueryResult
object. |
String |
getNamespace()
Returns the name of the Namespace
|
String getNamespace()
com.couchbase.client.java.query.N1qlQueryResult executeQuery(String query)
N1qlQueryResult
object.query
- is a N1QL statement, analogous to a relational database SQL statement.N1qlQueryResult
object that contains the JSON objects
produced by the given query.com.couchbase.client.java.query.N1qlQueryResult executeQuery(com.couchbase.client.java.query.N1qlQuery query)
N1qlQuery
object which represents a complex N1QL statement.
returns a single N1qlQueryResult
object.query
- is a N1qlQuery
object which represents a complex N1QL statement.N1qlQueryResult
object that contains the JSON objects
produced by the given query.com.couchbase.client.java.query.N1qlQueryResult execute(String statement)
N1qlQueryResult
object.statement
- Any N1QL statement, like Insert, Select, Update, Delete, etc.Copyright © 2017 JBoss by Red Hat. All rights reserved.