|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.store.jdbc.dialect.Dialect
public abstract class Dialect
A database specific abstraction. All other dialects must extend this Dialect.
| Constructor Summary | |
|---|---|
Dialect()
|
|
| Method Summary | |
|---|---|
String |
closeBlobSelectQuote()
Some database require quoting the blob in selects |
char |
closeQuote()
The closing quote for a quoted identifier . |
abstract String |
getBitType()
The database BIT type. |
abstract String |
getBlobType(long length)
The database blob type for the given length. |
String |
getCascadeConstraintsString()
Completely optional cascading drop clause |
abstract String |
getCurrentTimestampFunction()
The database current timestamp function that is used with several sql updates. |
String |
getCurrentTimestampSelectString()
The database current time stamp select query. |
String |
getForUpdateNowaitString()
Does this dialect support the Oracle-style FOR UPDATE NOWAIT syntax? |
String |
getForUpdateString()
Does this dialect support the FOR UPDATE syntax? |
abstract String |
getNumberType()
The database number type. |
String |
getTableTypeString()
The type of the table that is created. |
abstract String |
getTimestampType()
The database TIMESTAMP type. |
abstract 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()
Some database require quoting the blob in selects |
char |
openQuote()
The opening quote for a quoted identifier. |
void |
processSettings(JdbcDirectorySettings settings)
Process settings and apply any dialect related changes. |
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 |
supportsCurrentTimestampSelection()
Does the database supports a query for the current timestamp. |
abstract boolean |
supportsForUpdate()
Does the database supports select ... for update sql clause? |
boolean |
supportsIfExistsAfterTableName()
Does the database support "if exists" after the table name when constructing a sql drop for the table. |
boolean |
supportsIfExistsBeforeTableName()
Does the database support "if exists" before the table name when constructing a sql drop for the table. |
boolean |
supportsTableExists()
Does the dialect support a special query to check if a table exists. |
boolean |
supportTransactionalScopedBlobs()
Does the database (or the jdbc driver) supports transactional blob. |
boolean |
useExistsBeforeInsertLock()
Do we need to perform a special check to see if the lock already exists in the database, or should we try and insert it without checking. |
boolean |
useInputStreamToInsertBlob()
Does the database require using an InputStream to insert a blob,
or the setBlob method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dialect()
| Method Detail |
|---|
public void processSettings(JdbcDirectorySettings settings)
public boolean supportTransactionalScopedBlobs()
FetchPerTransactionJdbcIndexInput.
Defaults to false.
public boolean supportsIfExistsBeforeTableName()
false.
public boolean supportsIfExistsAfterTableName()
false.
public boolean supportsTableExists()
false.
public String sqlTableExists(String catalog,
String schemaName)
supportsTableExists().
public boolean useInputStreamToInsertBlob()
InputStream to insert a blob,
or the setBlob method. Defaults to true.
public boolean useExistsBeforeInsertLock()
true.
public char openQuote()
public char closeQuote()
public String openBlobSelectQuote()
public String closeBlobSelectQuote()
public String getCascadeConstraintsString()
public abstract boolean supportsForUpdate()
public String getForUpdateString()
FOR UPDATE syntax? Defaults to for update.
public String getForUpdateNowaitString()
FOR UPDATE NOWAIT syntax?
Defaults to getForUpdateString().
public String getTableTypeString()
public boolean supportsCurrentTimestampSelection()
false.
public String getCurrentTimestampSelectString()
public boolean isCurrentTimestampSelectStringCallable()
public abstract String getCurrentTimestampFunction()
public abstract String getVarcharType(int length)
public abstract String getBlobType(long length)
public abstract String getNumberType()
public abstract String getTimestampType()
public abstract String getBitType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||