|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.orm.hibernate.support.HibernateDaoSupport
ca.uhn.cache.internal.impl.HibernateQueryResultStore
Hibernate implementation of IQueryResultStore.
| Field Summary |
| Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
| Constructor Summary | |
HibernateQueryResultStore()
|
|
| Method Summary | |
protected void |
copy(Field theSource,
Field theDestination)
copy all the attributes except: hibernateId and record. |
protected void |
copy(Record theSource,
Record theDestination)
copy all the attributes except: hibernateId and fields. |
protected Field |
createFieldFrom(Record theRecord,
IPointQueryParam theQueryParam)
Creates the corresponding Field subclass for the provided IQueryParam. |
protected Record |
createRecordFrom(IDataItem theDataItem)
Creates the corresponding Record for the provided IQuery. |
int |
delete(IQuery theProjection)
Removes the data matching the specified query from the store. |
IParamSpace |
getParamSpace()
|
protected IQueryParamHelper |
getQueryParamHelper(IQueryParam theQueryParam)
Retrieves the IQueryParamHelper corresponding to the provided query param. |
void |
insert(IQueryResult theQueryResult)
Stores the given query result. |
protected void |
registerQueryParamToQueryParamHelper(java.lang.Class theQueryParamClazz,
IQueryParamHelper theFieldFactory)
Registers the mapping between an IQueryParam and the corresponding Field subclass. |
IQueryResult |
select(IQuery theQuery)
Returns the query result from the store that matches the given query. |
void |
setParamSpace(IParamSpace theParamSpace)
|
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.beans.factory.InitializingBean |
afterPropertiesSet |
| Constructor Detail |
public HibernateQueryResultStore()
| Method Detail |
public int delete(IQuery theProjection)
throws QueryResultStoreException
delete in interface IQueryResultStoretheProjection - The query.
QueryResultStoreException - If the delete operation could not be successfully completed.public IParamSpace getParamSpace()
public void insert(IQueryResult theQueryResult)
throws QueryResultStoreException
insert in interface IQueryResultStoretheQueryResult - The IQueryResult.
QueryResultStoreException - If the insert operation could not be successfully completed.
protected void copy(Record theSource,
Record theDestination)
protected void copy(Field theSource,
Field theDestination)
public IQueryResult select(IQuery theQuery)
throws QueryResultStoreException
select in interface IQueryResultStoretheQuery - The query.
IQueryResult matching the query.
QueryResultStoreException - If the select operation could not be successfully completed.public void setParamSpace(IParamSpace theParamSpace)
theParamSpace - The paramSpace to set.
protected Field createFieldFrom(Record theRecord,
IPointQueryParam theQueryParam)
Field subclass for the provided IQueryParam.
Use #registerQueryParamToField(Class, IFieldFactory) to register mapping between an
IQueryParam and the corresponding Field subclass.
theRecord - The record the field will be associated with.theQueryParam - The provided IPointQueryParam.
Field, or null if no mapping has
been registered for the provided IQueryParamprotected Record createRecordFrom(IDataItem theDataItem)
Record for the provided IQuery.
theDataItem - The provided IQuery.
Record.protected IQueryParamHelper getQueryParamHelper(IQueryParam theQueryParam)
IQueryParamHelper corresponding to the provided query param.
theQueryParam - The provided query param.
IQueryParamHelper, or null if there is no
corresponding IQueryParamHelper for the provided query param.registerQueryParamToQueryParamHelper(Class, IQueryParamHelper)
protected void registerQueryParamToQueryParamHelper(java.lang.Class theQueryParamClazz,
IQueryParamHelper theFieldFactory)
IQueryParam and the corresponding Field subclass.
theQueryParamClazz - The query param class.theFieldFactory - The Field subclass factory.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||