接口的使用
com.mysql.cj.xdevapi.Collection
-
使用Collection的程序包 程序包 说明 com.mysql.cj.xdevapi Java classes for X DevAPI support. -
-
com.mysql.cj.xdevapi中Collection的使用
实现Collection的com.mysql.cj.xdevapi中的类 修饰符和类型 类 说明 classCollectionImpl返回Collection的com.mysql.cj.xdevapi中的方法 修饰符和类型 方法 说明 CollectionSchema. createCollection(String name)Create a new collection.CollectionSchema. createCollection(String name, boolean reuseExisting)Create a new collection if it does not already exist on the server.CollectionSchema. createCollection(String collectionName, Schema.CreateCollectionOptions options)Create a new collection.CollectionSchemaImpl. createCollection(String collectionName)CollectionSchemaImpl. createCollection(String collectionName, boolean reuseExisting)CollectionSchemaImpl. createCollection(String collectionName, Schema.CreateCollectionOptions options)CollectionSchema. getCollection(String name)Retrieve a reference to the named collection.CollectionSchema. getCollection(String name, boolean requireExists)Retrieve a reference to the named collection hinting that an exception should be thrown if the collection is not known to the server.CollectionSchemaImpl. getCollection(String collectionName)CollectionSchemaImpl. getCollection(String collectionName, boolean requireExists)返回变量类型为Collection的类型的com.mysql.cj.xdevapi中的方法 修饰符和类型 方法 说明 List<Collection>Schema. getCollections()Retrieve the set of collections existing in this schema.List<Collection>Schema. getCollections(String pattern)Retrieve the set of collections existing in this schema and matching the given pattern.List<Collection>SchemaImpl. getCollections()List<Collection>SchemaImpl. getCollections(String pattern)
-