Module eclipselink

Class Oracle21Platform

    • Constructor Detail

      • Oracle21Platform

        public Oracle21Platform()
    • Method Detail

      • buildFieldTypes

        protected Hashtable<Class<?>,​org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition> buildFieldTypes()
        Description copied from class: Oracle10Platform
        INTERNAL: Add XMLType as the default database type for org.w3c.dom.Documents. Add TIMESTAMP, TIMESTAMP WITH TIME ZONE and TIMESTAMP WITH LOCAL TIME ZONE
        Overrides:
        buildFieldTypes in class Oracle10Platform
      • 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
      • isOracle21

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