Module eclipselink

Class PostgreSQL10Platform

java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
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

public class PostgreSQL10Platform extends PostgreSQLPlatform
Postgres 10 database platform extension.

Purpose: Provides Postgres 10 specific behavior.

Responsibilities:

  • Native JSON support added in version 10.
This class requires Postgres JDBC driver on the classpath.
See Also:
  • Constructor Details

    • PostgreSQL10Platform

      public PostgreSQL10Platform()
      Creates an instance of Postgres 10 platform.
  • Method Details

    • setParameterValueInDatabaseCall

      public void setParameterValueInDatabaseCall(Object parameter, PreparedStatement statement, int index, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
      INTERNAL Set the parameter in the JDBC statement at the given index. This support a wide range of different parameter types, and is heavily optimized for common types. Handles Postgres specific PGobject instances.
      Overrides:
      setParameterValueInDatabaseCall in class PostgreSQLPlatform
      Parameters:
      parameter - the parameter to set
      statement - target PreparedStatement instance
      index - index of the parameter in the statement
      session - current database session
      Throws:
      SQLException
    • setParameterValueInDatabaseCall

      public void setParameterValueInDatabaseCall(Object parameter, CallableStatement statement, String name, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
      INTERNAL Set the parameter in the JDBC statement at the given index. This support a wide range of different parameter types, and is heavily optimized for common types. Handles Postgres specific PGobject instances.
      Overrides:
      setParameterValueInDatabaseCall in class PostgreSQLPlatform
      Parameters:
      parameter - the parameter to set
      statement - target CallableStatement instance
      name - name of the parameter in the statement
      session - current database session
      Throws:
      SQLException
    • buildDatabaseTypes

      protected Map<Class<?>,FieldDefinition.DatabaseType> buildDatabaseTypes()
      Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      Return the mapping of class types to database types for the schema framework.
      Overrides:
      buildDatabaseTypes in class PostgreSQLPlatform
    • buildJavaTypes

      protected Map<String,Class<?>> buildJavaTypes()
      Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      Return the mapping of class types to database types for the schema framework.
      Overrides:
      buildJavaTypes in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
    • printFieldIdentityClause

      public void printFieldIdentityClause(Writer writer) throws ValidationException
      Description copied from interface: DDLPlatform
      Prints the platform-specific identity clause for a field (e.g., AUTO_INCREMENT).
      Specified by:
      printFieldIdentityClause in interface DDLPlatform
      Overrides:
      printFieldIdentityClause in class PostgreSQLPlatform
      Parameters:
      writer - the writer to append to
      Throws:
      ValidationException