Dialect.ArraySubQuery, Dialect.DialectIdType, Dialect.FulltextMatchInfo, Dialect.JDBCInfo| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_USERS_SEPARATOR |
protected String |
usersSeparator |
aclOptimizationsEnabled, ARRAY_SEP, clusteringEnabled, DEBUG_REAL_UUIDS, DEBUG_UUIDS, descending, DIALECT_CLASS, DIALECTS, fulltextDisabled, fulltextSearchDisabled, HEX_DIGITS, NULLS_LAST_ON_DESC_PROP, proxiesEnabled, readAclMaxSize, softDeleteEnabled, storesUpperCaseIdentifiers| Constructor and Description |
|---|
DialectH2(DatabaseMetaData metadata,
RepositoryDescriptor repositoryDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
String |
addPagingClause(String sql,
long limit,
long offset)
Returns the SQL query with a paging clause
|
boolean |
doesUpdateFromRepeatSelf()
When doing an UPDATE t SET ...
|
String |
getAncestorsIdsSql()
Gets the SQL query to get the ancestors of a set of ids.
|
String |
getBlobLengthFunction()
Gets the SQL function that returns the length of a blob, in bytes.
|
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,
String id)
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 |
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 |
getUsersSeparator() |
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.
|
boolean |
isConcurrentUpdateException(Throwable t)
Checks if an exception received means that a concurrent update was detected.
|
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 |
supportsUpdateFrom()
Does the dialect support UPDATE t SET ...
|
castIdToVarchar, closeQuote, createArrayOf, createDialect, existingTableDetected, getAddColumnString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getArrayElementString, getArrayIlikeSql, getArrayInSql, getArrayLikeSql, getArrayResult, getArraySubQuery, getBinaryFulltextSql, getCalendarFromTimestamp, getCalendarFromTimestamp, getCascadeDropConstraintsString, getColumnName, getConnectionSchema, getCreateIndexSql, getCustomColumnDefinition, getCustomPostCreateSqls, getDateCast, getDescending, getForeignKeyConstraintName, getFreeVariableSetterForType, getFromResultSetString, getFromResultSetTimestamp, getFulltextType, getGeneratedId, getIdentityGeneratedKeySql, getIdType, getIgnoredColumns, getIndexName, getLikeEscaping, getMatchMixinType, getMaximumArgsForIn, getMaxIndexNameSize, getMaxNameSize, getNoColumnsInsertString, getNullColumnString, getPostCreateIdentityColumnSql, getPostCreateTableSqls, getPrepareUserReadAclsSql, getPrimaryKeyConstraintName, getReadAclsCheckSql, getRebuildReadAclsSql, getSoftDeleteCleanupSql, getSoftDeleteSql, getTableName, getTableTypeString, getTimestampFromCalendar, getTimestampFromCalendar, getUpdateReadAclsSql, getValidationQuery, hasIdentityGeneratedKey, hasNullEmptyString, isClusteringDeleteNeeded, isIdentityAlreadyPrimary, jdbcInfo, jdbcInfo, jdbcInfo, jdbcInfo, makeName, makeName, needsAliasForDerivedTable, needsNullsLastOnDescSort, needsOracleJoins, needsOrderByKeysAfterDistinct, needsOriginalColumnInGroupBy, needsPrepareUserReadAcls, openQuote, performAdditionalStatements, performPostOpenStatements, preCreateTable, qualifyIndexName, setId, setIdLong, setToPreparedStatementString, setToPreparedStatementTimestamp, storesUpperCaseIdentifiers, supportsAncestorsTable, supportsArrayColumns, supportsArraysReturnInsteadOfRows, supportsCircularCascadeDeleteConstraints, supportsFastDescendants, supportsIfExistsBeforeTableName, supportsIlike, supportsMultipleFulltextIndexes, supportsReadAcl, supportsSysNameArray, supportsWith, toBooleanValueString, toHexStringprotected static final String DEFAULT_USERS_SEPARATOR
protected final String usersSeparator
public DialectH2(DatabaseMetaData metadata, RepositoryDescriptor repositoryDescriptor)
public 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 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, String id)
DialectgetInTreeSql in class DialectidColumnName - the quoted name of the id column to useid - the id, to check syntax with respect to specialized id column typesnull if the query cannot matchpublic boolean supportsArrays()
DialectIf not, we'll simulate them using a string and a separator.
supportsArrays in class Dialectpublic boolean isConcurrentUpdateException(Throwable t)
DialectisConcurrentUpdateException 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 addPagingClause(String sql, long limit, long offset)
DialectaddPagingClause in class Dialectpublic String getUsersSeparator()
public String getBlobLengthFunction()
DialectgetBlobLengthFunction in class Dialectpublic String getAncestorsIdsSql()
DialectgetAncestorsIdsSql in class DialectCopyright © 2015 Nuxeo SA. All rights reserved.