Top Inners Fields Constructors Methods
com.mysql.cj.protocol.a

public Class NativeServerSessionStateController

extends Object
implements ServerSessionStateController
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.ServerSessionStateController
Imports
java.lang.ref.WeakReference, java.util.ArrayList, .List, com.mysql.cj.protocol.ServerSessionStateController, com.mysql.cj.protocol.a.NativeConstants.IntegerDataType, .NativeConstants.StringLengthDataType, .NativeConstants.StringSelfDataType

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private List<WeakReference<ServerSessionStateController.SessionStateChangesListener>>
private NativeServerSessionStateController.NativeServerSessionStateChanges

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public NativeServerSessionStateController.NativeServerSessionStateChanges
getSessionStateChanges()

Overrides default com.mysql.cj.protocol.ServerSessionStateController.getSessionStateChanges.

Get the object containing server session changes collected from the latest query execution.

public void
public void
setSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)

Overrides default com.mysql.cj.protocol.ServerSessionStateController.setSessionStateChanges.

Set the object containing server session changes collected from the latest query execution.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listenersback to summary
private List<WeakReference<ServerSessionStateController.SessionStateChangesListener>> listeners
sessionStateChangesback to summary
private NativeServerSessionStateController.NativeServerSessionStateChanges sessionStateChanges

Constructor Detail

NativeServerSessionStateControllerback to summary
public NativeServerSessionStateController()

Method Detail

addSessionStateChangesListenerback to summary
public void addSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener l)

Overrides default com.mysql.cj.protocol.ServerSessionStateController.addSessionStateChangesListener.

Doc from com.mysql.cj.protocol.ServerSessionStateController.addSessionStateChangesListener.

Add the SessionStateChangesListener that will process ServerSessionStateChanges on it's arrival.

Parameters
l:ServerSessionStateController.SessionStateChangesListener

SessionStateChangesListener object.

Annotations
@Override
getSessionStateChangesback to summary
public NativeServerSessionStateController.NativeServerSessionStateChanges getSessionStateChanges()

Overrides default com.mysql.cj.protocol.ServerSessionStateController.getSessionStateChanges.

Doc from com.mysql.cj.protocol.ServerSessionStateController.getSessionStateChanges.

Get the object containing server session changes collected from the latest query execution.

Please note that the driver could issue some queries internally. With that there is no guarantee that all session changes are reflected in the ServerSessionStateChanges object after the recent user's query. If this is an issue, a SessionStateChangesListener can be added via addSessionStateChangesListener(SessionStateChangesListener) to catch all session changes.

Returns:NativeServerSessionStateController.NativeServerSessionStateChanges

ServerSessionStateChanges object.

Annotations
@Override
removeSessionStateChangesListenerback to summary
public void removeSessionStateChangesListener(ServerSessionStateController.SessionStateChangesListener listener)

Overrides default com.mysql.cj.protocol.ServerSessionStateController.removeSessionStateChangesListener.

Doc from com.mysql.cj.protocol.ServerSessionStateController.removeSessionStateChangesListener.

Remove SessionStateChangesListener.

Parameters
listener:ServerSessionStateController.SessionStateChangesListener

SessionStateChangesListener object.

Annotations
@Override
setSessionStateChangesback to summary
public void setSessionStateChanges(ServerSessionStateController.ServerSessionStateChanges changes)

Overrides default com.mysql.cj.protocol.ServerSessionStateController.setSessionStateChanges.

Doc from com.mysql.cj.protocol.ServerSessionStateController.setSessionStateChanges.

Set the object containing server session changes collected from the latest query execution. Used internally.

Parameters
changes:ServerSessionStateController.ServerSessionStateChanges

ServerSessionStateChanges object.

Annotations
@Override
com.mysql.cj.protocol.a back to summary

public Class NativeServerSessionStateController.NativeServerSessionStateChanges

extends Object
implements ServerSessionStateChanges
Class Inheritance
  • java.lang.Object
  • com.mysql.cj.protocol.a.NativeServerSessionStateController.NativeServerSessionStateChanges
All Implemented Interfaces
com.mysql.cj.protocol.ServerSessionStateController.ServerSessionStateChanges

Field Summary

Modifier and TypeField and Description
private List<ServerSessionStateController.SessionStateChange>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<ServerSessionStateController.SessionStateChange>
public NativeServerSessionStateController.NativeServerSessionStateChanges
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sessionStateChangesback to summary
private List<ServerSessionStateController.SessionStateChange> sessionStateChanges

Constructor Detail

NativeServerSessionStateChangesback to summary
public NativeServerSessionStateChanges()

Method Detail

getSessionStateChangesListback to summary
public List<ServerSessionStateController.SessionStateChange> getSessionStateChangesList()

Implements com.mysql.cj.protocol.ServerSessionStateController.ServerSessionStateChanges.getSessionStateChangesList.

Annotations
@Override
initback to summary
public NativeServerSessionStateController.NativeServerSessionStateChanges init(NativePacketPayload buf, String encoding)