Interface UuidMappingInfo

All Known Implementing Classes:
JmixHSQLPlatform, JmixMySQLPlatform, JmixOraclePlatform, JmixPostgreSQLPlatform, JmixSQLServerPlatform

public interface UuidMappingInfo
  • Method Details

    • getUuidSqlType

      int getUuidSqlType()
    • getUuidType

      Class<?> getUuidType()
    • getUuidColumnDefinition

      String getUuidColumnDefinition()
    • getUuidConverter

      org.eclipse.persistence.mappings.converters.Converter getUuidConverter()
    • convertToDataValueIfUUID

      default Object convertToDataValueIfUUID(Object parameter)
      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#1073

      We 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