|
|||||||||
| Home >> All >> org >> hibernate >> [ dialect overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hibernate.dialect
Class MimerSQLDialect

java.lang.Objectorg.hibernate.dialect.Dialect
org.hibernate.dialect.MimerSQLDialect
- public class MimerSQLDialect
- extends Dialect
An Hibernate 3 SQL dialect for Mimer SQL. This dialect requires Mimer SQL 9.2.1 or later because of the mappings to NCLOB, BINARY, and BINARY VARYING.
| Field Summary | |
private static int |
BINARY_MAX_LENGTH
|
private static int |
NATIONAL_CHAR_LENGTH
|
| Fields inherited from class org.hibernate.dialect.Dialect |
CLOSED_QUOTE, DEFAULT_BATCH_SIZE, NO_BATCH, QUOTE |
| Constructor Summary | |
MimerSQLDialect()
Even thoug Mimer SQL supports character and binary columns up to 15 000 in lenght, this is also the maximum width of the table (exluding LOBs). |
|
| Method Summary | |
boolean |
dropConstraints()
We do not have to drop constraints before we drop the table |
boolean |
forUpdateOfColumns()
Does the FOR UPDATE OF syntax specify particular columns? |
java.lang.String |
getAddColumnString()
The syntax used to add a column to a table |
java.lang.String |
getCascadeConstraintsString()
The syntax for using cascade on constraints |
java.lang.String |
getCreateSequenceString(java.lang.String sequenceName)
The syntax used to create a sequence. |
java.lang.String |
getDropSequenceString(java.lang.String sequenceName)
The syntax used to drop sequences |
java.lang.String |
getQuerySequencesString()
The syntax for fetching all sequnces avialable in the current schema. |
java.lang.String |
getSequenceNextValString(java.lang.String sequenceName)
The syntax used to get the next value of a sequence in Mimer SQL |
boolean |
supportsForUpdate()
Support the FOR UPDATE syntax? For now, returns false since the current version of the Mimer SQL JDBC Driver does not support updatable resultsets. |
boolean |
supportsIdentityColumns()
TODO: Check if Mimer SQL cannot handle the way DB2 does |
boolean |
supportsLimit()
Mimer SQL does not support limit |
boolean |
supportsOuterJoinForUpdate()
For now, simply return false since we don't updatable result sets. |
boolean |
supportsSequences()
Mimer SQL supports sequences |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
NATIONAL_CHAR_LENGTH
private static final int NATIONAL_CHAR_LENGTH
- See Also:
- Constant Field Values
BINARY_MAX_LENGTH
private static final int BINARY_MAX_LENGTH
- See Also:
- Constant Field Values
| Constructor Detail |
MimerSQLDialect
public MimerSQLDialect()
- Even thoug Mimer SQL supports character and binary columns up to 15 000 in lenght,
this is also the maximum width of the table (exluding LOBs). To avoid breaking the limit all the
time we limit the length of the character columns to CHAR_MAX_LENTH, NATIONAL_CHAR_LENGTH for national
characters, and BINARY_MAX_LENGTH for binary types.
| Method Detail |
getAddColumnString
public java.lang.String getAddColumnString()
- The syntax used to add a column to a table
- Overrides:
getAddColumnStringin classDialect
dropConstraints
public boolean dropConstraints()
- We do not have to drop constraints before we drop the table
- Overrides:
dropConstraintsin classDialect
supportsIdentityColumns
public boolean supportsIdentityColumns()
- TODO: Check if Mimer SQL cannot handle the way DB2 does
- Overrides:
supportsIdentityColumnsin classDialect
supportsSequences
public boolean supportsSequences()
- Mimer SQL supports sequences
- Overrides:
supportsSequencesin classDialect
getSequenceNextValString
public java.lang.String getSequenceNextValString(java.lang.String sequenceName)
- The syntax used to get the next value of a sequence in Mimer SQL
- Overrides:
getSequenceNextValStringin classDialect
getCreateSequenceString
public java.lang.String getCreateSequenceString(java.lang.String sequenceName)
- The syntax used to create a sequence. Since we presume the sequences will be used as keys,
we make them unique.
- Overrides:
getCreateSequenceStringin classDialect
getDropSequenceString
public java.lang.String getDropSequenceString(java.lang.String sequenceName)
- The syntax used to drop sequences
- Overrides:
getDropSequenceStringin classDialect
supportsLimit
public boolean supportsLimit()
- Mimer SQL does not support limit
- Overrides:
supportsLimitin classDialect
getCascadeConstraintsString
public java.lang.String getCascadeConstraintsString()
- The syntax for using cascade on constraints
- Overrides:
getCascadeConstraintsStringin classDialect
getQuerySequencesString
public java.lang.String getQuerySequencesString()
- The syntax for fetching all sequnces avialable in the current schema.
- Overrides:
getQuerySequencesStringin classDialect
forUpdateOfColumns
public boolean forUpdateOfColumns()
- Does the FOR UPDATE OF syntax specify particular
columns?
- Overrides:
forUpdateOfColumnsin classDialect
supportsForUpdate
public boolean supportsForUpdate()
- Support the FOR UPDATE syntax? For now, returns false since
the current version of the Mimer SQL JDBC Driver does not support
updatable resultsets. Otherwise, Mimer SQL actually supports the for update syntax.
supportsOuterJoinForUpdate
public boolean supportsOuterJoinForUpdate()
- For now, simply return false since we don't updatable result sets.
- Overrides:
supportsOuterJoinForUpdatein classDialect
|
|||||||||
| Home >> All >> org >> hibernate >> [ dialect overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC