Module io.ebean.api

Interface DatabasePlatformProvider


public interface DatabasePlatformProvider
Provides DatabasePlatform matching by name, JDBC product name and specific platform enum.

DatabasePlatformProvider implementations are service loaded and custom implementations can be added and used via the service loading mechanism.

  • Method Summary

    Modifier and Type
    Method
    Description
    create(int majorVersion, int minorVersion, DatabaseMetaData meta, Connection connection)
    Create the platform based on the lower case JDBC metadata product name.
    create(io.ebean.annotation.Platform platform)
    Create the specific platform.
    create(String name)
    Create the platform based on the lower case platform name.
    boolean
    match(String name)
    Match on the lower case platform name.
    boolean
    Match on the lower case JDBC metadata product name.
    boolean
    matchPlatform(io.ebean.annotation.Platform platform)
    Match on the specific platform.
  • Method Details

    • match

      boolean match(String name)
      Match on the lower case platform name.
    • create

      DatabasePlatform create(String name)
      Create the platform based on the lower case platform name.
    • matchByProductName

      boolean matchByProductName(String productName)
      Match on the lower case JDBC metadata product name.
    • create

      DatabasePlatform create(int majorVersion, int minorVersion, DatabaseMetaData meta, Connection connection)
      Create the platform based on the lower case JDBC metadata product name.
    • matchPlatform

      boolean matchPlatform(io.ebean.annotation.Platform platform)
      Match on the specific platform.
    • create

      DatabasePlatform create(io.ebean.annotation.Platform platform)
      Create the specific platform.