Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public abstract static class ServerSession.Connector

  1. Object
  2. ServerSession.Connector
Opens sessions for one engine. Each engine class exposes its own as a CONNECTOR constant; referring to that constant is what puts the engine in an application.

Constructors

public Connector()

Methods

public abstract String engine()The engine’s canonical name, as Engines spells it.
public abstract ServerSession connect(String host, int port, String database, String user, String password, String sslMode, String caFile, int timeoutMillis, int socketTimeoutMillis) throws IOExceptionConnects and signs in.

Inherited methods

Constructor details

Connector

public Connector()

Method details

engine

public abstract String engine()
The engine’s canonical name, as Engines spells it.

connect

public abstract ServerSession connect(String host, int port, String database, String user, String password, String sslMode, String caFile, int timeoutMillis, int socketTimeoutMillis) throws IOException
Connects and signs in. sslMode is disable, prefer, require, verify-ca, verify-full or (SQL Server) strict; caFile the trust root, or null for the platform’s.