org.apache.metamodel.jdbc.dialects
Class HsqldbQueryRewriter
java.lang.Object
org.apache.metamodel.jdbc.dialects.AbstractQueryRewriter
org.apache.metamodel.jdbc.dialects.DefaultQueryRewriter
org.apache.metamodel.jdbc.dialects.HsqldbQueryRewriter
- All Implemented Interfaces:
- IQueryRewriter
public class HsqldbQueryRewriter
- extends DefaultQueryRewriter
Query rewriter for HSQLDB
| Methods inherited from class org.apache.metamodel.jdbc.dialects.AbstractQueryRewriter |
getColumnType, getDataContext, isSchemaIncludedInColumnPaths, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteQuery, rewriteSelectItem, rewriteWhereClause |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HsqldbQueryRewriter
public HsqldbQueryRewriter(JdbcDataContext dataContext)
rewriteColumnType
public String rewriteColumnType(ColumnType columnType)
- Description copied from interface:
IQueryRewriter
- Rewrites the name of a column type, as it is written in CREATE TABLE
statements. Some databases dont support all column types, or have
different names for them. The implementation of this method will do that
conversion.
- Specified by:
rewriteColumnType in interface IQueryRewriter- Overrides:
rewriteColumnType in class AbstractQueryRewriter
- Returns:
isFirstRowSupported
public boolean isFirstRowSupported()
- Description copied from interface:
IQueryRewriter
- Gets whether this query rewriter is able to write the "First row" query
property to the query string.
- Specified by:
isFirstRowSupported in interface IQueryRewriter- Overrides:
isFirstRowSupported in class DefaultQueryRewriter
- Returns:
- whether this query rewriter is able to write the "First row"
query property to the query string.
isMaxRowsSupported
public boolean isMaxRowsSupported()
- Description copied from interface:
IQueryRewriter
- Gets whether this query rewriter is able to write the "Max rows" query
property to the query string.
- Specified by:
isMaxRowsSupported in interface IQueryRewriter- Overrides:
isMaxRowsSupported in class DefaultQueryRewriter
- Returns:
- whether this query rewriter is able to write the "Max rows" query
property to the query string.
rewriteSelectClause
protected String rewriteSelectClause(Query query,
SelectClause selectClause)
- Overrides:
rewriteSelectClause in class AbstractQueryRewriter
rewriteFilterItem
public String rewriteFilterItem(FilterItem item)
- Specified by:
rewriteFilterItem in interface IQueryRewriter- Overrides:
rewriteFilterItem in class DefaultQueryRewriter
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.