Module eclipselink

Class Oracle23Platform

All Implemented Interfaces:
Serializable, Cloneable, org.eclipse.persistence.internal.core.databaseaccess.CorePlatform<org.eclipse.persistence.internal.helper.ConversionManager>, org.eclipse.persistence.internal.databaseaccess.Platform

public class Oracle23Platform extends Oracle21Platform

Purpose: Supports certain new Oracle 23c data types, and usage of certain Oracle JDBC specific APIs.

Supports Oracle JSON data type.

Supports Oracle OracleJsonValue derived Java types.

See Also:
  • Constructor Details

    • Oracle23Platform

      public Oracle23Platform()
      Creates an instance of Oracle 23c database platform.
  • Method Details

    • isOracle23

      public boolean isOracle23()
      INTERNAL: Check whether current platform is Oracle 23c or later.
      Specified by:
      isOracle23 in interface org.eclipse.persistence.internal.databaseaccess.Platform
      Overrides:
      isOracle23 in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
      Returns:
      Always returns true for instances of Oracle 23c platform.
    • buildFieldTypes

      protected Hashtable<Class<?>,org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition> buildFieldTypes()
      Description copied from class: Oracle21Platform
      Build the mapping of class types to Oracle 21c database types for the schema framework.
      Overrides:
      buildFieldTypes in class Oracle21Platform
      Returns:
      Hashtable mapping class types to database types for the schema framework
    • convertObject

      public <T> T convertObject(Object sourceObject, Class<T> javaClass, org.eclipse.persistence.internal.sessions.AbstractSession session) throws ConversionException, DatabaseException
      INTERNAL: Allow for conversion from the Oracle type to the Java type. Used in cases when DB connection is needed like BLOB, CLOB.
      Specified by:
      convertObject in interface org.eclipse.persistence.internal.core.databaseaccess.CorePlatform<org.eclipse.persistence.internal.helper.ConversionManager>
      Overrides:
      convertObject in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
      Parameters:
      sourceObject - the object that must be converted
      javaClass - the class that the object must be converted to
      session - current database session
      Returns:
      the newly converted object
      Throws:
      ConversionException - all exceptions will be thrown as this type.
      DatabaseException