Package io.ebean.config.dbplatform
Class DbPlatformTypeMapping
- java.lang.Object
-
- io.ebean.config.dbplatform.DbPlatformTypeMapping
-
public class DbPlatformTypeMapping extends Object
Used to map bean property types to DB specific types for DDL generation.
-
-
Constructor Summary
Constructors Constructor Description DbPlatformTypeMapping()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
config(boolean nativeUuidType, PlatformConfig.DbUuid dbUuid)
Map the UUID appropriately based on native DB support and DatabaseConfig.DbUuid.DbPlatformType
get(int jdbcType)
Return the type for a given jdbc type.DbPlatformType
get(DbType dbType)
Return the type for a given jdbc type.static DbPlatformTypeMapping
logicalTypes()
Return the DbTypeMap with standard (not platform specific) types.DbPlatformType
lookup(String name, boolean withScale)
Lookup the platform specific DbType given the standard sql type name.void
put(DbType type, DbPlatformType platformType)
Override the type for a given JDBC type.
-
-
-
Constructor Detail
-
DbPlatformTypeMapping
public DbPlatformTypeMapping()
-
-
Method Detail
-
logicalTypes
public static DbPlatformTypeMapping logicalTypes()
Return the DbTypeMap with standard (not platform specific) types.This has some extended JSON types (JSON, JSONB, JSONVarchar, JSONClob, JSONBlob). These types get translated to specific database platform types during DDL generation.
-
lookup
public DbPlatformType lookup(String name, boolean withScale)
Lookup the platform specific DbType given the standard sql type name.
-
put
public void put(DbType type, DbPlatformType platformType)
Override the type for a given JDBC type.
-
get
public DbPlatformType get(int jdbcType)
Return the type for a given jdbc type.
-
get
public DbPlatformType get(DbType dbType)
Return the type for a given jdbc type.
-
config
public void config(boolean nativeUuidType, PlatformConfig.DbUuid dbUuid)
Map the UUID appropriately based on native DB support and DatabaseConfig.DbUuid.
-
-