Module io.ebean.api

Class CustomDbTypeMapping

    • Field Detail

      • type

        protected final DbType type
      • columnDefinition

        protected final String columnDefinition
      • platform

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

      • 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 Detail

      • 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.