接口的使用
com.mysql.cj.xdevapi.DbDoc
-
使用DbDoc的程序包 程序包 说明 com.mysql.cj.xdevapi Java classes for X DevAPI support. -
-
com.mysql.cj.xdevapi中DbDoc的使用
实现DbDoc的com.mysql.cj.xdevapi中的类 修饰符和类型 类 说明 classDbDocImplRepresents a JSON object:返回DbDoc的com.mysql.cj.xdevapi中的方法 修饰符和类型 方法 说明 DbDocDbDoc. add(String key, JsonValue val)AddJsonValueto the top-level document hierarchy.DbDocDbDocImpl. add(String key, JsonValue val)DbDocDbDocValueFactory. createFromBytes(byte[] bytes, int offset, int length, Field f)Interpret the given byte array as a string.DbDocDbDocValueFactory. createFromNull()DbDocDbDocFactory. createFromProtocolEntity(ProtocolEntity internalRow)DbDocRow. getDbDoc(int pos)Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value.DbDocRow. getDbDoc(String fieldName)Retrieve the value for column `fieldName' as a DbDoc value.DbDocRowImpl. getDbDoc(int pos)DbDocRowImpl. getDbDoc(String fieldName)DbDocCollection. getOne(String id)Return the document with the given id.DbDocCollectionImpl. getOne(String id)DbDocCollection. newDoc()Create a new document.DbDocCollectionImpl. newDoc()static DbDocJsonParser. parseDoc(StringReader reader)CreateDbDocobject from JSON string provided by reader.static DbDocJsonParser. parseDoc(String jsonString)CreateDbDocobject from JSON string.参数类型为DbDoc的com.mysql.cj.xdevapi中的方法 修饰符和类型 方法 说明 AddStatementAddStatement. add(DbDoc... documents)Add a sequence of DbDocs.AddStatementAddStatementImpl. add(DbDoc... docs)AddStatementCollection. add(DbDoc document)Add a document in the form of a DbDoc.AddStatementCollection. add(DbDoc... documents)Add a sequence of documents.AddStatementCollectionImpl. add(DbDoc doc)AddStatementCollectionImpl. add(DbDoc... docs)ResultCollection. addOrReplaceOne(String id, DbDoc doc)Adds the document to the collection.ResultCollectionImpl. addOrReplaceOne(String id, DbDoc doc)ResultCollection. createIndex(String indexName, DbDoc indexDefinition)Create a new statement defining the creation of an index on this collection.ResultCollectionImpl. createIndex(String indexName, DbDoc indexDefinition)ModifyStatementModifyStatement. patch(DbDoc document)Takes in a patch object and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function.ModifyStatementModifyStatementImpl. patch(DbDoc document)ResultCollection. replaceOne(String id, DbDoc doc)Takes in a document object that will replace the matching document.ResultCollectionImpl. replaceOne(String id, DbDoc doc)参数类型为DbDoc的com.mysql.cj.xdevapi中的构造器 构造器 说明 CreateIndexParams(String indexName, DbDoc indexDefinition)Constructor.IndexField(DbDoc indexField)Constructor.
-