public class DbPlatformTypeMapping extends Object
Constructor and Description |
---|
DbPlatformTypeMapping() |
Modifier and Type | Method and Description |
---|---|
void |
config(boolean nativeUuidType,
PlatformConfig.DbUuid dbUuid)
Map the UUID appropriately based on native DB support and ServerConfig.DbUuid.
|
DbPlatformType |
get(DbType dbType)
Return the type for a given jdbc type.
|
DbPlatformType |
get(int jdbcType)
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.
|
public DbPlatformTypeMapping()
public static DbPlatformTypeMapping logicalTypes()
This has some extended JSON types (JSON, JSONB, JSONVarchar, JSONClob, JSONBlob). These types get translated to specific database platform types during DDL generation.
public DbPlatformType lookup(String name, boolean withScale)
public void put(DbType type, DbPlatformType platformType)
public DbPlatformType get(int jdbcType)
public DbPlatformType get(DbType dbType)
public void config(boolean nativeUuidType, PlatformConfig.DbUuid dbUuid)
Copyright © 2019. All rights reserved.