org.apache.metamodel.jdbc.dialects
Class HsqldbQueryRewriter

java.lang.Object
  extended by org.apache.metamodel.jdbc.dialects.AbstractQueryRewriter
      extended by org.apache.metamodel.jdbc.dialects.DefaultQueryRewriter
          extended by org.apache.metamodel.jdbc.dialects.HsqldbQueryRewriter
All Implemented Interfaces:
IQueryRewriter

public class HsqldbQueryRewriter
extends DefaultQueryRewriter

Query rewriter for HSQLDB


Field Summary
 
Fields inherited from class org.apache.metamodel.jdbc.dialects.AbstractQueryRewriter
logger
 
Constructor Summary
HsqldbQueryRewriter(JdbcDataContext dataContext)
           
 
Method Summary
 boolean isFirstRowSupported()
          Gets whether this query rewriter is able to write the "First row" query property to the query string.
 boolean isMaxRowsSupported()
          Gets whether this query rewriter is able to write the "Max rows" query property to the query string.
 String rewriteColumnType(ColumnType columnType)
          Rewrites the name of a column type, as it is written in CREATE TABLE statements.
 String rewriteFilterItem(FilterItem item)
           
protected  String rewriteSelectClause(Query query, SelectClause selectClause)
           
 
Methods inherited from class org.apache.metamodel.jdbc.dialects.DefaultQueryRewriter
beforeRewrite, escapeQuotes
 
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
 

Constructor Detail

HsqldbQueryRewriter

public HsqldbQueryRewriter(JdbcDataContext dataContext)
Method Detail

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.