|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.database.BasicSqlHandler
org.mmbase.storage.search.implementation.database.PostgreSqlSqlHandler
The PostgreSQL query handler, implements SqlHandler
for standard PostgreSql functionality.
Derived from BasicSqlHandler, overrides
toSql(), implements FEATURE_MAX_NUMBER and FEATURE_OFFSET, by adding a construct like "LIMIT 20" or
"LIMIT 20 OFFSET 80" after the body, when appropriate.
getSupportLevel(int,SearchQuery),
returns SUPPORT_OPTIMAL for these features, delegates to the superclass for
other features.
| Constructor Summary | |
PostgreSqlSqlHandler(java.util.Map disallowedValues)
Constructor. |
|
| Method Summary | |
protected java.lang.StringBuffer |
appendLikeOperator(java.lang.StringBuffer sb,
boolean caseSensitive)
Appends the 'LIKE' operator for the given case sensitiviy. |
int |
getSupportLevel(int feature,
SearchQuery query)
Gets the level at which a feature is supported for a query by this handler. |
java.lang.String |
toSql(SearchQuery query,
SqlHandler firstInChain)
Represents a SearchQuery object as a string in SQL format, using the database configuration. |
protected boolean |
useLower(FieldCompareConstraint constraint)
Wether the 'LOWER' function needs to be used to implement case insensitivity. |
| Methods inherited from class org.mmbase.storage.search.implementation.database.BasicSqlHandler |
appendCompositeConstraintToSql, appendConstraintToSql, appendField, appendFieldValue, appendQueryBodyToSql, getAllowedValue, getSupportLevel, toSqlString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.implementation.database.SqlHandler |
appendConstraintToSql, appendQueryBodyToSql, getAllowedValue, getSupportLevel |
| Constructor Detail |
public PostgreSqlSqlHandler(java.util.Map disallowedValues)
disallowedValues - Map mapping disallowed table/fieldnames
to allowed alternatives.| Method Detail |
public int getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
SqlHandler
getSupportLevel in interface SqlHandlergetSupportLevel in class BasicSqlHandlerSearchQueryExceptionprotected boolean useLower(FieldCompareConstraint constraint)
BasicSqlHandler
useLower in class BasicSqlHandler
protected java.lang.StringBuffer appendLikeOperator(java.lang.StringBuffer sb,
boolean caseSensitive)
BasicSqlHandler
appendLikeOperator in class BasicSqlHandler
public java.lang.String toSql(SearchQuery query,
SqlHandler firstInChain)
throws SearchQueryException
SqlHandler
toSql in interface SqlHandlertoSql in class BasicSqlHandlerSearchQueryException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||