| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.hibernate.dialect.Dialectorg.hibernate.dialect.Oracle9Dialectorg.hibernate.dialect.OracleDialectpublic class OracleDialectextends Oracle9DialectField Summary |
Fields inherited from class org.hibernate.dialect.Dialect | |
CLOSED_QUOTE, DEFAULT_BATCH_SIZE, NO_BATCH, QUOTE | |
Constructor Summary | |
Method Summary | |
CaseFragment |
|
JoinFragment |
|
String |
|
String |
|
String |
|
String |
|
public CaseFragment createCaseFragment()
Create aCaseFragmentstrategy responsible for handling this dialect's variations in how CASE statements are handled.
- Overrides:
- createCaseFragment in interface Dialect
- Returns:
- This dialect's
CaseFragmentstrategy.
public JoinFragment createOuterJoinFragment()
Create aJoinFragmentstrategy responsible for handling this dialect's variations in how joins are handled.
- Overrides:
- createOuterJoinFragment in interface Dialect
- Returns:
- This dialect's
JoinFragmentstrategy.
public String getCurrentTimestampSQLFunctionName()
The name of the database-specific SQL function for retrieving the current timestamp.
- Overrides:
- getCurrentTimestampSQLFunctionName in interface Dialect
- Returns:
- The function name.
public String getCurrentTimestampSelectString()
Retrieve the command used to retrieve the current timestammp from the database.
- Overrides:
- getCurrentTimestampSelectString in interface Oracle9Dialect
- Returns:
- The command.
public String getLimitString(String sql,
boolean hasOffset)Apply s limit clause to the query. Typically dialects utilizevariablelimit caluses when they support limits. Thus, when building the select command we do not actually need to know the limit or the offest since we will just be using placeholders. Here we do still pass along whether or not an offset was specified so that dialects not supporting offsets can generate proper exceptions. In general, dialects will override one or the other of this method andDialect.getLimitString(String,int,int).
- Overrides:
- getLimitString in interface Oracle9Dialect
- Parameters:
hasOffset- Is the query requesting an offset?
- Returns:
- the modified SQL
public String getSelectClauseNullString(int sqlType)
Given ajava.sql.Typestype code, determine an appropriate null value to use in a select clause. One thing to consider here is that certain databases might require proper casting for the nulls here since the select here will be part of a UNION/UNION ALL.
- Overrides:
- getSelectClauseNullString in interface Dialect
- Parameters:
sqlType- Thejava.sql.Typestype code.
- Returns:
- The appropriate select clause value fragment.