Class PlatformDerbyImpl
java.lang.Object
org.apache.torque.templates.platform.PlatformDefaultImpl
org.apache.torque.templates.platform.PlatformDerbyImpl
- All Implemented Interfaces:
Platform
Derby Platform implementation.
- Version:
- $Id: PlatformDerbyImpl.java 1896195 2021-12-20 17:41:20Z gk $
- Author:
- Johnny Macchione, Greg Monroe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturns whether backslashes must be escaped in string literals.booleanReturns if the RDBMS-specific SQL type has a scale attribute.booleanReturns if the RDBMS-specific SQL type has a size attribute.Methods inherited from class org.apache.torque.templates.platform.PlatformDefaultImpl
createNotNullBeforeAutoincrement, formatDateTimeString, getDateString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimestampString, getTimeString, hasUniqueConstraintSize, quoteAndEscape, setSchemaTypeToSqlTypeMapping, usesStandaloneSchema
-
Constructor Details
-
PlatformDerbyImpl
public PlatformDerbyImpl()Default constructor.
-
-
Method Details
-
getAutoIncrement
- Specified by:
getAutoIncrementin interfacePlatform- Overrides:
getAutoIncrementin classPlatformDefaultImpl- Returns:
- The RDBMS-specific SQL fragment for autoincrement.
- See Also:
-
hasScale
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:
-
hasSize
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:
-
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.
-