Module eclipselink

Class Oracle12Platform

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

public class Oracle12Platform extends Oracle11Platform

Purpose: Supports usage of certain Oracle JDBC specific APIs for the Oracle 12 database.

See Also:
  • Constructor Details

    • Oracle12Platform

      public Oracle12Platform()
  • Method Details

    • isOracle12

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

      public void printFieldIdentityClause(Writer writer) throws ValidationException
      INTERNAL: Append the receiver's field 'identity' constraint clause to a writer.
      Parameters:
      writer - Target writer.
      Throws:
      ValidationException
    • createStruct

      public Struct createStruct(String structTypeName, Object[] attributes, org.eclipse.persistence.internal.sessions.AbstractRecord row, List<org.eclipse.persistence.internal.helper.DatabaseField> orderedFields, org.eclipse.persistence.internal.sessions.AbstractSession session, Connection connection) throws SQLException
      INTERNAL: This method builds a Struct using the unwrapped connection within the session
      Overrides:
      createStruct in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      Returns:
      Struct
      Throws:
      SQLException
    • createStruct

      public Struct createStruct(String structTypeName, Object[] attributes, Connection connection) throws SQLException
      Create java.sql.Struct from given parameters.
      Overrides:
      createStruct in class Oracle8Platform
      Parameters:
      structTypeName - - the SQL type name of the SQL structured type that this Struct object maps to.
      attributes - - the attributes that populate the returned object
      connection - - DB connection
      Returns:
      Struct
      Throws:
      SQLException
    • getUUIDQuery

      public ValueReadQuery getUUIDQuery()
      INTERNAL: This method returns the query to select the UUID from the server for Oracle.
      Specified by:
      getUUIDQuery in interface org.eclipse.persistence.internal.databaseaccess.Platform
      Overrides:
      getUUIDQuery in class OraclePlatform