public class PostgreSQLDatabaseConfiguration extends FulltextSupportingDatabaseConfiguration
COMMUNOTE_CONNECTION_PROVIDER_CLASS
Constructor and Description |
---|
PostgreSQLDatabaseConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.hibernate.dialect.function.SQLFunction |
getDatepartSQLFunction()
Get the SQLFunction that will translate the HQL 'datepart' function to SQL.
|
protected String |
getSpecificFulltextParameterValue(String pattern,
org.hibernate.criterion.MatchMode matchMode)
Take the pattern and match mode an return the parameter value to be used in the fulltext
query.
|
protected org.hibernate.dialect.function.SQLFunction |
getSpecificFulltextSQLFunction() |
getFulltextParameterValue, getFulltextSQLFunction, getWildcardPattern, getWildcardPattern, isUseFulltextFeature, setUseFulltextFeature
getConnectionProviderClassName, getFulltextParameterValue, isExtendSubselectsWithOuterConditions
public org.hibernate.dialect.function.SQLFunction getDatepartSQLFunction()
DatabaseConfiguration
Usage: day_of_date(dateField, alias)
where dateField must be one of the
DateField
constants
Example in HQL to return the year of the publication date of a note:
"date_part(" + DateField.YEAR + ", note.publication_date)"
getDatepartSQLFunction
in interface DatabaseConfiguration
getDatepartSQLFunction
in class StandardDatabaseConfiguration
protected String getSpecificFulltextParameterValue(String pattern, org.hibernate.criterion.MatchMode matchMode)
getSpecificFulltextParameterValue
in class FulltextSupportingDatabaseConfiguration
pattern
- the search stringmatchMode
- the match mode to useprotected org.hibernate.dialect.function.SQLFunction getSpecificFulltextSQLFunction()
getSpecificFulltextSQLFunction
in class FulltextSupportingDatabaseConfiguration
Copyright © 2019 Communote team. All rights reserved.