Package io.jmix.eclipselink.impl.dbms
Interface UuidMappingInfo
- All Known Implementing Classes:
JmixHSQLPlatform
,JmixMySQLPlatform
,JmixOraclePlatform
,JmixPostgreSQLPlatform
,JmixSQLServerPlatform
public interface UuidMappingInfo
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
convertToDataValueIfUUID
(Object parameter) Sometimes for some complex queries Eclipselink does not process collection parameter elements with converters.org.eclipse.persistence.mappings.converters.Converter
int
Class<?>
-
Method Details
-
getUuidSqlType
int getUuidSqlType() -
getUuidType
Class<?> getUuidType() -
getUuidColumnDefinition
String getUuidColumnDefinition() -
getUuidConverter
org.eclipse.persistence.mappings.converters.Converter getUuidConverter() -
convertToDataValueIfUUID
Sometimes for some complex queries Eclipselink does not process collection parameter elements with converters. It only appends them to query using limited set of conversion checks instead. E.g. in org.eclipse.persistence.internal.databaseaccess.DatabasePlatform#setParameterValueInDatabaseCall(..) or in org.eclipse.persistence.internal.databaseaccess.DatabasePlatform#printValuelist(..) for case jmix-framework/jmix#1073We have to convert UUID manually in such cases for several database types.
- Returns:
- converted to db type UUID parameter or the same parameter for other types
-