Module eclipselink

Class PostgreSQL10Platform

  • 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:
    Serialized Form
    • Constructor Detail

      • PostgreSQL10Platform

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

      • buildClassTypes

        protected Map<String,​Class<?>> buildClassTypes()
        Build the mapping of database types to class types for the schema framework.
        Overrides:
        buildClassTypes in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
        Returns:
        database types to class types Map for the schema framework
      • buildFieldTypes

        protected Hashtable<Class<?>,​org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition> buildFieldTypes()
        Build the mapping of class types to database types for the schema framework.
        Overrides:
        buildFieldTypes in class PostgreSQLPlatform
        Returns:
        Hashtable mapping class types to database types for the schema framework
      • 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