Schema implementation.
| Modifier and Type | Field and Description |
|---|---|
| private MysqlxSession | |
| private String | |
| private Session | |
| private ValueFactory | |
| private XMessageBuilder |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | createCollection(String
collection name collectionName)Implements com. Create a new collection. |
| public Collection | createCollection(String
collection name collectionName, boolean true if allowed to reuse reuseExisting)Implements com. Create a new collection if it does not already exist on the server. |
| public Collection | createCollection(String
collection name collectionName, Schema.reuseExisting, validation level and JSON schema options optionsImplements com. Create a new collection. |
| public void | dropCollection(String
name of collection to drop collectionName)Implements com. Drop the collection from this schema. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public DatabaseObject. | existsInDatabase()
Implements com. Query the existence of this database object. |
| public Collection | getCollection(String
collection name collectionName)Implements com. Retrieve a reference to the named collection. |
| public Collection | getCollection(String
collection name collectionName, boolean true if required to exist requireExists)Implements com. Retrieve a reference to the named collection hinting that an exception should be thrown if the collection is not known to the server. |
| public Table | getCollectionAsTable(String
collection name collectionName)Implements com. Retrieve a reference to the named collection using the table API. |
| public List | getCollections()
Implements com. Retrieve the set of collections existing in this schema. |
| public List | getCollections(String
match pattern pattern)Implements com. Retrieve the set of collections existing in this schema and matching the given pattern. |
| public String | getName()
Implements com. Retrieve the name of the database object represented by the Java object. |
| public Schema | getSchema()
Implements com. Retrieve the schema owning this database object. |
| public Session | getSession()
Implements com. Retrieve the session owning the given schema object. |
| public Table | getTable(String
table name tableName)Implements com. Retrieve a reference to the named table. |
| public Table | getTable(String
table name tableName, boolean true if required to exist requireExists)Implements com. Retrieve a reference to the named table hinting that an exception should be thrown if the collection is not known to the server. |
| public List | getTables()
Implements com. Retrieve the set of tables existing in this schema. |
| public List | getTables(String
match pattern pattern)Implements com. Retrieve the set of tables existing in this schema and matching the given pattern. |
| public int | |
| public void | modifyCollection(String
collection name collectionName, Schema.validation level and JSON schema options optionsImplements com. Modify the schema validation of a collection. |
| public String |
| mysqlxSession | back to summary |
|---|---|
| private MysqlxSession mysqlxSession | |
| name | back to summary |
|---|---|
| private String name | |
| session | back to summary |
|---|---|
| private Session session | |
| svf | back to summary |
|---|---|
| private ValueFactory<String> svf | |
| xbuilder | back to summary |
|---|---|
| private XMessageBuilder xbuilder | |
| SchemaImpl | back to summary |
|---|---|
| pack-priv SchemaImpl(MysqlxSession mysqlxSession, Session session, String name) | |
| createCollection | back to summary |
|---|---|
| public Collection createCollection(String collectionName) Implements com. Doc from com. Create a new collection.
| |
| createCollection | back to summary |
|---|---|
| public Collection createCollection(String collectionName, boolean reuseExisting) Implements com. Doc from com. Create a new collection if it does not already exist on the server.
| |
| createCollection | back to summary |
|---|---|
| public Collection createCollection(String collectionName, Schema. Implements com. Doc from com. Create a new collection.
| |
| dropCollection | back to summary |
|---|---|
| public void dropCollection(String collectionName) Implements com. Doc from com. Drop the collection from this schema. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| existsInDatabase | back to summary |
|---|---|
| public DatabaseObject. Implements com. Doc from com. Query the existence of this database object.
| |
| getCollection | back to summary |
|---|---|
| public Collection getCollection(String collectionName) Implements com. Doc from com. Retrieve a reference to the named collection.
| |
| getCollection | back to summary |
|---|---|
| public Collection getCollection(String collectionName, boolean requireExists) Implements com. Doc from com. Retrieve a reference to the named collection hinting that an exception should be thrown if the collection is not known to the server.
| |
| getCollectionAsTable | back to summary |
|---|---|
| public Table getCollectionAsTable(String collectionName) Implements com. Doc from com. Retrieve a reference to the named collection using the table API. | |
| getCollections | back to summary |
|---|---|
| public List Implements com. Doc from com. Retrieve the set of collections existing in this schema.
| |
| getCollections | back to summary |
|---|---|
| public List Implements com. Doc from com. Retrieve the set of collections existing in this schema and matching the given pattern.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements com. Doc from com. Retrieve the name of the database object represented by the Java object. | |
| getSchema | back to summary |
|---|---|
| public Schema getSchema() Implements com. Doc from com. Retrieve the schema owning this database object. | |
| getSession | back to summary |
|---|---|
| public Session getSession() Implements com. Doc from com. Retrieve the session owning the given schema object. | |
| getTable | back to summary |
|---|---|
| public Table getTable(String tableName) Implements com. Doc from com. Retrieve a reference to the named table. | |
| getTable | back to summary |
|---|---|
| public Table getTable(String tableName, boolean requireExists) Implements com. Doc from com. Retrieve a reference to the named table hinting that an exception should be thrown if the collection is not known to the server. | |
| getTables | back to summary |
|---|---|
| public List Implements com. Doc from com. Retrieve the set of tables existing in this schema. | |
| getTables | back to summary |
|---|---|
| public List Implements com. Doc from com. Retrieve the set of tables existing in this schema and matching the given pattern. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| modifyCollection | back to summary |
|---|---|
| public void modifyCollection(String collectionName, Schema. Implements com. Doc from com. Modify the schema validation of a collection.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |