Module io.ebean.api

Class CustomDbTypeMapping


public class CustomDbTypeMapping extends Object
Custom mappings for DB types that override the default.
See Also:
  • Field Details

    • type

      protected final DbType type
    • columnDefinition

      protected final String columnDefinition
    • platform

      protected final io.ebean.annotation.Platform platform
  • Constructor Details

    • CustomDbTypeMapping

      public CustomDbTypeMapping(DbType type, String columnDefinition, io.ebean.annotation.Platform platform)
      Create a mapping.
    • CustomDbTypeMapping

      public CustomDbTypeMapping(DbType type, String columnDefinition)
      Create a mapping that should apply to all the database platforms.
  • Method Details

    • getType

      public DbType getType()
      Return the DB type the mapping applies to.
    • getColumnDefinition

      public String getColumnDefinition()
      Return the DB column definition to use.
    • getPlatform

      public io.ebean.annotation.Platform getPlatform()
      Return the platform this mapping should apply to. Null means it applied to all platforms.