Session implementation.
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected MysqlxSession | |
| private XMessageBuilder |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Schema | createSchema(String
name of schema to create schemaName)Implements com. Create and return a new schema with the name given by name. |
| public Schema | createSchema(String
name of schema to create schemaName, boolean true to reuse reuseExistingObject)Implements com. Create and return a new schema with the name given by name. |
| public void | dropSchema(String
name of schema to drop schemaName)Implements com. Drop the existing schema with the name given by name. |
| public Schema | getDefaultSchema()
Implements com. Retrieve the default schema name, which might have been configured at the time of connection. |
| public String | getDefaultSchemaName()
Implements com. Retrieve the default schema name, which might have been configured at the time of connection. |
| public Schema | getSchema(String
name of schema to retrieve schemaName)Implements com. Retrieve the Schema corresponding to name. |
| public List | getSchemas()
Implements com. Retrieve the list of Schema objects for which the current user has access. |
| public MysqlxSession | |
| public String | |
| public boolean | |
| public void | releaseSavepoint(String
savepoint name name)Implements com. Releases the named savepoint. |
| public void | |
| public void | rollbackTo(String
savepoint name name)Implements com. Rolls back the transaction to the named savepoint. |
| public String | setSavepoint()
Implements com. Creates a transaction savepoint with an implementation-defined generated name and returns its name, which can be used in |
| public String | setSavepoint(String
savepoint name name)Implements com. Creates or replaces a transaction savepoint with the given name. |
| public SqlStatementImpl | sql(String
native SQL statement sql)Implements com. Create a native SQL command. |
| public void | startTransaction()
Implements com. Start a new transaction. |
| defaultSchemaName | back to summary |
|---|---|
| protected String defaultSchemaName | |
| session | back to summary |
|---|---|
| protected MysqlxSession session | |
| xbuilder | back to summary |
|---|---|
| private XMessageBuilder xbuilder | |
| SessionImpl | back to summary |
|---|---|
| public SessionImpl(HostInfo hostInfo) Constructor. | |
| SessionImpl | back to summary |
|---|---|
| public SessionImpl(XProtocol prot) | |
| SessionImpl | back to summary |
|---|---|
| protected SessionImpl() | |
| close | back to summary |
|---|---|
| public void close() Implements com. Doc from com. Close this session.
| |
| commit | back to summary |
|---|---|
| public void commit() Implements com. Doc from com. Commit the transaction.
| |
| createSchema | back to summary |
|---|---|
| public Schema createSchema(String schemaName) Implements com. Doc from com. Create and return a new schema with the name given by name. | |
| createSchema | back to summary |
|---|---|
| public Schema createSchema(String schemaName, boolean reuseExistingObject) Implements com. Doc from com. Create and return a new schema with the name given by name. If the schema already exists, a reference to it is returned. | |
| dropSchema | back to summary |
|---|---|
| public void dropSchema(String schemaName) Implements com. Doc from com. Drop the existing schema with the name given by name. | |
| getDefaultSchema | back to summary |
|---|---|
| public Schema getDefaultSchema() Implements com. Doc from com. Retrieve the default schema name, which might have been configured at the time of connection. Returns | |
| getDefaultSchemaName | back to summary |
|---|---|
| public String getDefaultSchemaName() Implements com. Doc from com. Retrieve the default schema name, which might have been configured at the time of connection. Returns empty String if no default schema has been set. | |
| getSchema | back to summary |
|---|---|
| public Schema getSchema(String schemaName) Implements com. Doc from com. Retrieve the Schema corresponding to name. | |
| getSchemas | back to summary |
|---|---|
| public List Implements com. Doc from com. Retrieve the list of Schema objects for which the current user has access. | |
| getSession | back to summary |
|---|---|
| public MysqlxSession getSession() | |
| getUri | back to summary |
|---|---|
| public String getUri() Implements com. Doc from com. Get the URL used to create this session. | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements com. Doc from com. Is this session open?
| |
| releaseSavepoint | back to summary |
|---|---|
| public void releaseSavepoint(String name) Implements com. Doc from com. Releases the named savepoint. This method will succeed as long as the given save point has not been already rolled back or released. Rolling back to a savepoint prior to the one named will release or rollback any that came after. | |
| rollback | back to summary |
|---|---|
| public void rollback() Implements com. Doc from com. Rollback the transaction.
| |
| rollbackTo | back to summary |
|---|---|
| public void rollbackTo(String name) Implements com. Doc from com. Rolls back the transaction to the named savepoint. This method will succeed as long as the given save point has not been already rolled back or released. Rolling back to a savepoint prior to the one named will release or rollback any that came after. | |
| setSavepoint | back to summary |
|---|---|
| public String setSavepoint() Implements com. Doc from com. Creates a transaction savepoint with an implementation-defined generated name and returns its name, which can be used in | |
| setSavepoint | back to summary |
|---|---|
| public String setSavepoint(String name) Implements com. Doc from com. Creates or replaces a transaction savepoint with the given name. Calling this method more than once should always work. | |
| sql | back to summary |
|---|---|
| public SqlStatementImpl sql(String sql) Implements com. Doc from com. Create a native SQL command. Placeholders are supported using the native "?" syntax.
| |
| startTransaction | back to summary |
|---|---|
| public void startTransaction() Implements com. Doc from com. Start a new transaction.
| |