public class CouchbaseConnectionImpl extends BasicConnection implements CouchbaseConnection
| Constructor and Description |
|---|
CouchbaseConnectionImpl(com.couchbase.client.java.env.CouchbaseEnvironment environment,
String connectionString,
String keyspace,
String password,
TimeUnit timeUnit,
String namespace,
com.couchbase.client.java.query.consistency.ScanConsistency scanConsistent) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.couchbase.client.java.query.N1qlQueryResult |
execute(String statement)
Executes the given N1QL statement, which returns a single
N1qlQueryResult
object. |
String |
getNamespace()
Returns the name of the Namespace
|
cleanUp, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo, getXAResource, isAlivepublic com.couchbase.client.java.query.N1qlQueryResult execute(String statement) throws TranslatorException
CouchbaseConnectionN1qlQueryResult
object.execute in interface CouchbaseConnectionstatement - Any N1QL statement, like Insert, Select, Update, Delete, etc.TranslatorExceptionpublic void close()
throws javax.resource.ResourceException
close in interface Connectionjavax.resource.ResourceExceptionpublic String getNamespace()
CouchbaseConnectiongetNamespace in interface CouchbaseConnectionCopyright © 2019. All rights reserved.