|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.orm.SqlDialect
org.ujorm.orm.dialect.MySqlDialect
public class MySqlDialect
Dialect for the MySQL since release 5.0 for the InnoDB engine.
http://dev.mysql.com/
| Field Summary |
|---|
| Fields inherited from class org.ujorm.orm.SqlDialect |
|---|
COMMON_SEQ_TABLE_KEY, DEFAULT_SCHEMA_SYMBOL, ormHandler |
| Constructor Summary | |
|---|---|
MySqlDialect()
|
|
| Method Summary | |
|---|---|
protected String |
getColumnType(MetaColumn column)
MySQL dialect uses a database type DATETIME (instead of the TIMESTAMP) for the java.util.Date. |
protected String |
getEngine(MetaTable table)
Returns a MySQL enginge. |
String |
getJdbcDriver()
Returns a JDBC driver class name. |
String |
getJdbcUrl()
Returns a default JDBC URL |
Appendable |
printComment(MetaColumn column,
Appendable out)
Important note for MySQL: the change of column modifies all another column attributes so the comment update can revert some hand-made changes different from meta-model. |
Appendable |
printComment(MetaTable table,
Appendable out)
Print a Comment on the table |
Appendable |
printDelete(MetaTable table,
CriterionDecoder decoder,
Appendable out)
Print an SQL DELETE statement. |
Appendable |
printQuotedName(CharSequence name,
Appendable sql)
Prints quoted name (identifier) to SQL. |
Appendable |
printSequenceTable(MetaDatabase db,
Appendable out)
Print SQL CREATE SEQUENCE. |
Appendable |
printTable(MetaTable table,
Appendable out)
Print a SQL sript to create table |
| 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 String getJdbcUrl()
SqlDialect
getJdbcUrl in class SqlDialectpublic String getJdbcDriver()
SqlDialect
getJdbcDriver in class SqlDialect
public Appendable printDelete(MetaTable table,
CriterionDecoder decoder,
Appendable out)
throws IOException
printDelete in class SqlDialectIOException
public Appendable printSequenceTable(MetaDatabase db,
Appendable out)
throws IOException
SqlDialect
printSequenceTable in class SqlDialectIOException
public Appendable printTable(MetaTable table,
Appendable out)
throws IOException
SqlDialect
printTable in class SqlDialectIOExceptionprotected String getEngine(MetaTable table)
protected String getColumnType(MetaColumn column)
getColumnType in class SqlDialect
public Appendable printComment(MetaTable table,
Appendable out)
throws IOException
printComment in class SqlDialectIOException
public Appendable printComment(MetaColumn column,
Appendable out)
throws IOException
printComment in class SqlDialectIOException
public Appendable printQuotedName(CharSequence name,
Appendable sql)
throws IOException
printQuotedName in class SqlDialectname - Name (identifier) for quotingsql - Target SQL for printing new quoted name
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||