Top Description Inners Fields Constructors Methods
org.eclipse.persistence.platform.database

public Class PostgreSQL10Platform

extends PostgreSQLPlatform
Class Inheritance
Imports
java.sql.CallableStatement, .PreparedStatement, .SQLException, java.util.Hashtable, .Map, org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.logging.DefaultSessionLog, .SessionLog

Postgres 10 database platform extension.

Purpose: Provides Postgres 10 specific behavior.

Responsibilities:

This class requires Postgres JDBC driver on the classpath.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
PostgreSQL10Platform.PostgreSQL10JsonExtension

Add extended JSON functionality dependent on PostgreSQL JDBC driver.

Field Summary

Modifier and TypeField and Description
private final PostgreSQL10Platform.PostgreSQL10JsonExtension

Constructor Summary

AccessConstructor and Description
public
PostgreSQL10Platform()

Creates an instance of Postgres 10 platform.

Method Summary

Modifier and TypeMethod and Description
protected Map<String, Class<?>>

Returns:

database types to class types Map for the schema framework
buildClassTypes
()

Overrides org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.buildClassTypes.

Build the mapping of database types to class types for the schema framework.
protected Hashtable<Class<?>, FieldTypeDefinition>

Returns:

Hashtable mapping class types to database types for the schema framework
buildFieldTypes
()

Overrides org.eclipse.persistence.platform.database.PostgreSQLPlatform.buildFieldTypes.

Build the mapping of class types to database types for the schema framework.
public void
setParameterValueInDatabaseCall(final Object
the parameter to set
parameter
,
final PreparedStatement
target PreparedStatement instance
statement
,
final int
index of the parameter in the statement
index
,
final AbstractSession
current database session
session
)

Overrides org.eclipse.persistence.platform.database.PostgreSQLPlatform.setParameterValueInDatabaseCall.

INTERNAL Set the parameter in the JDBC statement at the given index.
public void
setParameterValueInDatabaseCall(final Object
the parameter to set
parameter
,
final CallableStatement
target CallableStatement instance
statement
,
final String
name of the parameter in the statement
name
,
final AbstractSession
current database session
session
)

Overrides org.eclipse.persistence.platform.database.PostgreSQLPlatform.setParameterValueInDatabaseCall.

INTERNAL Set the parameter in the JDBC statement at the given index.
Inherited from org.eclipse.persistence.platform.database.PostgreSQLPlatform:
appendBooleanbuildCallWithReturningbuildProcedureCallStringbuildSelectQueryForIdentitybuildSelectQueryForSequenceObjectcanBuildCallWithReturningcomputeMaxRowsForSQLgetAssignmentStringgetCreateTempTableSqlPrefixgetCreateTempTableSqlSuffixgetDropCascadeStringgetInOutputProcedureTokengetJDBCTypegetMaxFieldNameSizegetProcedureBeginStringgetProcedureEndStringgetTimestampQueryinitializePlatformOperatorsisAlterSequenceObjectSupportedisJDBCExecuteCompliantisPostgreSQLoperatorLocateoperatorLocate2printFieldIdentityClauseprintFieldTypeSizeprintFieldUniqueprintSQLSelectStatementregexpOperatorsetNullFromDatabaseFieldshouldPrintAliasForUpdateshouldPrintOutputTokenAtStartshouldUseJDBCOuterJoinSyntaxsupportsIdentitysupportsLocalTempTablessupportsSequenceObjectstoNumberOperatorwriteUpdateOriginalFromTempTableSql

Field Detail

postgreSQL10JsonExtensionback to summary
private final PostgreSQL10Platform.PostgreSQL10JsonExtension postgreSQL10JsonExtension

Constructor Detail

PostgreSQL10Platformback to summary
public PostgreSQL10Platform()

Creates an instance of Postgres 10 platform.

Method Detail

buildClassTypesback to summary
protected Map<String, Class<?>> buildClassTypes()

Overrides org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.buildClassTypes.

Build the mapping of database types to class types for the schema framework.

Returns:Map<String, Class<?>>

database types to class types Map for the schema framework

Annotations
@Override
buildFieldTypesback to summary
protected Hashtable<Class<?>, FieldTypeDefinition> buildFieldTypes()

Overrides org.eclipse.persistence.platform.database.PostgreSQLPlatform.buildFieldTypes.

Build the mapping of class types to database types for the schema framework.

Returns:Hashtable<Class<?>, FieldTypeDefinition>

Hashtable mapping class types to database types for the schema framework

Annotations
@Override
setParameterValueInDatabaseCallback to summary
public void setParameterValueInDatabaseCall(final Object parameter, final PreparedStatement statement, final int index, final AbstractSession session) throws SQLException

Overrides org.eclipse.persistence.platform.database.PostgreSQLPlatform.setParameterValueInDatabaseCall.

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.

Parameters
parameter:Object

the parameter to set

statement:PreparedStatement

target PreparedStatement instance

index:int

index of the parameter in the statement

session:AbstractSession

current database session

Annotations
@Override
setParameterValueInDatabaseCallback to summary
public void setParameterValueInDatabaseCall(final Object parameter, final CallableStatement statement, final String name, final AbstractSession session) throws SQLException

Overrides org.eclipse.persistence.platform.database.PostgreSQLPlatform.setParameterValueInDatabaseCall.

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.

Parameters
parameter:Object

the parameter to set

statement:CallableStatement

target CallableStatement instance

name:String

name of the parameter in the statement

session:AbstractSession

current database session

Annotations
@Override
org.eclipse.persistence.platform.database back to summary

public Interface PostgreSQL10Platform.PostgreSQL10JsonExtension


Add extended JSON functionality dependent on PostgreSQL JDBC driver.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

value of true when provided instance is an instance of PGobject or false otherwise
isPgObjectInstance
(final Object
an instance to check
parameter
)

Check whether provided instance is an instance of PGobject.

Method Detail

isPgObjectInstanceback to summary
public boolean isPgObjectInstance(final Object parameter)

Check whether provided instance is an instance of PGobject.

Parameters
parameter:Object

an instance to check

Returns:boolean

value of true when provided instance is an instance of PGobject or false otherwise