Class PlatformPostgresqlImpl
- java.lang.Object
-
- org.apache.torque.templates.platform.PlatformDefaultImpl
-
- org.apache.torque.templates.platform.PlatformPostgresqlImpl
-
- All Implemented Interfaces:
Platform
public class PlatformPostgresqlImpl extends PlatformDefaultImpl
Postgresql Platform implementation.- Version:
- $Id: PlatformPostgresqlImpl.java 1896195 2021-12-20 17:41:20Z gk $
- Author:
- Martin Poeschl
-
-
Constructor Summary
Constructors Constructor Description PlatformPostgresqlImpl()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanescapeBackslashes()Returns whether backslashes must be escaped in string literals.StringgetAutoIncrement()booleanhasScale(String sqlType)Returns if the RDBMS-specific SQL type has a scale attribute.booleanhasSize(String sqlType)Returns if the RDBMS-specific SQL type has a size attribute.booleanusesStandaloneSchema()Returns whether the database has schema support where a schema is not tied to a user (oracle) or database (mysql), but can be created separately.-
Methods inherited from class org.apache.torque.templates.platform.PlatformDefaultImpl
createNotNullBeforeAutoincrement, formatDateTimeString, getDateString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimestampString, getTimeString, hasUniqueConstraintSize, quoteAndEscape, setSchemaTypeToSqlTypeMapping
-
-
-
-
Method Detail
-
getAutoIncrement
public String getAutoIncrement()
- Specified by:
getAutoIncrementin interfacePlatform- Overrides:
getAutoIncrementin classPlatformDefaultImpl- Returns:
- The RDBMS-specific SQL fragment for autoincrement.
- See Also:
Platform.getAutoIncrement()
-
hasScale
public boolean hasScale(String sqlType)
Description copied from interface:PlatformReturns if the RDBMS-specific SQL type has a scale attribute.- Specified by:
hasScalein interfacePlatform- Overrides:
hasScalein classPlatformDefaultImpl- Parameters:
sqlType- the SQL type- Returns:
- true if the type has a scale attribute
- See Also:
Platform.hasScale(String)
-
hasSize
public boolean hasSize(String sqlType)
Description copied from interface:PlatformReturns if the RDBMS-specific SQL type has a size attribute.- Specified by:
hasSizein interfacePlatform- Overrides:
hasSizein classPlatformDefaultImpl- Parameters:
sqlType- the SQL type- Returns:
- true if the type has a size attribute
- See Also:
Platform.hasSize(String)
-
escapeBackslashes
protected boolean escapeBackslashes()
Description copied from class:PlatformDefaultImplReturns whether backslashes must be escaped in string literals.- Overrides:
escapeBackslashesin classPlatformDefaultImpl- Returns:
- true if backslashes bust be escaped, false otherwise.
-
usesStandaloneSchema
public boolean usesStandaloneSchema()
Returns whether the database has schema support where a schema is not tied to a user (oracle) or database (mysql), but can be created separately.- Specified by:
usesStandaloneSchemain interfacePlatform- Overrides:
usesStandaloneSchemain classPlatformDefaultImpl- Returns:
- this implementation returns true.
-
-