Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.dialect.Dialect
org.hibernate.dialect.Oracle9Dialect
org.hibernate.dialect.OracleDialect
public class OracleDialect
extends Oracle9Dialect
Field 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 aCaseFragment
strategy responsible for handling this dialect's variations in how CASE statements are handled.
- Overrides:
- createCaseFragment in interface Dialect
- Returns:
- This dialect's
CaseFragment
strategy.
public JoinFragment createOuterJoinFragment()
Create aJoinFragment
strategy responsible for handling this dialect's variations in how joins are handled.
- Overrides:
- createOuterJoinFragment in interface Dialect
- Returns:
- This dialect's
JoinFragment
strategy.
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 utilizevariable
limit 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.Types
type 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.Types
type code.
- Returns:
- The appropriate select clause value fragment.