|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.dialect.Dialect
org.hibernate.dialect.MySQLDialect
An SQL dialect for MySQL (prior to 5.x).
Field Summary |
Fields inherited from class org.hibernate.dialect.Dialect |
CLOSED_QUOTE, QUOTE |
Constructor Summary | |
MySQLDialect()
|
Method Summary | |
char |
closeQuote()
The closing quote for a quoted identifier |
String |
getAddColumnString()
The syntax used to add a column to a table (optional). |
String |
getAddForeignKeyConstraintString(String constraintName,
String[] foreignKey,
String referencedTable,
String[] primaryKey,
boolean referencesPrimaryKey)
The syntax used to add a foreign key constraint to a table. |
String |
getCastTypeName(int code)
|
String |
getColumnComment(String comment)
|
String |
getCreateTemporaryTableString()
|
String |
getCurrentTimestampSelectString()
|
String |
getDropForeignKeyString()
|
String |
getIdentityColumnString()
|
String |
getIdentitySelectString()
|
String |
getLimitString(String sql,
boolean hasOffset)
Add a LIMIT clause to the given SQL SELECT |
ResultSet |
getResultSet(CallableStatement ps)
|
String |
getSelectGUIDString()
|
String |
getTableComment(String comment)
|
boolean |
isCurrentTimestampSelectStringCallable()
|
char |
openQuote()
The opening quote for a quoted identifier |
boolean |
qualifyIndexName()
Do we need to qualify index names with the schema name? |
int |
registerResultSetOutParameter(CallableStatement statement,
int col)
|
protected void |
registerVarcharTypes()
|
boolean |
supportsCascadeDelete()
|
boolean |
supportsCurrentTimestampSelection()
|
boolean |
supportsIdentityColumns()
Does this dialect support identity column key generation? |
boolean |
supportsIfExistsBeforeTableName()
|
boolean |
supportsLimit()
Does this Dialect have some kind of LIMIT syntax? |
boolean |
supportsTemporaryTables()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MySQLDialect()
Method Detail |
protected void registerVarcharTypes()
public String getAddColumnString()
Dialect
getAddColumnString
in class Dialect
public boolean qualifyIndexName()
Dialect
qualifyIndexName
in class Dialect
public boolean supportsIdentityColumns()
Dialect
supportsIdentityColumns
in class Dialect
public String getIdentitySelectString()
getIdentitySelectString
in class Dialect
public String getIdentityColumnString()
getIdentityColumnString
in class Dialect
public String getAddForeignKeyConstraintString(String constraintName, String[] foreignKey, String referencedTable, String[] primaryKey, boolean referencesPrimaryKey)
Dialect
getAddForeignKeyConstraintString
in class Dialect
referencesPrimaryKey
- if false, constraint should be
explicit about which column names the constraint refers to
public boolean supportsLimit()
Dialect
supportsLimit
in class Dialect
public String getDropForeignKeyString()
getDropForeignKeyString
in class Dialect
public String getLimitString(String sql, boolean hasOffset)
Dialect
getLimitString
in class Dialect
public char closeQuote()
Dialect
closeQuote
in class Dialect
public char openQuote()
Dialect
openQuote
in class Dialect
public boolean supportsIfExistsBeforeTableName()
supportsIfExistsBeforeTableName
in class Dialect
public String getSelectGUIDString()
getSelectGUIDString
in class Dialect
public boolean supportsCascadeDelete()
supportsCascadeDelete
in class Dialect
public String getTableComment(String comment)
getTableComment
in class Dialect
public String getColumnComment(String comment)
getColumnComment
in class Dialect
public boolean supportsTemporaryTables()
supportsTemporaryTables
in class Dialect
public String getCreateTemporaryTableString()
getCreateTemporaryTableString
in class Dialect
public String getCastTypeName(int code)
getCastTypeName
in class Dialect
public boolean supportsCurrentTimestampSelection()
supportsCurrentTimestampSelection
in class Dialect
public boolean isCurrentTimestampSelectStringCallable()
isCurrentTimestampSelectStringCallable
in class Dialect
public String getCurrentTimestampSelectString()
getCurrentTimestampSelectString
in class Dialect
public int registerResultSetOutParameter(CallableStatement statement, int col) throws SQLException
registerResultSetOutParameter
in class Dialect
SQLException
public ResultSet getResultSet(CallableStatement ps) throws SQLException
getResultSet
in class Dialect
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |