public interface JpaProvider
Modifier and Type | Method and Description |
---|---|
default <T> ValueConverter<T> |
createBasicConverter(String attributeName,
Class<T> targetType)
Creates a converter for a primitive database type.
|
default <T> ValueConverter<T> |
createConverter(AttributeAccessor attribute,
Class<T> targetType,
boolean mapKey)
Creates a converter for an attribute that has a
PrimitiveProperty . |
default <T> ValueConverter<T> |
createFallbackConverter(String attributeName,
Class<T> targetType)
Creates the converter for a type that is unknown to us.
|
String |
getDefaultGeneratorTable()
The name of the default generator
TableGenerator.table() , if none was specified for a table generator. |
String |
getDefaultGeneratorTablePkColumnName()
The name of the default generator
TableGenerator.pkColumnName() , if none was specified for a table
generator. |
String |
getDefaultGeneratorTablePkColumnValue()
The name of the default generator
TableGenerator.pkColumnValue() , if none was specified for a table
generator. |
String |
getDefaultGeneratorTableValueColumnName()
The name of the default generator
TableGenerator.valueColumnName() , if none was specified for a table
generator. |
String |
getDefaultSequence()
The name of the default
sequence , if none was specified for a sequence
generator. |
void |
initialize(Properties settings)
Initializes this provider from the given settings.
|
boolean |
isJoinedDiscriminatorNeeded()
Indicates if the current JPA provider needs always a discriminator column for a JOINED table.
|
default <T> ValueConverter<T> createBasicConverter(String attributeName, Class<T> targetType)
T
- the generic typeattributeName
- the name of the attribute that contains the value - only to print that name in case of any errortargetType
- the primitive database typeUnsupportedTypeConverter
if no converter is availabledefault <T> ValueConverter<T> createConverter(AttributeAccessor attribute, Class<T> targetType, boolean mapKey)
PrimitiveProperty
.T
- the generic binding of the type of the valueattribute
- the accessor for the attribute that contains the value, not nessecarily of the target typetargetType
- the type of the valuemapKey
- indicates that the converter is for the key of a mapUnsupportedTypeConverter
if no converter is availabledefault <T> ValueConverter<T> createFallbackConverter(String attributeName, Class<T> targetType)
T
- the generic typeattributeName
- the name of the attribute that contains the value - only to print that name in case of any errortargetType
- the primitive database typeUnsupportedTypeConverter
if no converter is availableString getDefaultGeneratorTable()
TableGenerator.table()
, if none was specified for a table generator.String getDefaultGeneratorTablePkColumnName()
TableGenerator.pkColumnName()
, if none was specified for a table
generator.String getDefaultGeneratorTablePkColumnValue()
TableGenerator.pkColumnValue()
, if none was specified for a table
generator.String getDefaultGeneratorTableValueColumnName()
TableGenerator.valueColumnName()
, if none was specified for a table
generator.String getDefaultSequence()
sequence
, if none was specified for a sequence
generator.void initialize(Properties settings)
settings
- the settings of the generator contextboolean isJoinedDiscriminatorNeeded()
true
to always write a discriminator column, false
if it should be written only if
explicitly givenCopyright © 2022 fastnate.org. All rights reserved.