@Override public String toString() { return toSql(); }
@Override public String toString() { return toSql(); }
@Override public String toSql() { return toSql(false); }
@Override public String toSql() { return toSql(false); }
sb.append(' '); sb.append(item.toSql());
sb.append(' '); sb.append(item.toSql());
@Override public void execute() throws MetaModelException { final MongoCollection<Document> collection = _updateCallback.getCollection(getTable().getName()); final MongoDbDataContext dataContext = _updateCallback.getDataContext(); final Document query = dataContext.createMongoDbQuery(getTable(), getWhereItems(), whereItem -> { throw new UnsupportedOperationException("Unable to handle WHERE item in DELETE: " + whereItem.toSql()); }); DeleteResult result = collection.deleteMany(query); logger.info("Remove returned result: {}", result); }
@Override public void execute() throws MetaModelException { final MongoCollection<Document> collection = _updateCallback.getCollection(getTable().getName()); final MongoDbDataContext dataContext = _updateCallback.getDataContext(); final Document query = dataContext.createMongoDbQuery(getTable(), getWhereItems(), whereItem -> { throw new UnsupportedOperationException("Unable to handle WHERE item in DELETE: " + whereItem.toSql()); }); DeleteResult result = collection.deleteMany(query); logger.info("Remove returned result: {}", result); }
final String primaryFilterSql = item.toSql(isSchemaIncludedInColumnPaths());
final String primaryFilterSql = item.toSql(isSchemaIncludedInColumnPaths());