站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

QueryParameters (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.engine
Class QueryParameters

java.lang.Object
  extended bynet.sf.hibernate.engine.QueryParameters

public final class QueryParameters
extends Object

Author:
Gavin King

Constructor Summary
QueryParameters(Type[] positionalParameterTypes, Object[] postionalParameterValues)
           
QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Map namedParameters, Map lockModes, RowSelection rowSelection, boolean cacheable, String cacheRegion, boolean forceCacheRefresh)
           
QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Map lockModes, RowSelection rowSelection)
           
 
Method Summary
 String getCacheRegion()
           
 Map getLockModes()
           
 Map getNamedParameters()
           
 Type[] getPositionalParameterTypes()
           
 Object[] getPositionalParameterValues()
           
 RowSelection getRowSelection()
           
 ScrollMode getScrollMode()
           
 boolean hasRowSelection()
           
 boolean isCacheable()
           
 boolean isForceCacheRefresh()
           
 void setCacheable(boolean b)
           
 void setCacheRegion(String cacheRegion)
           
 void setForceCacheRefresh(boolean forceCacheRefresh)
           
 void setLockModes(Map map)
           
 void setNamedParameters(Map map)
           
 void setPositionalParameterTypes(Type[] types)
           
 void setPositionalParameterValues(Object[] objects)
           
 void setRowSelection(RowSelection selection)
           
 void setScrollMode(ScrollMode scrollMode)
           
 void traceParameters(SessionFactoryImplementor factory)
           
 void validateParameters()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParameters

public QueryParameters(Type[] positionalParameterTypes,
                       Object[] postionalParameterValues)

QueryParameters

public QueryParameters(Type[] positionalParameterTypes,
                       Object[] positionalParameterValues,
                       Map lockModes,
                       RowSelection rowSelection)

QueryParameters

public QueryParameters(Type[] positionalParameterTypes,
                       Object[] positionalParameterValues,
                       Map namedParameters,
                       Map lockModes,
                       RowSelection rowSelection,
                       boolean cacheable,
                       String cacheRegion,
                       boolean forceCacheRefresh)
Method Detail

hasRowSelection

public boolean hasRowSelection()

getNamedParameters

public Map getNamedParameters()

getPositionalParameterTypes

public Type[] getPositionalParameterTypes()

getPositionalParameterValues

public Object[] getPositionalParameterValues()

getRowSelection

public RowSelection getRowSelection()

setNamedParameters

public void setNamedParameters(Map map)

setPositionalParameterTypes

public void setPositionalParameterTypes(Type[] types)

setPositionalParameterValues

public void setPositionalParameterValues(Object[] objects)

setRowSelection

public void setRowSelection(RowSelection selection)

getLockModes

public Map getLockModes()

setLockModes

public void setLockModes(Map map)

getScrollMode

public ScrollMode getScrollMode()

setScrollMode

public void setScrollMode(ScrollMode scrollMode)

traceParameters

public void traceParameters(SessionFactoryImplementor factory)
                     throws HibernateException
Throws:
HibernateException

isCacheable

public boolean isCacheable()

setCacheable

public void setCacheable(boolean b)

getCacheRegion

public String getCacheRegion()

setCacheRegion

public void setCacheRegion(String cacheRegion)

validateParameters

public void validateParameters()
                        throws QueryException
Throws:
QueryException

isForceCacheRefresh

public boolean isForceCacheRefresh()

setForceCacheRefresh

public void setForceCacheRefresh(boolean forceCacheRefresh)