protected final CouchbaseTemplate couchbase;
public CouchbaseDao(CouchbaseTemplate couchbase) {
this.couchbase = couchbase;
}
public void updateSession(JsonObject attributes, String namespace, String id) {
<BUG>couchbase.queryN1QL(parameterized("UPDATE default USE KEYS $1 SET data.`" + namespace + "` = $2", from(id, attributes)));
}</BUG>
public void updatePutPrincipalSession(String principal, String sessionId) {
<BUG>couchbase.queryN1QL(parameterized("UPDATE default USE KEYS $1 SET sessionIds = ARRAY_PUT(sessionIds, $2)", from(principal, sessionId)));
}</BUG>
public void updateRemovePrincipalSession(String principal, String sessionId) {

protected final CouchbaseTemplate couchbase;
public CouchbaseDao(CouchbaseTemplate couchbase) {
this.couchbase = couchbase;
}
public void updateSession(JsonObject attributes, String namespace, String id) {
String statement = "UPDATE default USE KEYS $1 SET data.`" + namespace + "` = $2";
N1qlQueryResult result = couchbase.queryN1QL(parameterized(statement, from(id, attributes)));
failOnError(statement, result);
}
public void updatePutPrincipalSession(String principal, String sessionId) {
String statement = "UPDATE default USE KEYS $1 SET sessionIds = ARRAY_PUT(sessionIds, $2)";
N1qlQueryResult result = couchbase.queryN1QL(parameterized(statement, from(principal, sessionId)));
failOnError(statement, result);
}
