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

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

public class SybaseDialect
extends Dialect

A Sybase dialect.

Author:
kimchy

Constructor Summary
SybaseDialect()
           
 
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 getForUpdateString()
          Does this dialect support the FOR UPDATE syntax?
 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()
          Does the database supports a query for the current timestamp.
 boolean supportsForUpdate()
          Does the database supports select ... for update sql clause?
 
Methods inherited from class org.apache.lucene.store.jdbc.dialect.Dialect
closeBlobSelectQuote, closeQuote, getCascadeConstraintsString, getForUpdateNowaitString, 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

SybaseDialect

public SybaseDialect()
Method Detail

supportsForUpdate

public boolean supportsForUpdate()
Description copied from class: Dialect
Does the database supports select ... for update sql clause?

Specified by:
supportsForUpdate in class Dialect

getForUpdateString

public String getForUpdateString()
Description copied from class: Dialect
Does this dialect support the FOR UPDATE syntax? Defaults to for update.

Overrides:
getForUpdateString in class Dialect

supportsCurrentTimestampSelection

public boolean supportsCurrentTimestampSelection()
Description copied from class: Dialect
Does the database supports a query for the current timestamp. Defaults to false.

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.