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

java.lang.Object
  extended by org.apache.lucene.store.jdbc.dialect.Dialect
      extended by org.apache.lucene.store.jdbc.dialect.SybaseDialect
          extended by org.apache.lucene.store.jdbc.dialect.SQLServerDialect

public class SQLServerDialect
extends SybaseDialect

A SQLServer dialect.

Author:
kimchy

Constructor Summary
SQLServerDialect()
           
 
Method Summary
 char closeQuote()
          The closing quote for a quoted identifier .
 char openQuote()
          The opening quote for a quoted identifier.
 String sqlTableExists(String catalog, String schemaName)
          If the dialect support a special query to check if a table exists, the actual sql that is used to perform it.
 boolean supportsTableExists()
          SQLServer supports if table exists queries.
 
Methods inherited from class org.apache.lucene.store.jdbc.dialect.SybaseDialect
getBitType, getBlobType, getCurrentTimestampFunction, getCurrentTimestampSelectString, getForUpdateString, getNumberType, getTimestampType, getVarcharType, isCurrentTimestampSelectStringCallable, supportsCurrentTimestampSelection, supportsForUpdate
 
Methods inherited from class org.apache.lucene.store.jdbc.dialect.Dialect
closeBlobSelectQuote, getCascadeConstraintsString, getForUpdateNowaitString, getTableTypeString, openBlobSelectQuote, processSettings, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportTransactionalScopedBlobs, useExistsBeforeInsertLock, useInputStreamToInsertBlob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLServerDialect

public SQLServerDialect()
Method Detail

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

supportsTableExists

public boolean supportsTableExists()
SQLServer supports if table exists queries.

Overrides:
supportsTableExists in class Dialect

sqlTableExists

public String sqlTableExists(String catalog,
                             String schemaName)
Description copied from class: Dialect
If the dialect support a special query to check if a table exists, the actual sql that is used to perform it. Defaults to throw an Unsupported excetion (see Dialect.supportsTableExists().

Overrides:
sqlTableExists in class Dialect


Copyright (c) 2004-2008 The Compass Project.