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

Version:
$Id$
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
protected SQLQueryImpl(Connection conn, Configuration configuration, QueryMetadata metadata)
          Create a new SQLQueryImpl instance
  SQLQueryImpl(Connection conn, SQLTemplates templates)
          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, buildQueryString, count, createSerializer, 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, uniqueResult
 
Methods inherited from class com.mysema.query.support.ProjectableQuery
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult, uniqueResult
 
Methods inherited from class com.mysema.query.support.QueryBase
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
from, fullJoin, fullJoin, fullJoin, getResults, innerJoin, innerJoin, innerJoin, join, join, join, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin, union, union
 
Methods inherited from interface com.mysema.query.Query
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, iterate, iterate, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, list, list, listDistinct, listDistinct, listDistinct, listDistinctResults, listResults, map, 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,
                    Configuration configuration)
Create a new SQLQueryImpl instance

Parameters:
conn - Connection to use
configuration -

SQLQueryImpl

protected 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-2010 Mysema Ltd. All Rights Reserved.