|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.sql.GenericSqlDialect
com.partnersoft.sql.MySqlDialect
public class MySqlDialect
SqlDialect for MySql databases.
Copyright 2010 Partner Software, Inc.
| Constructor Summary | |
|---|---|
MySqlDialect()
|
|
| Method Summary | |
|---|---|
java.lang.String |
cogTypeToSqlType(CogType type)
Helper for converting from a CogType to a Sql flavor specific data type. |
java.lang.String |
createTable(CogSchema schema,
CogStructureType tableType)
Returns complete Sql create table statement. |
java.lang.String |
selectSql(DataRecordQuery query,
CogStructureType tableType)
Returns complete Sql select statement. |
| Methods inherited from class com.partnersoft.sql.GenericSqlDialect |
|---|
addColumn, alterColumn, constantToSql, dropColumn, handleSorts, listFields, parseFilter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MySqlDialect()
| Method Detail |
|---|
public java.lang.String selectSql(DataRecordQuery query,
CogStructureType tableType)
SqlDialect
selectSql in interface SqlDialectselectSql in class GenericSqlDialectquery - - Query describing select statement.tableType - - CogStructureType defining table. Type name is assumed to be table name.
public java.lang.String cogTypeToSqlType(CogType type)
SqlDialect
cogTypeToSqlType in interface SqlDialectcogTypeToSqlType in class GenericSqlDialecttype - - CogType to convert to Sql type.
public java.lang.String createTable(CogSchema schema,
CogStructureType tableType)
SqlDialect
createTable in interface SqlDialectcreateTable in class GenericSqlDialectschema - - Schema defining column types.tableType - - CogStructureType defining table. Type name is assumed to be table name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||