Liferay 6.2-ce-ga5

com.liferay.portal.dao.orm.hibernate
Class SQLQueryImpl

java.lang.Object
  extended by com.liferay.portal.dao.orm.hibernate.SQLQueryImpl
All Implemented Interfaces:
Query, SQLQuery

public class SQLQueryImpl
extends Object
implements SQLQuery


Constructor Summary
SQLQueryImpl(org.hibernate.SQLQuery sqlQuery, boolean strictName)
           
 
Method Summary
 SQLQuery addEntity(String alias, Class<?> entityClass)
           
 SQLQuery addScalar(String columnAlias, Type type)
           
 SQLQuery addSynchronizedEntityClass(Class<?> entityClass)
           
 SQLQuery addSynchronizedEntityClasses(Class<?>... entityClasses)
           
 SQLQuery addSynchronizedEntityName(String entityName)
           
 SQLQuery addSynchronizedEntityNames(String... entityNames)
           
 SQLQuery addSynchronizedQuerySpace(String querySpace)
           
 SQLQuery addSynchronizedQuerySpaces(String... querySpaces)
           
 int executeUpdate()
           
 Iterator iterate()
           
 Iterator iterate(boolean unmodifiable)
           
 Object iterateNext()
           
 List<?> list()
           
 List<?> list(boolean unmodifiable)
           
 List<?> list(boolean copy, boolean unmodifiable)
           
 ScrollableResults scroll()
           
 Query setBoolean(int pos, boolean value)
           
 Query setBoolean(String name, boolean value)
           
 Query setCacheable(boolean cacheable)
           
 Query setCacheMode(CacheMode cacheMode)
           
 Query setCacheRegion(String cacheRegion)
           
 Query setDouble(int pos, double value)
           
 Query setDouble(String name, double value)
           
 Query setFirstResult(int firstResult)
           
 Query setFloat(int pos, float value)
           
 Query setFloat(String name, float value)
           
 Query setInteger(int pos, int value)
           
 Query setInteger(String name, int value)
           
 Query setLockMode(String alias, LockMode lockMode)
           
 Query setLong(int pos, long value)
           
 Query setLong(String name, long value)
           
 Query setMaxResults(int maxResults)
           
 Query setSerializable(int pos, Serializable value)
           
 Query setSerializable(String name, Serializable value)
           
 Query setShort(int pos, short value)
           
 Query setShort(String name, short value)
           
 Query setString(int pos, String value)
           
 Query setString(String name, String value)
           
 Query setTimestamp(int pos, Timestamp value)
           
 Query setTimestamp(String name, Timestamp value)
           
 Object uniqueResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLQueryImpl

public SQLQueryImpl(org.hibernate.SQLQuery sqlQuery,
                    boolean strictName)
Method Detail

addEntity

public SQLQuery addEntity(String alias,
                          Class<?> entityClass)
Specified by:
addEntity in interface SQLQuery

addScalar

public SQLQuery addScalar(String columnAlias,
                          Type type)
Specified by:
addScalar in interface SQLQuery

addSynchronizedEntityClass

public SQLQuery addSynchronizedEntityClass(Class<?> entityClass)
Specified by:
addSynchronizedEntityClass in interface SQLQuery

addSynchronizedEntityClasses

public SQLQuery addSynchronizedEntityClasses(Class<?>... entityClasses)
Specified by:
addSynchronizedEntityClasses in interface SQLQuery

addSynchronizedEntityName

public SQLQuery addSynchronizedEntityName(String entityName)
Specified by:
addSynchronizedEntityName in interface SQLQuery

addSynchronizedEntityNames

public SQLQuery addSynchronizedEntityNames(String... entityNames)
Specified by:
addSynchronizedEntityNames in interface SQLQuery

addSynchronizedQuerySpace

public SQLQuery addSynchronizedQuerySpace(String querySpace)
Specified by:
addSynchronizedQuerySpace in interface SQLQuery

addSynchronizedQuerySpaces

public SQLQuery addSynchronizedQuerySpaces(String... querySpaces)
Specified by:
addSynchronizedQuerySpaces in interface SQLQuery

executeUpdate

public int executeUpdate()
                  throws ORMException
Specified by:
executeUpdate in interface Query
Throws:
ORMException

iterate

public Iterator iterate()
                 throws ORMException
Specified by:
iterate in interface Query
Throws:
ORMException

iterate

public Iterator iterate(boolean unmodifiable)
                 throws ORMException
Specified by:
iterate in interface Query
Throws:
ORMException

iterateNext

public Object iterateNext()
                   throws ORMException
Specified by:
iterateNext in interface Query
Throws:
ORMException

list

public List<?> list()
             throws ORMException
Specified by:
list in interface Query
Throws:
ORMException

list

public List<?> list(boolean unmodifiable)
             throws ORMException
Specified by:
list in interface Query
Throws:
ORMException

list

public List<?> list(boolean copy,
                    boolean unmodifiable)
             throws ORMException
Specified by:
list in interface Query
Throws:
ORMException

scroll

public ScrollableResults scroll()
                         throws ORMException
Specified by:
scroll in interface Query
Throws:
ORMException

setBoolean

public Query setBoolean(int pos,
                        boolean value)
Specified by:
setBoolean in interface Query

setBoolean

public Query setBoolean(String name,
                        boolean value)
Specified by:
setBoolean in interface Query

setCacheable

public Query setCacheable(boolean cacheable)
Specified by:
setCacheable in interface Query

setCacheMode

public Query setCacheMode(CacheMode cacheMode)
Specified by:
setCacheMode in interface Query

setCacheRegion

public Query setCacheRegion(String cacheRegion)
Specified by:
setCacheRegion in interface Query

setDouble

public Query setDouble(int pos,
                       double value)
Specified by:
setDouble in interface Query

setDouble

public Query setDouble(String name,
                       double value)
Specified by:
setDouble in interface Query

setFirstResult

public Query setFirstResult(int firstResult)
Specified by:
setFirstResult in interface Query

setFloat

public Query setFloat(int pos,
                      float value)
Specified by:
setFloat in interface Query

setFloat

public Query setFloat(String name,
                      float value)
Specified by:
setFloat in interface Query

setInteger

public Query setInteger(int pos,
                        int value)
Specified by:
setInteger in interface Query

setInteger

public Query setInteger(String name,
                        int value)
Specified by:
setInteger in interface Query

setLockMode

public Query setLockMode(String alias,
                         LockMode lockMode)
Specified by:
setLockMode in interface Query

setLong

public Query setLong(int pos,
                     long value)
Specified by:
setLong in interface Query

setLong

public Query setLong(String name,
                     long value)
Specified by:
setLong in interface Query

setMaxResults

public Query setMaxResults(int maxResults)
Specified by:
setMaxResults in interface Query

setSerializable

public Query setSerializable(int pos,
                             Serializable value)
Specified by:
setSerializable in interface Query

setSerializable

public Query setSerializable(String name,
                             Serializable value)
Specified by:
setSerializable in interface Query

setShort

public Query setShort(int pos,
                      short value)
Specified by:
setShort in interface Query

setShort

public Query setShort(String name,
                      short value)
Specified by:
setShort in interface Query

setString

public Query setString(int pos,
                       String value)
Specified by:
setString in interface Query

setString

public Query setString(String name,
                       String value)
Specified by:
setString in interface Query

setTimestamp

public Query setTimestamp(int pos,
                          Timestamp value)
Specified by:
setTimestamp in interface Query

setTimestamp

public Query setTimestamp(String name,
                          Timestamp value)
Specified by:
setTimestamp in interface Query

uniqueResult

public Object uniqueResult()
                    throws ORMException
Specified by:
uniqueResult in interface Query
Throws:
ORMException

Liferay 6.2-ce-ga5