com.mysema.query.sql
Class SQLQueryImpl

java.lang.Object
  extended by com.mysema.query.support.QueryBase<Q>
      extended by com.mysema.query.support.ProjectableQuery<Q>
          extended by com.mysema.query.sql.AbstractSQLQuery<SQLQueryImpl>
              extended by com.mysema.query.sql.SQLQueryImpl
All Implemented Interfaces:
FilteredClause<SQLQuery>, Projectable, Query<SQLQuery>, SQLCommonQuery<SQLQuery>, SQLQuery

public class SQLQueryImpl
extends AbstractSQLQuery<SQLQueryImpl>
implements SQLQuery

SQLQueryImpl is a JDBC based implementation of the Querydsl SQLQuery interface

Author:
tiwe

Nested Class Summary
 
Nested classes/interfaces inherited from class com.mysema.query.sql.AbstractSQLQuery
AbstractSQLQuery.UnionBuilder<RT>
 
Field Summary
 
Fields inherited from class com.mysema.query.support.QueryBase
queryMixin
 
Constructor Summary
SQLQueryImpl(Connection conn, Configuration configuration)
          Create a new SQLQueryImpl instance
SQLQueryImpl(Connection conn, Configuration configuration, QueryMetadata metadata)
          Create a new SQLQueryImpl instance
SQLQueryImpl(Connection conn, SQLTemplates templates)
          Create a new SQLQueryImpl instance
SQLQueryImpl(Connection conn, SQLTemplates templates, QueryMetadata metadata)
          Create a new SQLQueryImpl instance
SQLQueryImpl(SQLTemplates templates)
          Create a detached SQLQueryImpl instance The query can be attached via the clone method
 
Method Summary
 SQLQueryImpl clone(Connection conn)
          Clone the state of this query to a new SQLQueryImpl instance with the given Connection
 
Methods inherited from class com.mysema.query.sql.AbstractSQLQuery
addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, buildQueryString, count, createSerializer, exists, from, from, fullJoin, fullJoin, fullJoin, getConfiguration, getMetadata, getResults, innerJoin, innerJoin, innerJoin, iterate, iterate, join, join, join, leftJoin, leftJoin, leftJoin, list, list, listResults, on, rightJoin, rightJoin, rightJoin, setParameters, toString, union, union, unionAll, unionAll, uniqueResult, uniqueResult
 
Methods inherited from class com.mysema.query.support.ProjectableQuery
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, singleResult, singleResult, singleResult, uniqueResult, uniqueResult
 
Methods inherited from class com.mysema.query.support.QueryBase
distinct, groupBy, having, limit, offset, orderBy, restrict, set, where
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.sql.SQLQuery
getResults, union, union, unionAll, unionAll
 
Methods inherited from interface com.mysema.query.sql.SQLCommonQuery
addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, from, from, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, join, join, join, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin
 
Methods inherited from interface com.mysema.query.Query
distinct, groupBy, having, limit, offset, orderBy, restrict, set
 
Methods inherited from interface com.mysema.query.FilteredClause
where
 
Methods inherited from interface com.mysema.query.Projectable
count, countDistinct, exists, iterate, iterate, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, list, list, listDistinct, listDistinct, listDistinct, listDistinctResults, listResults, map, notExists, singleResult, singleResult, singleResult, uniqueResult, uniqueResult, uniqueResult
 

Constructor Detail

SQLQueryImpl

public SQLQueryImpl(SQLTemplates templates)
Create a detached SQLQueryImpl instance The query can be attached via the clone method

Parameters:
connection - Connection to use
templates - SQLTemplates to use

SQLQueryImpl

public SQLQueryImpl(Connection conn,
                    SQLTemplates templates)
Create a new SQLQueryImpl instance

Parameters:
conn - Connection to use
templates - SQLTemplates to use

SQLQueryImpl

public SQLQueryImpl(Connection conn,
                    SQLTemplates templates,
                    QueryMetadata metadata)
Create a new SQLQueryImpl instance

Parameters:
conn - Connection to use
templates - SQLTemplates to use
metadata -

SQLQueryImpl

public SQLQueryImpl(Connection conn,
                    Configuration configuration)
Create a new SQLQueryImpl instance

Parameters:
conn - Connection to use
configuration -

SQLQueryImpl

public SQLQueryImpl(Connection conn,
                    Configuration configuration,
                    QueryMetadata metadata)
Create a new SQLQueryImpl instance

Parameters:
conn -
templates -
metadata -
Method Detail

clone

public SQLQueryImpl clone(Connection conn)
Clone the state of this query to a new SQLQueryImpl instance with the given Connection

Specified by:
clone in interface SQLQuery
Parameters:
conn -
Returns:


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.