Class DefaultBackendInfoFactory

java.lang.Object
org.tentackle.sql.DefaultBackendInfoFactory
All Implemented Interfaces:
BackendInfoFactory

@Service(BackendInfoFactory.class) public class DefaultBackendInfoFactory extends Object implements BackendInfoFactory
Default implementation of a backend info factory.
  • Constructor Details

    • DefaultBackendInfoFactory

      public DefaultBackendInfoFactory()
      Creates a backend info factory.
  • Method Details

    • create

      public BackendInfo create(Backend backend)
      Description copied from interface: BackendInfoFactory
      Creates a backend info from a backend.
      The info cannot be used to connect.
      Specified by:
      create in interface BackendInfoFactory
      Parameters:
      backend - the backend
      Returns:
      the backend info
    • create

      public BackendInfo create(String backendName)
      Description copied from interface: BackendInfoFactory
      Creates a backend info from a backend name.
      The info cannot be used to connect.
      Specified by:
      create in interface BackendInfoFactory
      Parameters:
      backendName - the backend name
      Returns:
      the backend info
    • create

      public BackendInfo create(String url, String user, char[] password, String[] schemas)
      Description copied from interface: BackendInfoFactory
      Creates a backend info.
      This info is able to create a connection.
      Specified by:
      create in interface BackendInfoFactory
      Parameters:
      url - the backend url
      user - the username
      password - the password
      schemas - the optional schemas, null if no schema check
      Returns:
      the backend info
    • create

      public BackendInfo create(BackendInfo backendInfo, String user, char[] password)
      Description copied from interface: BackendInfoFactory
      Creates a backend info from another one with a different user and password.
      Specified by:
      create in interface BackendInfoFactory
      Parameters:
      backendInfo - the original backend info
      user - the username
      password - the password
      Returns:
      the backend info
    • create

      public BackendInfo create(EncryptedProperties backendProperties)
      Description copied from interface: BackendInfoFactory
      Creates a backend info from backend properties.
      The info is able to create a connection.
      Specified by:
      create in interface BackendInfoFactory
      Parameters:
      backendProperties - the properties
      Returns:
      the backend info