Class DefaultSqlTypeMapping
java.lang.Object
org.springframework.data.jdbc.core.mapping.schema.DefaultSqlTypeMapping
- All Implemented Interfaces:
SqlTypeMapping
Class that provides a default implementation of mapping Java type to a Database type. To customize the mapping an
instance of a class implementing
SqlTypeMapping
interface can be set on the Tables
class- Since:
- 3.2
- Author:
- Kurt Niemi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnType
(RelationalPersistentProperty property) Determines a column type for a persistent property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.jdbc.core.mapping.schema.SqlTypeMapping
and, getRequiredColumnType, isNullable
-
Constructor Details
-
DefaultSqlTypeMapping
public DefaultSqlTypeMapping()
-
-
Method Details
-
getColumnType
Description copied from interface:SqlTypeMapping
Determines a column type for a persistent property.- Specified by:
getColumnType
in interfaceSqlTypeMapping
- Parameters:
property
- the property for which the type should be determined.- Returns:
- the SQL type to use, such as
VARCHAR
orNUMERIC
. Can be null if the strategy cannot provide a column type.
-