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
Modifier and Type Method Description voidconfig(boolean nativeUuidType, PlatformConfig.DbUuid dbUuid)Map the UUID appropriately based on native DB support and DatabaseConfig.DbUuid.DbPlatformTypeget(int jdbcType)Return the type for a given jdbc type.DbPlatformTypeget(DbType dbType)Return the type for a given jdbc type.static DbPlatformTypeMappinglogicalTypes()Return the DbTypeMap with standard (not platform specific) types.DbPlatformTypelookup(String name, boolean withScale)Lookup the platform specific DbType given the standard sql type name.voidput(DbType type, DbPlatformType platformType)Override the type for a given JDBC type.
-
Constructor Details
-
DbPlatformTypeMapping
public DbPlatformTypeMapping()
-
-
Method Details
-
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
Lookup the platform specific DbType given the standard sql type name. -
put
Override the type for a given JDBC type. -
get
Return the type for a given jdbc type. -
get
Return the type for a given jdbc type. -
config
Map the UUID appropriately based on native DB support and DatabaseConfig.DbUuid.
-