Class ServerSession.Connector

java.lang.Object
com.codename1.db.sql.ServerSession.Connector
Enclosing class:
ServerSession

public abstract static class ServerSession.Connector extends Object
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.
  • 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.
      Throws:
      IOException