Package com.im.df.impl.db.resultset
Class ResultSetImpl
- java.lang.Object
-
- com.im.df.impl.db.resultset.ResultSetImpl
-
- All Implemented Interfaces:
com.im.df.api.dml.DFResultSet
public class ResultSetImpl extends Object implements com.im.df.api.dml.DFResultSet
The class managing states of the result set's vertices.Instead of constructors,
ResultSetRegistry.copyResultSet(com.im.df.impl.db.resultset.ResultSetImpl)should be used. It registers the result set as currently active.- Author:
- Petr Hamernik
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener l)voidapplyList(List<? extends Comparable<?>> ids, com.im.commons.progress.DFEnvironmentRW env)voidapplyQuery(com.im.df.api.dml.DFTermExpression newQueryTerm, com.im.commons.progress.DFEnvironmentRW env)voidapplyWorkingQuery(com.im.commons.progress.DFEnvironmentRW env)voidclearIdCachesAndRefresh(com.im.df.api.ddl.DFDataTree.Edge edge, com.im.commons.progress.DFEnvironmentRO env)This method is used byDBSchemaDataProviderImplto clear id caches when relational data are changed (e.g.com.im.df.api.dml.DFResultSetcreateCopy()voidenableFilterSearchResults(boolean filterResults, com.im.commons.progress.DFEnvironmentRW env)Deprecated.voidensureLoaded(com.im.commons.progress.DFEnvironmentRO env)com.im.df.api.ddl.DFDataTreegetDataTree()com.im.df.api.dml.DFTermExpressiongetLastExecutedQuery()com.im.commons.progress.DFLockablegetLockable()com.im.df.api.dml.DFResultSet.VertexStategetRootVertexState()com.im.df.api.support.DFSearchDomaingetSearchDomain()com.im.df.api.dml.DFResultSet.VertexStategetVertexState(com.im.df.api.ddl.DFDataTree.Vertex vertex)com.im.df.api.dml.DFTermExpressiongetWorkingQuery()booleanisAllDataAreEmpty()booleanisFilterSearchResults()Deprecated.booleanisLoadAllChildRows()Deprecated.booleanisLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)booleanisQueryCancelRequested()booleanisQueryRunning()voidreload(com.im.commons.progress.DFEnvironmentRW env)voidremovePropertyChangeListener(PropertyChangeListener l)voidrequestStopQuery()voidsetLoadAllChildRows(boolean loadAllChildForConvergent, com.im.commons.progress.DFEnvironmentRW env)Deprecated.voidsetLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)voidsetSearchDomain(com.im.df.api.support.DFSearchDomain searchDomain, com.im.commons.progress.DFEnvironmentRW env)voidsetWorkingQuery(com.im.df.api.dml.DFTermExpression workingQuery, com.im.commons.progress.DFEnvironmentRW env)StringtoString()
-
-
-
Method Detail
-
getDataTree
public com.im.df.api.ddl.DFDataTree getDataTree()
- Specified by:
getDataTreein interfacecom.im.df.api.dml.DFResultSet
-
setWorkingQuery
public void setWorkingQuery(com.im.df.api.dml.DFTermExpression workingQuery, com.im.commons.progress.DFEnvironmentRW env)- Specified by:
setWorkingQueryin interfacecom.im.df.api.dml.DFResultSet
-
getWorkingQuery
public com.im.df.api.dml.DFTermExpression getWorkingQuery()
- Specified by:
getWorkingQueryin interfacecom.im.df.api.dml.DFResultSet
-
getLastExecutedQuery
public com.im.df.api.dml.DFTermExpression getLastExecutedQuery()
- Specified by:
getLastExecutedQueryin interfacecom.im.df.api.dml.DFResultSet
-
applyWorkingQuery
public void applyWorkingQuery(com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
applyWorkingQueryin interfacecom.im.df.api.dml.DFResultSet
-
applyQuery
public void applyQuery(com.im.df.api.dml.DFTermExpression newQueryTerm, com.im.commons.progress.DFEnvironmentRW env)- Specified by:
applyQueryin interfacecom.im.df.api.dml.DFResultSet
-
isAllDataAreEmpty
public boolean isAllDataAreEmpty()
-
isQueryRunning
public boolean isQueryRunning()
- Specified by:
isQueryRunningin interfacecom.im.df.api.dml.DFResultSet
-
requestStopQuery
public void requestStopQuery()
- Specified by:
requestStopQueryin interfacecom.im.df.api.dml.DFResultSet
-
isQueryCancelRequested
public boolean isQueryCancelRequested()
- Specified by:
isQueryCancelRequestedin interfacecom.im.df.api.dml.DFResultSet
-
applyList
public void applyList(List<? extends Comparable<?>> ids, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
applyListin interfacecom.im.df.api.dml.DFResultSet
-
reload
public void reload(com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
reloadin interfacecom.im.df.api.dml.DFResultSet
-
getLockable
public com.im.commons.progress.DFLockable getLockable()
- Specified by:
getLockablein interfacecom.im.df.api.dml.DFResultSet
-
getVertexState
public com.im.df.api.dml.DFResultSet.VertexState getVertexState(com.im.df.api.ddl.DFDataTree.Vertex vertex)
- Specified by:
getVertexStatein interfacecom.im.df.api.dml.DFResultSet
-
getRootVertexState
public com.im.df.api.dml.DFResultSet.VertexState getRootVertexState()
- Specified by:
getRootVertexStatein interfacecom.im.df.api.dml.DFResultSet
-
setSearchDomain
public void setSearchDomain(com.im.df.api.support.DFSearchDomain searchDomain, com.im.commons.progress.DFEnvironmentRW env)- Specified by:
setSearchDomainin interfacecom.im.df.api.dml.DFResultSet
-
getSearchDomain
public com.im.df.api.support.DFSearchDomain getSearchDomain()
- Specified by:
getSearchDomainin interfacecom.im.df.api.dml.DFResultSet
-
clearIdCachesAndRefresh
public void clearIdCachesAndRefresh(com.im.df.api.ddl.DFDataTree.Edge edge, com.im.commons.progress.DFEnvironmentRO env)This method is used byDBSchemaDataProviderImplto clear id caches when relational data are changed (e.g. when new rows are inserted and make relationship). SeeDBSchemaDataProviderImpl.clearCachesInResultSets(com.im.df.api.ddl.DFRelationship.Direction, com.im.commons.progress.DFEnvironmentRW)usages for more info. This method was added as part of implementation of IJC-391. It was meant as temporary solution only, but it's here since 07/2007. Notification about changes should be done different way, not through explicit call from relationship modification methods (rather using listeners I think).- Parameters:
edge- the edge whose detail should be updated
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- Specified by:
addPropertyChangeListenerin interfacecom.im.df.api.dml.DFResultSet
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
- Specified by:
removePropertyChangeListenerin interfacecom.im.df.api.dml.DFResultSet
-
createCopy
public com.im.df.api.dml.DFResultSet createCopy()
- Specified by:
createCopyin interfacecom.im.df.api.dml.DFResultSet
-
ensureLoaded
public void ensureLoaded(com.im.commons.progress.DFEnvironmentRO env)
- Specified by:
ensureLoadedin interfacecom.im.df.api.dml.DFResultSet
-
enableFilterSearchResults
@Deprecated public void enableFilterSearchResults(boolean filterResults, com.im.commons.progress.DFEnvironmentRW env)
Deprecated.- Specified by:
enableFilterSearchResultsin interfacecom.im.df.api.dml.DFResultSet
-
isFilterSearchResults
@Deprecated public boolean isFilterSearchResults()
Deprecated.- Specified by:
isFilterSearchResultsin interfacecom.im.df.api.dml.DFResultSet
-
setLoadIds
public void setLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)
- Specified by:
setLoadIdsin interfacecom.im.df.api.dml.DFResultSet
-
isLoadIds
public boolean isLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)
- Specified by:
isLoadIdsin interfacecom.im.df.api.dml.DFResultSet
-
isLoadAllChildRows
@Deprecated public boolean isLoadAllChildRows()
Deprecated.- Specified by:
isLoadAllChildRowsin interfacecom.im.df.api.dml.DFResultSet
-
setLoadAllChildRows
@Deprecated public void setLoadAllChildRows(boolean loadAllChildForConvergent, com.im.commons.progress.DFEnvironmentRW env)
Deprecated.- Specified by:
setLoadAllChildRowsin interfacecom.im.df.api.dml.DFResultSet
-
-