| Modifier and Type | Class and Description |
|---|---|
| public static class | PreparableStatement.
|
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected MysqlxSession | |
| protected PreparableStatement. | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public RES_T | Returns: the object returned from the low level statement executionExecutes synchronously this statement either directly or using prepared statements if: 1. |
| protected abstract RES_T | Returns: the object returned from the lower level statement executionExecutes a previously server-prepared statement. |
| protected abstract RES_T | Returns: the object returned from the lower level statement executionExecutes the statement directly (non-prepared). |
| protected XMessageBuilder | |
| protected abstract XMessage | Returns: theXMessage that prepares this statementReturns the |
| private boolean | Returns: true if the statement was successfully prepared, false otherwisePrepares a statement on the server to be later executed. |
| protected void | resetPrepareState()
Mark this preparable statement to be deallocated on next execution, if it is currently prepared, or cancel the next prepare. |
| protected void | setReprepareState()
Mark this preparable statement to be deallocated and re-prepared on next execution, if it is currently prepared. |
| mysqlxSession | back to summary |
|---|---|
| protected MysqlxSession mysqlxSession | |
| preparedState | back to summary |
|---|---|
| protected PreparableStatement. | |
| preparedStatementId | back to summary |
|---|---|
| protected int preparedStatementId | |
| PreparableStatement | back to summary |
|---|---|
| public PreparableStatement() | |
| deallocatePrepared | back to summary |
|---|---|
| protected void deallocatePrepared() Deallocate this prepared statement from current | |
| execute | back to summary |
|---|---|
| public RES_T execute() Executes synchronously this statement either directly or using prepared statements if: 1. Prepared statements are supported by the server. 2. The statement is executed repeatedly without changing its structure.
| |
| executePreparedStatement | back to summary |
|---|---|
| protected abstract RES_T executePreparedStatement() Executes a previously server-prepared statement. Implementation is dependent on the statement type.
| |
| executeStatement | back to summary |
|---|---|
| protected abstract RES_T executeStatement() Executes the statement directly (non-prepared). Implementation is dependent on the statement type.
| |
| getMessageBuilder | back to summary |
|---|---|
| protected XMessageBuilder getMessageBuilder() Helper method to return an
| |
| getPrepareStatementXMessage | back to summary |
|---|---|
| protected abstract XMessage getPrepareStatementXMessage() Returns the | |
| prepareStatement | back to summary |
|---|---|
| private boolean prepareStatement() Prepares a statement on the server to be later executed.
| |
| resetPrepareState | back to summary |
|---|---|
| protected void resetPrepareState() Mark this preparable statement to be deallocated on next execution, if it is currently prepared, or cancel the next prepare. | |
| setReprepareState | back to summary |
|---|---|
| protected void setReprepareState() Mark this preparable statement to be deallocated and re-prepared on next execution, if it is currently prepared. | |
PhantomReference to track prepared statement ids. An instance of this class must be kept until the prepared statement is properly deallocated. If
proper deallocation does not happen, this is used to identify abandoned prepared statements and proceed with its deallocation after the object is
destructed by using a ReferenceQueue.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | PreparableStatementFinalizer(PreparableStatement<?> referent, ReferenceQueue<? super PreparableStatement<?>> q, int preparedStatementId)
|
| Modifier and Type | Method and Description |
|---|---|
| public int |
| prepredStatementId | back to summary |
|---|---|
| pack-priv int prepredStatementId | |
| PreparableStatementFinalizer | back to summary |
|---|---|
| public PreparableStatementFinalizer(PreparableStatement<?> referent, ReferenceQueue<? super PreparableStatement<?>> q, int preparedStatementId) | |
| getPreparedStatementId | back to summary |
|---|---|
| public int getPreparedStatementId() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PreparableStatement. | |
| public static final PreparableStatement. | |
| public static final PreparableStatement. | |
| public static final PreparableStatement. | |
| public static final PreparableStatement. | |
| public static final PreparableStatement. | |
| public static final PreparableStatement. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PreparableStatement. | |
| public static PreparableStatement. |
| DEALLOCATE | back to summary |
|---|---|
| public static final PreparableStatement. | |
| PREPARE | back to summary |
|---|---|
| public static final PreparableStatement. | |
| PREPARED | back to summary |
|---|---|
| public static final PreparableStatement. | |
| REPREPARE | back to summary |
|---|---|
| public static final PreparableStatement. | |
| SUSPENDED | back to summary |
|---|---|
| public static final PreparableStatement. | |
| UNPREPARED | back to summary |
|---|---|
| public static final PreparableStatement. | |
| UNSUPPORTED | back to summary |
|---|---|
| public static final PreparableStatement. | |
| PreparedState | back to summary |
|---|---|
| private PreparedState() | |
| valueOf | back to summary |
|---|---|
| public static PreparableStatement. | |
| values | back to summary |
|---|---|
| public static PreparableStatement. | |