public class DialectHSQLDB extends Dialect
Not used for VCS, only for directories, so many features don't matter.
Dialect.FulltextMatchInfo, Dialect.FulltextQuery, Dialect.FulltextQueryAnalyzer, Dialect.JDBCInfoARRAY_SEP, DIALECT_CLASS, DIALECTS| Constructor and Description |
|---|
DialectHSQLDB(DatabaseMetaData metadata,
BinaryManager binaryManager,
RepositoryDescriptor repositoryDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesUpdateFromRepeatSelf()
When doing an UPDATE t SET ...
|
String |
getClobCast(boolean inOrderBy)
When using a CLOB field in an expression, is some casting required and
with what pattern?
|
String |
getClusterGetInvalidations()
Gets the SQL to query invalidations for this cluster node.
|
String |
getClusterInsertInvalidations()
Gets the SQL to send an invalidation to the cluster.
|
String |
getCreateFulltextIndexSql(String indexName,
String quotedIndexName,
Table table,
List<Column> columns,
Model model)
Gets a CREATE INDEX statement for a fulltext index.
|
String |
getDialectFulltextQuery(String query)
Get the dialect-specific version of a fulltext query.
|
Serializable |
getFromResultSet(ResultSet rs,
int index,
Column column) |
int |
getFulltextIndexedColumns()
Specifies what columns of the fulltext table have to be indexed.
|
Dialect.FulltextMatchInfo |
getFulltextScoredMatchInfo(String fulltextQuery,
String indexName,
int nthMatch,
Column mainColumn,
Model model,
Database database)
Gets the SQL information needed to do a a fulltext match, either with a
direct expression in the WHERE clause, or using a join with an additional
table.
|
String |
getInTreeSql(String idColumnName)
Gets the expression to use to check tree membership.
|
Dialect.JDBCInfo |
getJDBCTypeAndString(ColumnType type)
Gets the JDBC type and string from Nuxeo's type abstraction.
|
boolean |
getMaterializeFulltextSyntheticColumn()
Does the fulltext synthetic column have to be materialized.
|
String |
getPagingClause(long limit,
long offset)
Gets paging clause to be appended at the end of select statement
|
String |
getReadAclsCheckSql(String idColumnName)
Gets the expression to check if access is allowed using read acl the
dialect must suppportsReadAcl
|
String |
getRebuildReadAclsSql()
Gets the statement to rebuild the wall read acls
|
String |
getSecurityCheckSql(String idColumnName)
Gets the expression to use to check security.
|
String |
getSQLStatementsFilename()
Gets the name of the file containing the SQL statements.
|
Map<String,Serializable> |
getSQLStatementsProperties(Model model,
Database database)
Gets the properties to use with the SQL statements.
|
String |
getTestSQLStatementsFilename() |
String |
getUpdateReadAclsSql()
Gets the statement to update the read acls
|
boolean |
isAllowedConversion(int expected,
int actual,
String actualName,
int actualSize)
Check mismatches between expected and actual JDBC types read from
database introspection.
|
boolean |
isClusteringSupported()
Checks that clustering is supported.
|
void |
setToPreparedStatement(PreparedStatement ps,
int index,
Serializable value,
Column column) |
boolean |
supportsArrays()
Does the dialect support passing ARRAY values (to stored procedures
mostly).
|
boolean |
supportsIfExistsAfterTableName() |
boolean |
supportsPaging()
Indicates if dialect supports paging
|
boolean |
supportsReadAcl()
Does the dialect support an optimized read security checks
|
boolean |
supportsUpdateFrom()
Does the dialect support UPDATE t SET ...
|
analyzeFulltextQuery, closeQuote, createArrayOf, createDialect, existingTableDetected, fulltextHasPhrase, getAddColumnString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAncestorsIdsSql, getBinaryManager, getBlobLengthFunction, getCascadeDropConstraintsString, getClusterDeleteInvalidations, getColumnName, getConnectionSchema, getCreateIndexSql, getDateCast, getDescending, getForeignKeyConstraintName, getFreeVariableSetterForType, getFulltextType, getIdentityGeneratedKeySql, getIndexName, getMatchMixinType, getMaximumArgsForIn, getNoColumnsInsertString, getNullColumnString, getPostCreateIdentityColumnSql, getPostCreateTableSqls, getPrepareUserReadAclsSql, getPrimaryKeyConstraintName, getTableName, getTableTypeString, getValidationQuery, hasIdentityGeneratedKey, hasNullEmptyString, isClusteringDeleteNeeded, isConnectionClosedException, isIdentityAlreadyPrimary, jdbcInfo, jdbcInfo, needsAliasForDerivedTable, needsOracleJoins, needsOrderByKeysAfterDistinct, needsOriginalColumnInGroupBy, needsPrepareUserReadAcls, openQuote, performAdditionalStatements, performPostOpenStatements, preCreateTable, qualifyIndexName, storesUpperCaseIdentifiers, supportsAncestorsTable, supportsArraysReturnInsteadOfRows, supportsCircularCascadeDeleteConstraints, supportsIfExistsBeforeTableName, supportsIlike, supportsMultipleFulltextIndexes, supportsSysNameArray, supportsWith, toBooleanValueString, toHexString, translateFulltext, translateFulltextpublic DialectHSQLDB(DatabaseMetaData metadata, BinaryManager binaryManager, RepositoryDescriptor repositoryDescriptor) throws StorageException
StorageExceptionpublic boolean supportsIfExistsAfterTableName()
supportsIfExistsAfterTableName in class Dialectpublic Dialect.JDBCInfo getJDBCTypeAndString(ColumnType type)
DialectgetJDBCTypeAndString in class Dialectpublic boolean isAllowedConversion(int expected,
int actual,
String actualName,
int actualSize)
DialectisAllowedConversion in class Dialectpublic void setToPreparedStatement(PreparedStatement ps, int index, Serializable value, Column column) throws SQLException
setToPreparedStatement in class DialectSQLExceptionpublic Serializable getFromResultSet(ResultSet rs, int index, Column column) throws SQLException
getFromResultSet in class DialectSQLExceptionpublic String getCreateFulltextIndexSql(String indexName, String quotedIndexName, Table table, List<Column> columns, Model model)
DialectgetCreateFulltextIndexSql in class Dialectpublic String getDialectFulltextQuery(String query)
DialectgetDialectFulltextQuery in class Dialectquery - the CMIS-syntax-based fulltext query stringpublic Dialect.FulltextMatchInfo getFulltextScoredMatchInfo(String fulltextQuery, String indexName, int nthMatch, Column mainColumn, Model model, Database database)
DialectgetFulltextScoredMatchInfo in class Dialectpublic boolean getMaterializeFulltextSyntheticColumn()
DialectgetMaterializeFulltextSyntheticColumn in class Dialectpublic int getFulltextIndexedColumns()
DialectgetFulltextIndexedColumns in class Dialectpublic boolean supportsUpdateFrom()
DialectsupportsUpdateFrom in class Dialectpublic boolean doesUpdateFromRepeatSelf()
DialectdoesUpdateFromRepeatSelf in class Dialectpublic boolean supportsReadAcl()
DialectsupportsReadAcl in class Dialectpublic String getReadAclsCheckSql(String idColumnName)
DialectgetReadAclsCheckSql in class DialectidColumnName - the quoted name of the read acl_id column to usepublic String getUpdateReadAclsSql()
DialectgetUpdateReadAclsSql in class Dialectpublic String getRebuildReadAclsSql()
DialectgetRebuildReadAclsSql in class Dialectpublic String getClobCast(boolean inOrderBy)
DialectNeeded for Derby and H2.
getClobCast in class DialectinOrderBy - true if the expression is for an ORDER BY columnnull if no cast is
requiredpublic String getSecurityCheckSql(String idColumnName)
DialectgetSecurityCheckSql in class DialectidColumnName - the quoted name of the id column to usepublic String getInTreeSql(String idColumnName)
DialectgetInTreeSql in class DialectidColumnName - the quoted name of the id column to usepublic boolean supportsArrays()
DialectIf not, we'll simulate them using a string and a separator.
supportsArrays in class Dialectpublic String getSQLStatementsFilename()
DialectgetSQLStatementsFilename in class Dialectpublic String getTestSQLStatementsFilename()
getTestSQLStatementsFilename in class Dialectpublic Map<String,Serializable> getSQLStatementsProperties(Model model, Database database)
DialectgetSQLStatementsProperties in class Dialectpublic boolean isClusteringSupported()
DialectisClusteringSupported in class Dialectpublic String getClusterInsertInvalidations()
DialectgetClusterInsertInvalidations in class Dialectpublic String getClusterGetInvalidations()
DialectgetClusterGetInvalidations in class Dialectpublic boolean supportsPaging()
DialectsupportsPaging in class Dialectpublic String getPagingClause(long limit, long offset)
DialectgetPagingClause in class DialectCopyright © 2012 Nuxeo SA. All Rights Reserved.