| java.lang.Object org.mmbase.storage.search.implementation.database.BasicSqlHandler org.mmbase.storage.search.implementation.database.PostgreSqlSqlHandler
Method Summary | |
protected void | appendDateField(StringBuilder sb, Step step, String fieldName, boolean multipleSteps, int datePart) | protected StringBuilder | appendLikeOperator(StringBuilder sb, boolean caseSensitive) | protected StringBuilder | appendSortOrderField(StringBuilder sb, SortOrder sortOrder, boolean multipleSteps, SearchQuery query) Normally, Postgresql does not sort case senstively, so we should not sort on
UPPER(fieldname). | protected void | appendTableName(StringBuilder sb, Step step) Optimizes postgresql queries by adding the ONLY keyword to a relation-table, provided that the
role was given (and therefor the selection only applies to the given table). | public int | getSupportLevel(int feature, SearchQuery query) | public String | toSql(SearchQuery query, SqlHandler firstInChain) | protected boolean | useLower(FieldCompareConstraint constraint) |
PostgreSqlSqlHandler | public PostgreSqlSqlHandler()(Code) | | Constructor.
|
appendSortOrderField | protected StringBuilder appendSortOrderField(StringBuilder sb, SortOrder sortOrder, boolean multipleSteps, SearchQuery query)(Code) | | Normally, Postgresql does not sort case senstively, so we should not sort on
UPPER(fieldname). This is mainly very bad if the query is also distinct. (ERROR: for SELECT
DISTINCT, ORDER BY expressions must appear in select list), may occur.
|
Methods inherited from org.mmbase.storage.search.implementation.database.BasicSqlHandler | protected void appendCompositeConstraintToSql(StringBuilder sb, CompositeConstraint compositeConstraint, SearchQuery query, boolean inverse, boolean inComposite, SqlHandler firstInChain) throws SearchQueryException(Code)(Java Doc) public void appendConstraintToSql(StringBuilder sb, Constraint constraint, SearchQuery query, boolean inverse, boolean inComposite)(Code)(Java Doc) protected void appendDateField(StringBuilder sb, Step step, String fieldName, boolean multipleSteps, int datePart)(Code)(Java Doc) protected void appendDateValue(StringBuilder sb, Date value)(Code)(Java Doc) protected void appendField(StringBuilder sb, SortOrder sortOrder, boolean includeTablePrefix)(Code)(Java Doc) protected void appendField(StringBuilder sb, Step step, String fieldName, boolean includeTablePrefix)(Code)(Java Doc) public void appendFieldValue(StringBuilder sb, Object value, boolean toLowerCase, int fieldType)(Code)(Java Doc) protected StringBuilder appendLikeOperator(StringBuilder sb, boolean caseSensitive)(Code)(Java Doc) protected void appendLowerField(StringBuilder sb, Step step, String fieldName, boolean includeTablePrefix)(Code)(Java Doc) public void appendQueryBodyToSql(StringBuilder sb, SearchQuery query, SqlHandler firstInChain) throws SearchQueryException(Code)(Java Doc) protected void appendRelationConstraints(StringBuilder sbRelations, RelationStep relationStep, boolean multipleSteps)(Code)(Java Doc) protected StringBuilder appendSortOrderDirection(StringBuilder sb, SortOrder sortOrder) throws IllegalStateException(Code)(Java Doc) protected StringBuilder appendSortOrderField(StringBuilder sb, SortOrder sortOrder, boolean multipleSteps)(Code)(Java Doc) protected StringBuilder appendSortOrderField(StringBuilder sb, SortOrder sortOrder, boolean multipleSteps, SearchQuery query)(Code)(Java Doc) protected StringBuilder appendSortOrders(StringBuilder sb, SearchQuery query)(Code)(Java Doc) protected void appendTableAlias(StringBuilder sb, Step step)(Code)(Java Doc) protected void appendTableName(StringBuilder sb, Step step)(Code)(Java Doc) public static String forceEncode(String st)(Code)(Java Doc) public String getAllowedValue(String value)(Code)(Java Doc) public int getSupportLevel(int feature, SearchQuery query) throws SearchQueryException(Code)(Java Doc) public int getSupportLevel(Constraint constraint, SearchQuery query) throws SearchQueryException(Code)(Java Doc) public String toSql(SearchQuery query, SqlHandler firstInChain) throws SearchQueryException(Code)(Java Doc) protected String toSqlString(String str)(Code)(Java Doc) protected boolean useLower(FieldCompareConstraint constraint)(Code)(Java Doc)
|
|
|