org.apache.lucene.store.jdbc.dialect
Class MySQLDialect

java.lang.Object
  extended by org.apache.lucene.store.jdbc.dialect.Dialect
      extended by org.apache.lucene.store.jdbc.dialect.MySQLDialect
Direct Known Subclasses:
MySQLInnoDBDialect, MySQLMyISAMDialect

public class MySQLDialect
extends Dialect

A MySQL dialect.

Author:
kimchy

Constructor Summary
MySQLDialect()
           
 
Method Summary
 String closeBlobSelectQuote()
          MySQL requires quoting the blob column with connector J 3.1 when using emulateLocators=true.
 char closeQuote()
          The closing quote for a quoted identifier .
 String getBitType()
          The database BIT type.
 String getBlobType(long length)
          The database blob type for the given length.
 String getCurrentTimestampFunction()
          The database current timestamp function that is used with several sql updates.
 String getCurrentTimestampSelectString()
          The database current time stamp select query.
 String getNumberType()
          The database number type.
 String getTimestampType()
          The database TIMESTAMP type.
 String getVarcharType(int length)
          The database varchar type for the given length.
 boolean isCurrentTimestampSelectStringCallable()
          If the current timestamp select queyr is a callable query or not.
 String openBlobSelectQuote()
          MySQL requires quoting the blob column with connector J 3.1 when using emulateLocators=true.
 char openQuote()
          The opening quote for a quoted identifier.
 boolean supportsCurrentTimestampSelection()
          MySQL supports current timestamp selection.
 boolean supportsForUpdate()
          MySQL supports select ... for update.
 boolean supportsIfExistsBeforeTableName()
          MySQL supports if exists before the table name.
 
Methods inherited from class org.apache.lucene.store.jdbc.dialect.Dialect
getCascadeConstraintsString, getForUpdateNowaitString, getForUpdateString, getTableTypeString, processSettings, sqlTableExists, supportsIfExistsAfterTableName, supportsTableExists, supportTransactionalScopedBlobs, useExistsBeforeInsertLock, useInputStreamToInsertBlob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLDialect

public MySQLDialect()
Method Detail

openBlobSelectQuote

public String openBlobSelectQuote()
MySQL requires quoting the blob column with connector J 3.1 when using emulateLocators=true.

Overrides:
openBlobSelectQuote in class Dialect

closeBlobSelectQuote

public String closeBlobSelectQuote()
MySQL requires quoting the blob column with connector J 3.1 when using emulateLocators=true.

Overrides:
closeBlobSelectQuote in class Dialect

closeQuote

public char closeQuote()
Description copied from class: Dialect
The closing quote for a quoted identifier . Defaults to ".

Overrides:
closeQuote in class Dialect

openQuote

public char openQuote()
Description copied from class: Dialect
The opening quote for a quoted identifier. Defaults to ".

Overrides:
openQuote in class Dialect

supportsForUpdate

public boolean supportsForUpdate()
MySQL supports select ... for update.

Specified by:
supportsForUpdate in class Dialect

supportsIfExistsBeforeTableName

public boolean supportsIfExistsBeforeTableName()
MySQL supports if exists before the table name.

Overrides:
supportsIfExistsBeforeTableName in class Dialect

supportsCurrentTimestampSelection

public boolean supportsCurrentTimestampSelection()
MySQL supports current timestamp selection.

Overrides:
supportsCurrentTimestampSelection in class Dialect

isCurrentTimestampSelectStringCallable

public boolean isCurrentTimestampSelectStringCallable()
Description copied from class: Dialect
If the current timestamp select queyr is a callable query or not.

Overrides:
isCurrentTimestampSelectStringCallable in class Dialect

getCurrentTimestampSelectString

public String getCurrentTimestampSelectString()
Description copied from class: Dialect
The database current time stamp select query.

Overrides:
getCurrentTimestampSelectString in class Dialect

getVarcharType

public String getVarcharType(int length)
Description copied from class: Dialect
The database varchar type for the given length. The length is in chars.

Specified by:
getVarcharType in class Dialect

getBlobType

public String getBlobType(long length)
Description copied from class: Dialect
The database blob type for the given length. The length is in KB.

Specified by:
getBlobType in class Dialect

getNumberType

public String getNumberType()
Description copied from class: Dialect
The database number type.

Specified by:
getNumberType in class Dialect

getTimestampType

public String getTimestampType()
Description copied from class: Dialect
The database TIMESTAMP type.

Specified by:
getTimestampType in class Dialect

getCurrentTimestampFunction

public String getCurrentTimestampFunction()
Description copied from class: Dialect
The database current timestamp function that is used with several sql updates.

Specified by:
getCurrentTimestampFunction in class Dialect

getBitType

public String getBitType()
Description copied from class: Dialect
The database BIT type.

Specified by:
getBitType in class Dialect


Copyright (c) 2004-2008 The Compass Project.