com.healthmarketscience.jackcess.impl.query
Class BaseSelectQueryImpl

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.query.QueryImpl
      extended by com.healthmarketscience.jackcess.impl.query.BaseSelectQueryImpl
All Implemented Interfaces:
BaseSelectQuery, Query
Direct Known Subclasses:
AppendQueryImpl, CrossTabQueryImpl, DeleteQueryImpl, MakeTableQueryImpl, SelectQueryImpl

public abstract class BaseSelectQueryImpl
extends QueryImpl
implements BaseSelectQuery

Base class for queries which represent some form of SELECT statement.

Author:
James Ahlborn

Nested Class Summary
 
Nested classes/interfaces inherited from class com.healthmarketscience.jackcess.impl.query.QueryImpl
QueryImpl.AppendableList<E>, QueryImpl.Row, QueryImpl.RowFilter, QueryImpl.RowFormatter
 
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.query.Query
Query.Type
 
Field Summary
 
Fields inherited from class com.healthmarketscience.jackcess.impl.query.QueryImpl
LOG
 
Constructor Summary
protected BaseSelectQueryImpl(String name, List<QueryImpl.Row> rows, int objectId, int objectFlag, Query.Type type)
           
 
Method Summary
 String getFromRemoteDbPath()
           
 String getFromRemoteDbType()
           
 List<String> getFromTables()
           
 List<String> getGroupings()
           
 String getHavingExpression()
           
 List<String> getOrderings()
           
 List<String> getSelectColumns()
           
 String getSelectType()
           
 String getWhereExpression()
           
protected  void toSelectInto(StringBuilder builder)
           
protected  void toSQLSelectString(StringBuilder builder, boolean useSelectPrefix)
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.query.QueryImpl
create, filterRowsByFlag, filterRowsByNotFlag, getColumnRows, getFlagRow, getGroupByRows, getHavingRow, getIntValue, getJoinRows, getName, getObjectFlag, getObjectId, getOrderByRows, getOwnerAccessType, getParameterRows, getParameters, getRemoteDatabaseRow, getRowByAttribute, getRows, getRowsByAttribute, getShortValue, getTableRows, getType, getTypeRow, getUniqueRow, getWhereRow, hasFlag, hasFlag, isHidden, isQuoted, supportsStandardClauses, toAlias, toOptionalQuotedExpr, toQuotedExpr, toRemoteDb, toSQLParameterString, toSQLString, toSQLString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.healthmarketscience.jackcess.query.Query
getName, getObjectFlag, getObjectId, getOwnerAccessType, getParameters, getType, isHidden, toSQLString
 

Constructor Detail

BaseSelectQueryImpl

protected BaseSelectQueryImpl(String name,
                              List<QueryImpl.Row> rows,
                              int objectId,
                              int objectFlag,
                              Query.Type type)
Method Detail

toSQLSelectString

protected void toSQLSelectString(StringBuilder builder,
                                 boolean useSelectPrefix)

getSelectType

public String getSelectType()
Specified by:
getSelectType in interface BaseSelectQuery

getSelectColumns

public List<String> getSelectColumns()
Specified by:
getSelectColumns in interface BaseSelectQuery

toSelectInto

protected void toSelectInto(StringBuilder builder)

getFromTables

public List<String> getFromTables()
Specified by:
getFromTables in interface BaseSelectQuery
Overrides:
getFromTables in class QueryImpl

getFromRemoteDbPath

public String getFromRemoteDbPath()
Specified by:
getFromRemoteDbPath in interface BaseSelectQuery
Overrides:
getFromRemoteDbPath in class QueryImpl

getFromRemoteDbType

public String getFromRemoteDbType()
Specified by:
getFromRemoteDbType in interface BaseSelectQuery
Overrides:
getFromRemoteDbType in class QueryImpl

getWhereExpression

public String getWhereExpression()
Specified by:
getWhereExpression in interface BaseSelectQuery
Overrides:
getWhereExpression in class QueryImpl

getGroupings

public List<String> getGroupings()
Specified by:
getGroupings in interface BaseSelectQuery

getHavingExpression

public String getHavingExpression()
Specified by:
getHavingExpression in interface BaseSelectQuery

getOrderings

public List<String> getOrderings()
Specified by:
getOrderings in interface BaseSelectQuery
Overrides:
getOrderings in class QueryImpl


Copyright © 2005-2017 Health Market Science. All Rights Reserved.