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

java.lang.Object
  extended by org.apache.lucene.store.jdbc.dialect.Dialect
      extended by org.apache.lucene.store.jdbc.dialect.DB2Dialect
Direct Known Subclasses:
DerbyDialect

public class DB2Dialect
extends Dialect

A DB2 dialect.

Author:
kimchy

Constructor Summary
DB2Dialect()
           
 
Method Summary
 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.
 boolean supportsCurrentTimestampSelection()
          DB2 supports current timestamp selection.
 boolean supportsForUpdate()
          DB2 supports select ... for update.
 
Methods inherited from class org.apache.lucene.store.jdbc.dialect.Dialect
closeBlobSelectQuote, closeQuote, getCascadeConstraintsString, getForUpdateNowaitString, getForUpdateString, getTableTypeString, openBlobSelectQuote, openQuote, processSettings, sqlTableExists, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsTableExists, supportTransactionalScopedBlobs, useExistsBeforeInsertLock, useInputStreamToInsertBlob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2Dialect

public DB2Dialect()
Method Detail

supportsForUpdate

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

Specified by:
supportsForUpdate in class Dialect

supportsCurrentTimestampSelection

public boolean supportsCurrentTimestampSelection()
DB2 supports current timestamp selection.

Overrides:
supportsCurrentTimestampSelection in class Dialect

getCurrentTimestampSelectString

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

Overrides:
getCurrentTimestampSelectString 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

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-2009 The Compass Project.