Top Description Fields Constructors Methods
org.hibernate.dialect

public Class MySQLServerConfiguration

extends Object
Class Inheritance
Imports
java.sql.DatabaseMetaData, .ResultSet, .SQLException, org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo, org.hibernate.internal.util.config.ConfigurationHelper

Utility class that extract some initial configuration from the database for MySQLDialect and related dialects.
Author
Marco Belladelli

Field Summary

Modifier and TypeField and Description
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
public
MySQLServerConfiguration(int bytesPerCharacter, boolean noBackslashEscapesEnabled)

Method Summary

Modifier and TypeMethod and Description
public static MySQLServerConfiguration
fromDatabaseMetadata(DatabaseMetaData databaseMetaData)

Deprecated since 6.4. Use fromDialectResolutionInfo instead.
public static MySQLServerConfiguration
public int
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytesPerCharacterback to summary
private final int bytesPerCharacter
noBackslashEscapesEnabledback to summary
private final boolean noBackslashEscapesEnabled

Constructor Detail

MySQLServerConfigurationback to summary
public MySQLServerConfiguration(int bytesPerCharacter, boolean noBackslashEscapesEnabled)

Method Detail

fromDatabaseMetadataback to summary
public static MySQLServerConfiguration fromDatabaseMetadata(DatabaseMetaData databaseMetaData)

Deprecated

since 6.4.

Use fromDialectResolutionInfo instead.

Annotations
@Deprecated
since:6.4
fromDialectResolutionInfoback to summary
public static MySQLServerConfiguration fromDialectResolutionInfo(DialectResolutionInfo info)
getBytesPerCharacterback to summary
public int getBytesPerCharacter()
isNoBackslashEscapesEnabledback to summary
public boolean isNoBackslashEscapesEnabled()