|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
List<String> |
getSequenceNames(DatabaseMetaData dbMetaData,
String databaseSchema)
Get the list of sequences defined in the database schema given. |
Long |
getSequenceNextVal(Connection con,
String schema,
String sequenceName)
|
String |
getServerUrl(String url)
jdbc:mysql://[host:port],[host:port]/[database][?property1][=value1][&property2][=value2] |
SqlProducer |
getSqlProducer()
|
String |
getViewDefinition(Connection con,
String schema,
String viewName)
|
boolean |
hasSize(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, getPrimaryKeys, getTableNames, 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 |
---|
public String getAutoIncrement()
getAutoIncrement
in interface Platform
getAutoIncrement
in class PlatformDefaultImpl
Platform.getAutoIncrement()
public boolean hasSize(String sqlType)
Platform
hasSize
in interface Platform
hasSize
in class PlatformDefaultImpl
sqlType
- the SQL type
Platform.hasSize(String)
protected String getBaseUrl(String url)
protected String getOptions(String url)
public String getServerUrl(String url)
getServerUrl
in interface Platform
getServerUrl
in class PlatformDefaultImpl
public String getSchemaName(String artifactId)
Platform
getSchemaName
in interface Platform
getSchemaName
in class PlatformDefaultImpl
public String filterInvalidDefaultValues(String defaultValue)
filterInvalidDefaultValues
in interface Platform
filterInvalidDefaultValues
in class PlatformDefaultImpl
public Long getSequenceNextVal(Connection con, String schema, String sequenceName)
getSequenceNextVal
in interface Platform
getSequenceNextVal
in class PlatformDefaultImpl
public String getViewDefinition(Connection con, String schema, String viewName)
getViewDefinition
in interface Platform
getViewDefinition
in class PlatformDefaultImpl
public List<String> getSequenceNames(DatabaseMetaData dbMetaData, String databaseSchema) throws SQLException
Platform
getSequenceNames
in interface Platform
getSequenceNames
in class PlatformDefaultImpl
SQLException
public SqlProducer getSqlProducer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |