Top Description Fields Constructors Methods
org.hibernate.dialect

public Class FirebirdDialect

extends InterbaseDialect
Class Inheritance
Imports
org.hibernate.dialect.function.StandardSQLFunction, org.hibernate.dialect.pagination.AbstractLimitHandler, .LimitHandler, .LimitHelper, org.hibernate.engine.spi.RowSelection, org.hibernate.type.StandardBasicTypes

An SQL dialect for Firebird.
Author
Reha CENANI

Field Summary

Modifier and TypeField and Description
private static final AbstractLimitHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
bindLimitParametersFirst()

Overrides org.hibernate.dialect.InterbaseDialect.bindLimitParametersFirst.

Does the LIMIT clause come at the start of the SELECT statement, rather than at the end?
public boolean
bindLimitParametersInReverseOrder()

Overrides org.hibernate.dialect.InterbaseDialect.bindLimitParametersInReverseOrder.

ANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit.
public String
getDropSequenceString(String
The name of the sequence
sequenceName
)

Overrides org.hibernate.dialect.InterbaseDialect.getDropSequenceString.

Typically dialects which support sequences can drop a sequence with a single command.
public LimitHandler
getLimitHandler()

Overrides org.hibernate.dialect.InterbaseDialect.getLimitHandler.

Returns the delegate managing LIMIT clause.
public String
getLimitString(String
The query to which to apply the limit.
sql
,
boolean
Is the query requesting an offset?
hasOffset
)

Overrides org.hibernate.dialect.InterbaseDialect.getLimitString.

Apply a limit clause to the query.
Inherited from org.hibernate.dialect.InterbaseDialect:
getAddColumnStringgetCreateSequenceStringgetCurrentTimestampSelectStringgetForUpdateStringgetForUpdateStringgetQuerySequencesStringgetSelectSequenceNextValStringgetSequenceInformationExtractorgetSequenceNextValStringisCurrentTimestampSelectStringCallablesupportsLimitsupportsSequences

Field Detail

LIMIT_HANDLERback to summary
private static final AbstractLimitHandler LIMIT_HANDLER

Hides org.hibernate.dialect.InterbaseDialect.LIMIT_HANDLER.

Constructor Detail

FirebirdDialectback to summary
public FirebirdDialect()

Method Detail

bindLimitParametersFirstback to summary
public boolean bindLimitParametersFirst()

Overrides org.hibernate.dialect.InterbaseDialect.bindLimitParametersFirst.

Doc from org.hibernate.dialect.Dialect.bindLimitParametersFirst.

Does the LIMIT clause come at the start of the SELECT statement, rather than at the end?

Returns:boolean

true if limit parameters should come before other parameters

Annotations
@Override
bindLimitParametersInReverseOrderback to summary
public boolean bindLimitParametersInReverseOrder()

Overrides org.hibernate.dialect.InterbaseDialect.bindLimitParametersInReverseOrder.

Doc from org.hibernate.dialect.Dialect.bindLimitParametersInReverseOrder.

ANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit. Does this dialect require us to bind the parameters in reverse order?

Returns:boolean

true if the correct order is limit, offset

Annotations
@Override
getDropSequenceStringback to summary
public String getDropSequenceString(String sequenceName)

Overrides org.hibernate.dialect.InterbaseDialect.getDropSequenceString.

Doc from org.hibernate.dialect.Dialect.getDropSequenceString.

Typically dialects which support sequences can drop a sequence with a single command. This is convenience form of getDropSequenceStrings to help facilitate that.

Dialects which support sequences and can drop a sequence in a single command need *only* override this method. Dialects which support sequences but require multiple commands to drop a sequence should instead override getDropSequenceStrings.

Parameters
sequenceName:String

The name of the sequence

Returns:String

The sequence drop commands

Annotations
@Override
getLimitHandlerback to summary
public LimitHandler getLimitHandler()

Overrides org.hibernate.dialect.InterbaseDialect.getLimitHandler.

Doc from org.hibernate.dialect.Dialect.getLimitHandler.

Returns the delegate managing LIMIT clause.

Returns:LimitHandler

LIMIT clause delegate.

Annotations
@Override
getLimitStringback to summary
public String getLimitString(String sql, boolean hasOffset)

Overrides org.hibernate.dialect.InterbaseDialect.getLimitString.

Doc from org.hibernate.dialect.Dialect.getLimitString.

Apply a limit clause to the query.

Typically dialects utilize variable limit clauses when they support limits. Thus, when building the select command we do not actually need to know the limit or the offset 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 and getLimitString(String, int, int).

Parameters
sql:String

The query to which to apply the limit.

hasOffset:boolean

Is the query requesting an offset?

Returns:String

the modified SQL

Annotations
@Override