org.apache.torque.engine.platform
Class PlatformMysqlImpl

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

public class PlatformMysqlImpl
extends PlatformDefaultImpl

MySql Platform implementation.

Version:
$Id: PlatformMysqlImpl.java 473814 2006-11-11 22:30:30Z tv $
Author:
Martin Poeschl

Field Summary
 
Fields inherited from interface org.apache.torque.engine.platform.Platform
IDENTITY, SEQUENCE
 
Constructor Summary
PlatformMysqlImpl()
          Default constructor.
 
Method Summary
 java.lang.String getAutoIncrement()
           
 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, getMaxColumnNameLength, getNativeIdMethod, getNullString, hasScale, setSchemaDomainMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformMysqlImpl

public PlatformMysqlImpl()
Default constructor.

Method Detail

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()

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.