org.sql.generation.api.vendor
Interface MySQLVendor

All Superinterfaces:
SQLVendor

public interface MySQLVendor
extends SQLVendor

This is vendor for MySQL database. MySQL typically does not understand schema-qualified names, so this vendor doesn't process any schema name it encounters when creating a SQL string.

Author:
Stanislav Muhametsin

Method Summary
 boolean legacyLimit()
           Returns whether the legacy LIMIT expression is used instead of the of the newer LIMIT/OFFSET.
 void setLegacyLimit(boolean useLegacyLimit)
           Sets the switch to use legacy LIMIT expression instead of the newer LIMIT/OFFSET expressions.
 
Methods inherited from interface org.sql.generation.api.vendor.SQLVendor
getBooleanFactory, getColumnsFactory, getDataTypeFactory, getDefinitionFactory, getLiteralFactory, getManipulationFactory, getModificationFactory, getQueryFactory, getTableReferenceFactory, toString
 

Method Detail

legacyLimit

boolean legacyLimit()

Returns whether the legacy LIMIT expression is used instead of the of the newer LIMIT/OFFSET. In a legacy syntax, the LIMIT <n> OFFSET <skip> is written as LIMIT <skip>, <n> instead. This method is not thread-safe.

Returns:
true if the legacy LIMIT expressions are used; false otherwise.

setLegacyLimit

void setLegacyLimit(boolean useLegacyLimit)

Sets the switch to use legacy LIMIT expression instead of the newer LIMIT/OFFSET expressions. In a legacy syntax, the LIMIT <n> OFFSET <skip> is written as LIMIT <skip>, <n> instead. Set this to true only if you really require it. This method is not thread-safe.

Parameters:
useLegacyLimit - Whether to use legacy LIMIT expression instead of the newer LIMIT/OFFSET expressions.


Copyright © 2010-2012. All Rights Reserved.