|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.engine.platform.PlatformDefaultImpl
org.apache.torque.engine.platform.PlatformMysqlImpl
public class PlatformMysqlImpl
MySql Platform implementation.
| Field Summary |
|---|
| Fields inherited from interface org.apache.torque.engine.platform.Platform |
|---|
IDENTITY, SEQUENCE |
| Constructor Summary | |
|---|---|
PlatformMysqlImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
filterInvalidDefaultValues(String defaultValue)
|
String |
getAutoIncrement()
|
protected String |
getBaseUrl(String url)
|
protected String |
getOptions(String url)
|
String |
getSchemaName(String artifactId)
Given an artifact id, return a string a schema name based on the artifact id that is allowed by the db vendor |
Long |
getSequenceNextVal(Connection con,
String schema,
String sequenceName)
|
String |
getServerUrl(String url)
jdbc:mysql://[host:port],[host:port]/[database][?property1][=value1][&property2][=value2] |
String |
getViewDefinition(Connection con,
String schema,
String viewName)
|
boolean |
hasSize(String sqlType)
Returns if the RDBMS-specific SQL type has a size attribute. |
private void |
initialize()
Initializes db specific domain mapping. |
| Methods inherited from class org.apache.torque.engine.platform.PlatformDefaultImpl |
|---|
createNotNullBeforeAutoincrement, getDomainForSchemaType, getMaxColumnNameLength, getNativeIdMethod, getNullString, getPrimaryKeys, getTableNames, hasScale, isSpecialDefault, setSchemaDomainMapping |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlatformMysqlImpl()
| Method Detail |
|---|
private void initialize()
public String getAutoIncrement()
getAutoIncrement in interface PlatformgetAutoIncrement in class PlatformDefaultImplPlatform.getAutoIncrement()public boolean hasSize(String sqlType)
Platform
hasSize in interface PlatformhasSize in class PlatformDefaultImplsqlType - the SQL type
Platform.hasSize(String)protected String getBaseUrl(String url)
protected String getOptions(String url)
public String getServerUrl(String url)
getServerUrl in interface PlatformgetServerUrl in class PlatformDefaultImplpublic String getSchemaName(String artifactId)
Platform
getSchemaName in interface PlatformgetSchemaName in class PlatformDefaultImplpublic String filterInvalidDefaultValues(String defaultValue)
filterInvalidDefaultValues in interface PlatformfilterInvalidDefaultValues in class PlatformDefaultImpl
public Long getSequenceNextVal(Connection con,
String schema,
String sequenceName)
getSequenceNextVal in interface PlatformgetSequenceNextVal in class PlatformDefaultImpl
public String getViewDefinition(Connection con,
String schema,
String viewName)
getViewDefinition in interface PlatformgetViewDefinition in class PlatformDefaultImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||