org.apache.torque.engine.platform
Class PlatformDerbyImpl

java.lang.Object
  extended by org.apache.torque.engine.platform.PlatformDefaultImpl
      extended by org.apache.torque.engine.platform.PlatformDerbyImpl
All Implemented Interfaces:
Platform

public class PlatformDerbyImpl
extends PlatformDefaultImpl

Derby Platform implementation.

Version:
$Id: PlatformDerbyImpl.java 482880 2006-12-06 03:55:24Z gmonroe $
Author:
Johnny Macchione, Greg Monroe

Field Summary
 
Fields inherited from interface org.apache.torque.engine.platform.Platform
IDENTITY, SEQUENCE
 
Constructor Summary
PlatformDerbyImpl()
          Default constructor.
 
Method Summary
 java.lang.String getAutoIncrement()
           
 int getMaxColumnNameLength()
          Returns the max column length supported by the db.
 java.lang.String getNativeIdMethod()
          Returns the native IdMethod (sequence|identity)
 boolean hasScale(java.lang.String sqlType)
          Returns if the RDBMS-specific SQL type has a scale attribute.
 boolean hasSize(java.lang.String sqlType)
          Returns if the RDBMS-specific SQL type has a size attribute.
 
Methods inherited from class org.apache.torque.engine.platform.PlatformDefaultImpl
createNotNullBeforeAutoincrement, getDomainForSchemaType, getNullString, setSchemaDomainMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformDerbyImpl

public PlatformDerbyImpl()
Default constructor.

Method Detail

getMaxColumnNameLength

public int getMaxColumnNameLength()
Description copied from interface: Platform
Returns the max column length supported by the db.

Specified by:
getMaxColumnNameLength in interface Platform
Overrides:
getMaxColumnNameLength in class PlatformDefaultImpl
Returns:
the max column length
See Also:
Platform.getMaxColumnNameLength()

getAutoIncrement

public java.lang.String getAutoIncrement()
Specified by:
getAutoIncrement in interface Platform
Overrides:
getAutoIncrement in class PlatformDefaultImpl
Returns:
The RDBMS-specific SQL fragment for autoincrement.
See Also:
Platform.getAutoIncrement()

getNativeIdMethod

public java.lang.String getNativeIdMethod()
Description copied from interface: Platform
Returns the native IdMethod (sequence|identity)

Specified by:
getNativeIdMethod in interface Platform
Overrides:
getNativeIdMethod in class PlatformDefaultImpl
Returns:
the native IdMethod
See Also:
Platform.getNativeIdMethod()

hasScale

public boolean hasScale(java.lang.String sqlType)
Description copied from interface: Platform
Returns if the RDBMS-specific SQL type has a scale attribute.

Specified by:
hasScale in interface Platform
Overrides:
hasScale in class PlatformDefaultImpl
Parameters:
sqlType - the SQL type
Returns:
true if the type has a scale attribute
See Also:
Platform.hasScale(String)

hasSize

public boolean hasSize(java.lang.String sqlType)
Description copied from interface: Platform
Returns if the RDBMS-specific SQL type has a size attribute.

Specified by:
hasSize in interface Platform
Overrides:
hasSize in class PlatformDefaultImpl
Parameters:
sqlType - the SQL type
Returns:
true if the type has a size attribute
See Also:
Platform.hasSize(String)


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.