Class PlatformDerbyImpl
- java.lang.Object
-
- org.apache.torque.templates.platform.PlatformDefaultImpl
-
- org.apache.torque.templates.platform.PlatformDerbyImpl
-
- All Implemented Interfaces:
Platform
public class PlatformDerbyImpl extends PlatformDefaultImpl
Derby Platform implementation.- Version:
- $Id: PlatformDerbyImpl.java 1896195 2021-12-20 17:41:20Z gk $
- Author:
- Johnny Macchione, Greg Monroe
-
-
Constructor Summary
Constructors Constructor Description PlatformDerbyImpl()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
escapeBackslashes()
Returns whether backslashes must be escaped in string literals.String
getAutoIncrement()
boolean
hasScale(String sqlType)
Returns if the RDBMS-specific SQL type has a scale attribute.boolean
hasSize(String sqlType)
Returns 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
-
-
-
-
Method Detail
-
getAutoIncrement
public String getAutoIncrement()
- Specified by:
getAutoIncrement
in interfacePlatform
- Overrides:
getAutoIncrement
in classPlatformDefaultImpl
- Returns:
- The RDBMS-specific SQL fragment for autoincrement.
- See Also:
PlatformDefaultImpl.getAutoIncrement()
-
hasScale
public boolean hasScale(String sqlType)
Description copied from interface:Platform
Returns if the RDBMS-specific SQL type has a scale attribute.- Specified by:
hasScale
in interfacePlatform
- Overrides:
hasScale
in classPlatformDefaultImpl
- Parameters:
sqlType
- the SQL type- Returns:
- true if the type has a scale attribute
- See Also:
PlatformDefaultImpl.hasScale(java.lang.String)
-
hasSize
public boolean hasSize(String sqlType)
Description copied from interface:Platform
Returns if the RDBMS-specific SQL type has a size attribute.- Specified by:
hasSize
in interfacePlatform
- Overrides:
hasSize
in classPlatformDefaultImpl
- Parameters:
sqlType
- the SQL type- Returns:
- true if the type has a size attribute
- See Also:
PlatformDefaultImpl.hasSize(java.lang.String)
-
escapeBackslashes
protected boolean escapeBackslashes()
Description copied from class:PlatformDefaultImpl
Returns whether backslashes must be escaped in string literals.- Overrides:
escapeBackslashes
in classPlatformDefaultImpl
- Returns:
- true if backslashes bust be escaped, false otherwise.
-
-